aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J0156.5+3914_weekly_bin589
RA = 29.1325, Dec = 39.2493
tmin = 595209601, tmax = 595814401
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='281351', job_status='RUN', time_executed='2021-07-04 03:38:55.817674', time_epoch_executed='1625395135.82' WHERE source_name='4FGL J0156.5+3914' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/281351

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/281351/ft1_4FGL_J0156.5+3914_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/281351/ft1_4FGL_J0156.5+3914_weekly_bin589.fits outfile=/scratch/kocevski/281351/ft1_filteredMKT_4FGL_J0156.5+3914_weekly_bin589.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=595209601.0 tmax=595814401.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.94
user 5.51
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.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/281351/ft1_filteredMKT_4FGL_J0156.5+3914_weekly_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.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 2.83
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/281351/ltcube_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.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/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits
.....................!
real 28.99
user 27.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/281351/ltcube_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.fits outfile=/scratch/kocevski/281351/expmap_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.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/281351/ltcube_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.fits
.....................!
real 196.01
user 185.40
sys 5.07

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

Setting source of interest to:
4FGL J0156.5+3914 @ 29.1325 39.2493

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits scfile=/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits outfile=/scratch/kocevski/281351/cmap_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.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=29.1325 yref=39.2493 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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits scfile=/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits outfile=/scratch/kocevski/281351/cmap_HighResolution_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.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=29.1325 yref=39.2493 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.67
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/281351/Model_4FGL_J0156.5+3914_weekly_bin589.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/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits......................!
real 29.18
user 26.83
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits', '/scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits', expMap='/scratch/kocevski/281351/expmap_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.fits', expCube='/scratch/kocevski/281351/ltcube_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/281351/Model_4FGL_J0156.5+3914_weekly_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0156.5+3914'

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.010e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/281351/ft1_filtered_4FGL_J0156.5+3914_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/281351/ft2_4FGL_J0156.5+3914_weekly_bin589.fits
Exposure map: /scratch/kocevski/281351/expmap_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.fits
Exposure cube: /scratch/kocevski/281351/ltcube_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/281351/Model_4FGL_J0156.5+3914_weekly_bin589.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) = 1273.25015588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1531       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    176.26       1.0000         .10000E-03   10000.    
     4 'norm      '    6.3923       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.811       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10676E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11403E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2919.2       1.0000         .10000E-03   10000.    
    21 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11338E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .88917       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .42598       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1273.164     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2749 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1504        22.915       -.20946E-05   -.84469E-04
   2  Prefactor     18.940        32.620        .56489E-06    .22061E-04
   3  Prefactor     176.26        141.98       -.49394E-05    .12596E-04
   4  norm          6.3918        3.9065        .23792E-06    .94496E-03
   5  Prefactor     .10000E-03    26.196       -.36616E-04** at limit **
   6  Prefactor     .10000E-03    44.222       -.52205E-05** at limit **
   7  Prefactor     20.838        95.310        .43230E-04    .56659E-05
   8  norm          .10000E-03    1.0201       -.22183E-07** at limit **
   9  norm          3.3226        2.4344       -.35276E-06   -.62802E-04
  10  Prefactor     .10000E-03    27.313        .38612E-04** at limit **
  11  Prefactor     .10000E-03    15.252        .17081E-07** at limit **
  12  Prefactor     .10000E-03    156.92        .64547E-04** at limit **
  13  Prefactor     .10000E-03    165.82        .67939E-04** at limit **
  14  norm          .10000E-03    114.09       -.61619E-04** at limit **
  15  Prefactor     .10000E-03    132.90        .19712E-04** at limit **
  16  norm          .10000E-03    192.05        .49764E-04** at limit **
  17  Prefactor     .10000E-03    339.33       -.30058E-03** at limit **
  18  norm          .10000E-03    20.626        .18203E-05** at limit **
  19  norm          .10000E-03    6.3755       -.41907E-07** at limit **
  20  Prefactor     2919.1        2761.5       -.12919E-04    .20473E-04
  21  norm         10000.0        6843.3        .10227E-02** at limit **
  22  Prefactor     .10000E-03    9992.9       -.62800E-03** at limit **
  23  Normalizat    .88949        .55408        .25644E-05    .13857E-03
  24  Prefactor     .42576        .21995       -.25591E-05    .22350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.15039
  Prefactor  = 18.9402
  Prefactor  = 176.257
  norm       = 6.39183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.838
  norm       = 0.0001
  norm       = 3.32257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2919.12
  norm       = 10000
  Prefactor  = 0.0001
  Normalizat = 0.889486
  Prefactor  = 0.425763
 **********
 **   18 **HESSE 
 **********

 FCN=   1273.164     FROM HESSE     STATUS=OK           381 CALLS     3130 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1504        22.583        .22827E-03   -1.5353    
   2  Prefactor     18.940        32.668        .92037E-04   -1.4837    
   3  Prefactor     176.26        140.83        .30398E-04   -1.3045    
   4  norm          6.3918        3.9436        .50270E-04   -1.5202    
   5  Prefactor     .10000E-03    26.309        .17820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    44.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.838        94.896        .87799E-04   -1.4795    
   8  norm          .10000E-03    1.0206        .35199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3226        2.4346        .43490E-04   -1.5343    
  10  Prefactor     .10000E-03    27.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.264        .13612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    156.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    165.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    114.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    133.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    192.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    339.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    20.627        .15833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    6.3772        .88006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2919.1        2797.2        .43990E-04   -.42923    
  21  norm         10000.0        6843.5        .19653E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9992.9        .20678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .88949        .65431        .33162E-03   -.96831    
  24  Prefactor     .42576        .25793        .20532E-03   -1.1551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3776e-10
