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


Performing analysis on: 4FGL_J0156.5+3914_weekly_bin635
RA = 29.1325, Dec = 39.2493
tmin = 623030401, tmax = 623635201
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='283083', job_status='RUN', time_executed='2021-07-04 03:45:25.649214', time_epoch_executed='1625395525.65' WHERE source_name='4FGL J0156.5+3914' and cadence='weekly' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/283083

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/283083/ft1_4FGL_J0156.5+3914_weekly_bin635.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/283083/ft1_4FGL_J0156.5+3914_weekly_bin635.fits outfile=/scratch/kocevski/283083/ft1_filteredMKT_4FGL_J0156.5+3914_weekly_bin635.fits ra=29.1325 dec=39.2493 rad=12.0 tmin=623030401.0 tmax=623635201.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.50
user 5.77
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/283083/ft1_filtered_4FGL_J0156.5+3914_weekly_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/283083/ltcube_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.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/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits
.....................!
real 28.58
user 27.89
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/283083/ft1_filtered_4FGL_J0156.5+3914_weekly_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/283083/ltcube_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.fits outfile=/scratch/kocevski/283083/expmap_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.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/283083/ltcube_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.fits
.....................!
real 196.82
user 187.56
sys 5.67

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/283083/ft1_filtered_4FGL_J0156.5+3914_weekly_bin635.fits scfile=/scratch/kocevski/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits outfile=/scratch/kocevski/283083/cmap_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.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.81
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/283083/ft1_filtered_4FGL_J0156.5+3914_weekly_bin635.fits scfile=/scratch/kocevski/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits outfile=/scratch/kocevski/283083/cmap_HighResolution_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.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 1.00
user 0.46
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/283083/ft1_filtered_4FGL_J0156.5+3914_weekly_bin635.fits', '/scratch/kocevski/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits', expMap='/scratch/kocevski/283083/expmap_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.fits', expCube='/scratch/kocevski/283083/ltcube_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/283083/Model_4FGL_J0156.5+3914_weekly_bin635.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/283083/ft1_filtered_4FGL_J0156.5+3914_weekly_bin635.fits
Spacecraft file(s): /scratch/kocevski/283083/ft2_4FGL_J0156.5+3914_weekly_bin635.fits
Exposure map: /scratch/kocevski/283083/expmap_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.fits
Exposure cube: /scratch/kocevski/283083/ltcube_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/283083/Model_4FGL_J0156.5+3914_weekly_bin635.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) = 4509.98188679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    108.28       1.0000         .10000E-03   10000.    
     6 'Prefactor '    123.78       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.421       1.0000         .10000E-03   10000.    
     9 'norm      '    6.4341       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10706E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .25524E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.537       1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.123       1.0000         .10000E-03   10000.    
    16 'norm      '    .14604E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.259       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4151       1.0000         .10000E-03   10000.    
    19 'norm      '    .73389       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.253       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    52.239       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .21871E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1437       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4509.969     FROM MIGRAD    STATUS=FAILED       985 CALLS     3604 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.321        .18142E-02** at limit **
   2  Prefactor     .10000E-03    108.96        .18142E-02** at limit **
   3  Prefactor     .10000E-03    139.65        .18142E-02** at limit **
   4  norm          .10000E-03    18.003        .18142E-02** at limit **
   5  Prefactor     108.33        158.79        .19325E-03    .42945E-05
   6  Prefactor     123.90        137.56        .18089E-03   -.16969E-04
   7  Prefactor     .10000E-03    48.169        .18142E-02** at limit **
   8  norm          11.425        9.3348        .11854E-03    .20274E-03
   9  norm          6.4316        2.7067        .64935E-04   -.56025E-05
  10  Prefactor     .10000E-03    208.70        .18142E-02** at limit **
  11  Prefactor     .10012E-03    63.205        .27340E-02** at limit **
  12  Prefactor     .10000E-03    78.753        .18142E-02** at limit **
  13  Prefactor     23.627        184.34        .82565E-04    .31174E-04
  14  norm          .10000E-03    7.7565        .18142E-02** at limit **
  15  Prefactor     16.136        44.062        .99746E-04    .40347E-04
  16  norm          .10001E-03    10.647        .22024E-02** at limit **
  17  Prefactor     56.272        35.182        .53482E-04    .13872E-03
  18  norm          1.4151        1.1783        .54345E-04    .16591E-02
  19  norm          .73392        .42764        .30039E-04   -.22102E-03
  20  Prefactor     21.261        28.733        .86882E-04    .29769E-03
  21  norm          .10000E-03    4.5689        .14007E-02** at limit **
  22  Prefactor     52.257        64.365        .55491E-04    .46425E-04
  23  Normalizat    .20392E-01    7.8992        .14911E-01    .37680E-04
  24  Prefactor     1.1440        .89486        .16324E-03    .14733E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4509.969     FROM SIMPLEX   STATUS=UNCHANGED   1476 CALLS     5080 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.321        .10545E-02** at limit **
   2  Prefactor     .10000E-03    108.96        .10339E-02** at limit **
   3  Prefactor     .10000E-03    139.65        .17165E-02** at limit **
   4  norm          .10000E-03    18.003        .24608E-03** at limit **
   5  Prefactor     108.33        158.79        .97508E-06    .42945E-05
   6  Prefactor     123.90        137.56        .96437E-06   -.16969E-04
   7  Prefactor     .10000E-03    48.169        .11235E-02** at limit **
   8  norm          11.425        9.3348        .10755E-05    .20274E-03
   9  norm          6.4316        2.7067        .10887E-05   -.56025E-05
  10  Prefactor     .10000E-03    208.70        .15884E-02** at limit **
  11  Prefactor     .10012E-03    63.205        .11573E-04** at limit **
  12  Prefactor     .10000E-03    78.753        .82589E-03** at limit **
  13  Prefactor     23.627        184.34        .10550E-05    .31174E-04
  14  norm          .10000E-03    7.7565        .26187E-03** at limit **
  15  Prefactor     16.136        44.062        .10694E-05    .40347E-04
  16  norm          .10001E-03    10.647        .84968E-04** at limit **
  17  Prefactor     56.272        35.182        .10200E-05    .13872E-03
  18  norm          1.4151        1.1783        .11089E-05    .16591E-02
  19  norm          .73392        .42764        .11127E-05   -.22102E-03
  20  Prefactor     21.261        28.733        .10590E-05    .29769E-03
  21  norm          .10000E-03    4.5689        .30652E-03** at limit **
  22  Prefactor     52.257        64.365        .10206E-05    .46425E-04
  23  Normalizat    .20392E-01    7.8992        .11308E-05    .37680E-04
  24  Prefactor     1.1440        .89486        .63020E-06    .14733E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4509.969     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     5461 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.570        .36285E-03** at limit **
   2  Prefactor     .10000E-03    109.39        .36285E-03** at limit **
   3  Prefactor     .10000E-03    140.20        .36285E-03** at limit **
   4  norm          .10000E-03    18.075        .36285E-03** at limit **
   5  Prefactor     108.33        148.26        .77300E-05    .35297E-05
   6  Prefactor     123.90        136.39        .72357E-05    .21997E-05
   7  Prefactor     .10000E-03    48.361        .36285E-03** at limit **
   8  norm          11.425        7.5364        .47417E-05    .71448E-04
   9  norm          6.4316        2.7123        .25974E-05    .31514E-04
  10  Prefactor     .10000E-03    209.44        .36285E-03** at limit **
  11  Prefactor     .10000E-03    61.293        .54680E-03** at limit **
  12  Prefactor     .10000E-03    79.074        .36285E-03** at limit **
  13  Prefactor     23.627        92.371        .16513E-04    .14733E-04
  14  norm          .10000E-03    7.7881        .36285E-03** at limit **
  15  Prefactor     16.137        26.262        .39899E-05    .17096E-04
  16  norm          .10000E-03    10.730        .44049E-03** at limit **
  17  Prefactor     56.272        28.074        .10696E-04    .30823E-04
  18  norm          1.4151        1.0646        .21738E-05    .22593E-03
  19  norm          .73392        .40585        .12016E-05    .12645E-03
  20  Prefactor     21.261        12.024        .34753E-05    .77857E-04
  21  norm          .10000E-03    4.5874        .28014E-03** at limit **
  22  Prefactor     52.257        57.180        .11098E-04    .11473E-04
  23  Normalizat    .20380E-01    6.9101        .59646E-03    .49748E-05
  24  Prefactor     1.1440        .16869        .32647E-04    .97643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 108.335
  Prefactor  = 123.899
  Prefactor  = 0.0001
  norm       = 11.4254
  norm       = 6.43162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6275
  norm       = 0.0001
  Prefactor  = 16.1366
  norm       = 0.0001
  Prefactor  = 56.2723
  norm       = 1.41506
  norm       = 0.733919
  Prefactor  = 21.2606
  norm       = 0.0001
  Prefactor  = 52.2568
  Normalizat = 0.0203801
  Prefactor  = 1.14402
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.969     FROM HESSE     STATUS=OK           373 CALLS     5834 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    62.570        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    109.39        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    140.20        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    18.075        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     108.33        148.67        .15460E-05   -1.3623    
   6  Prefactor     123.90        136.33        .14471E-05   -1.3477    
   7  Prefactor     .10000E-03    48.361        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.425        7.5339        .94834E-06   -1.5032    
   9  norm          6.4316        2.7148        .51948E-06   -1.5201    
  10  Prefactor     .10000E-03    209.45        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    61.331        .10936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    79.075        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.627        92.623        .33026E-05   -1.4735    
  14  norm          .10000E-03    7.7882        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.137        26.385        .79797E-06   -1.4904    
  16  norm          .10000E-03    10.732        .88098E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     56.272        28.094        .21393E-05   -1.4206    
  18  norm          1.4151        1.0647        .43476E-06   -1.5470    
  19  norm          .73392        .40585        .37042E-06   -1.5537    
  20  Prefactor     21.261        12.021        .69506E-06   -1.4785    
  21  norm          .10000E-03    4.5874        .56028E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     52.257        57.223        .22196E-05   -1.4261    
  23  Normalizat    .20380E-01    6.8507        .23858E-04   -1.5063    
  24  Prefactor     1.1440        .16610        .65294E-05   -.88072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8871e-11
Minuit parameter uncertainties:
  1  3.15884e-07
  2  3.33583e-07
  3  2.63945e-07
  4  1.17678e-07
  5  149.185
  6  136.679
  7  3.10674e-07
  8  7.53451
  9  2.71488
  10  9.28558e-05
  11  0.000206201
  12  4.71846e-06
  13  93.1939
  14  5.73996e-07
  15  26.4044
  16  1.82524e-05
  17  28.1007
  18  1.06472
  19  0.405851
  20  12.022
  21  6.32376e-07
  22  57.2831
  23  0.443365
  24  0.166173
Done.

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

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.062e-04  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:  1.144e+00  1.662e-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:  2.038e-02  4.434e-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: 2.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.76e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/283083/likelihoodResults_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.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) = 4509.9692083
delta logL = -7.83895920904e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4509.96897411
delta logL = 0.000155807857482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36259E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6800       1.0000          .0000       10.000    
     3 'Normalizat'    .19105E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1445       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.

 FCN=   4509.601     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      285 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71270        22.289        .98068E-02    .10100E-02
   2  Index         4.0941        6.8948        .13533        .10880E-03
   3  Normalizat    .10000E-01    .22184E-01    .32246    ** at limit **
   4  Prefactor     1.1347        .33804E-01    .36098E-01    .79954E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.712703
  Index      = 4.09411
  Normalizat = 0.01
  Prefactor  = 1.13472
 **********
 **   18 **HESSE 
 **********

 FCN=   4509.601     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      318 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71270        69.220        .71186E-04   -1.5539    
   2  Index         4.0941        6.0659        .78205E-02   -.18219    
   3  Normalizat    .10000E-01    .57876        .14428E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1347        .82177E-01    .16338E-03   -.88364    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.62162e-09