Minuit parameter uncertainties:
  1  16.8784
  2  32.6985
  3  141.102
  4  3.94375
  5  0.000129303
  6  1.13758e-05
  7  89.1719
  8  3.29324e-07
  9  2.43471
  10  5.86281e-06
  11  1.66171e-06
  12  8.02221e-05
  13  1.24614e-05
  14  0.000445457
  15  0.00027492
  16  7.06156e-05
  17  0.000121111
  18  1.25411e-05
  19  6.72678e-07
  20  3012.94
  21  0.00012563
  22  0.000290461
  23  0.660279
  24  0.258634
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.662e-06  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.447e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  4.258e-01  2.586e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  8.895e-01  6.603e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.133 39.249
Photon Flux Upper Limit: 8.18e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/281351/likelihoodResults_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1273.16448985
delta logL = -0.00030904889627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1273.16418279
delta logL = -1.99112105292e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1401       1.0000          .0000       10.000    
     3 'Normalizat'    .88944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42578       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   1273.164     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      284 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    98.480        .10921E-01** at limit **
   2  Index         2.1407        8.9211        .50000       -.63327E-07
   3  Normalizat    .88948        .29925E-01    .33162E-03   -.18321E-03
   4  Prefactor     .42576        .13231E-01    .20532E-03   -.28776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14067
  Normalizat = 0.889482
  Prefactor  = 0.425761
 **********
 **   18 **HESSE 
 **********

 FCN=   1273.164     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      311 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    723.52        .13990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1407        5.7002        .50000       -.60878    
   3  Normalizat    .88948        .85778E-01    .66324E-04   -.96831    
   4  Prefactor     .42576        .37928E-01    .41064E-04   -1.1551    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10308e-09
Minuit parameter uncertainties:
  1  0.000108221
  2  1880.07
  3  0.0857911
  4  0.0379306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/281351': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1273.16418062
delta logL = 1.74007709575e-07

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.082e-04  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.141e+00  1.880e+03  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  8.289e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  4.258e-01  3.793e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  8.895e-01  8.579e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.133 39.249

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/281351/cmap_HighResolution_595209601_595814401_4FGL_J0156.5+3914_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.34e-02', job_status='DONE', photon_flux_upper_limit='8.18e-07', time_completed='2021-07-04 03:46:27.239953', job_id='281351', GAL2='0.43', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1625395587.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='589' AND source_name='4FGL J0156.5+3914' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 03:46:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0137>
Subject: Job 281351: <4FGL_J0156.5+3914_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0156.5+3914_weekly_bin589> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Jul  4 03:36:40 2021
Job was executed on host(s) <bullet0137>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 03:36:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 03:36:41 2021
Terminated at Sun Jul  4 03:46:30 2021
Results reported at Sun Jul  4 03:46:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_weekly_bin589 29.1325 39.2493 595209601 595814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0156.5+3914 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   428.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            590 sec.

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