Minuit parameter uncertainties:
  1  14.0633
  2  11.3414
  3  1.02399e-06
  4  0.0821863
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/283083': 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) = 4509.60126574
delta logL = 0.367864173709

Extracting fit parameters...

4FGL J0156.5+3914
   Spectrum: PowerLaw
273    Prefactor:  7.127e-01  1.406e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  4.094e+00  1.134e+01  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:  1.135e+00  8.219e-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:  1.000e-02  1.024e-06  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/283083/cmap_HighResolution_623030401_623635201_4FGL_J0156.5+3914_weekly_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.76e-02', job_status='DONE', photon_flux_upper_limit='2.26e-07', time_completed='2021-07-04 03:58:21.445853', job_id='283083', GAL2='1.13', fit_tolerance='1e-08', EG2='0.01', EG='0.02', time_epoch_completed='1625396301.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.68e-01', ts2='0.74', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='635' AND source_name='4FGL J0156.5+3914' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 03:58:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 283083: <4FGL_J0156.5+3914_weekly_bin635> in cluster <slac> Done

Job <4FGL_J0156.5+3914_weekly_bin635> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 03:42:53 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 03:42:54 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:42:54 2021
Terminated at Sun Jul  4 03:58:23 2021
Results reported at Sun Jul  4 03:58:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0156.5+3914_weekly_bin635 29.1325 39.2493 623030401 623635201 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 :                                   747.00 sec.
    Max Memory :                                 1133 MB
    Average Memory :                             294.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

