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


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin642
RA = 29.8858, Dec = 10.7737
tmin = 627264001, tmax = 627868801
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='321430', job_status='RUN', time_executed='2021-07-04 06:07:19.005636', time_epoch_executed='1625404039.01' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='642'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/321430

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/321430/ft1_4FGL_J0159.5+1046_weekly_bin642.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/321430/ft1_4FGL_J0159.5+1046_weekly_bin642.fits outfile=/scratch/kocevski/321430/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin642.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=627264001.0 tmax=627868801.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 7.46
user 5.23
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.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/321430/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin642.fits evtable="EVENTS" outfile="/scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.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.35
user 0.38
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits" evtable="EVENTS" scfile=/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits sctable="SC_DATA" outfile=/scratch/kocevski/321430/ltcube_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.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/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits
.....................!
real 30.07
user 26.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits sctable="SC_DATA" expcube=/scratch/kocevski/321430/ltcube_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.fits outfile=/scratch/kocevski/321430/expmap_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.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/321430/ltcube_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.fits
.....................!
real 207.24
user 185.83
sys 5.18

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

Setting source of interest to:
4FGL J0159.5+1046 @ 29.8858 10.7737

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits scfile=/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits outfile=/scratch/kocevski/321430/cmap_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.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.8858 yref=10.7737 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.77
user 0.41
sys 0.19

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits scfile=/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits outfile=/scratch/kocevski/321430/cmap_HighResolution_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.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.8858 yref=10.7737 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 2.24
user 0.43
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits evtable="EVENTS" scfile=/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/321430/Model_4FGL_J0159.5+1046_weekly_bin642.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/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits.......................!
real 43.57
user 27.04
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits', '/scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits', expMap='/scratch/kocevski/321430/expmap_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.fits', expCube='/scratch/kocevski/321430/ltcube_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/321430/Model_4FGL_J0159.5+1046_weekly_bin642.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0159.5+1046'

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.134e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/321430/ft1_filtered_4FGL_J0159.5+1046_weekly_bin642.fits
Spacecraft file(s): /scratch/kocevski/321430/ft2_4FGL_J0159.5+1046_weekly_bin642.fits
Exposure map: /scratch/kocevski/321430/expmap_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.fits
Exposure cube: /scratch/kocevski/321430/ltcube_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/321430/Model_4FGL_J0159.5+1046_weekly_bin642.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1382.00285825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.167       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.889       1.0000         .10000E-03   10000.    
     8 'norm      '    28.034       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11366E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37794E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    910.28       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12654E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.303       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19212E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12768E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8074       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .16728       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1381.969     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     3308 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.163        24.587        .42743E-06    .67912E-05
   2  Prefactor     .10000E-03    33.822        .20891E-08** at limit **
   3  Prefactor     .10000E-03    182.72        .10572E-05** at limit **
   4  Prefactor     .10000E-03    3.5386        .41279E-07** at limit **
   5  norm          .10000E-03    14.122        .45405E-07** at limit **
   6  Prefactor     .10000E-03    8.4738        .97765E-07** at limit **
   7  Prefactor     24.901        16.775        .33733E-06    .63461E-05
   8  norm          28.028        24.536        .12089E-07   -.96473E-05
   9  Prefactor     .10000E-03    9.0410        .22977E-05** at limit **
  10  norm          .10000E-03    1.5652        .51388E-07** at limit **
  11  Prefactor     .10000E-03    68.404        .51254E-06** at limit **
  12  Prefactor     .10000E-03    347.47        .17724E-06** at limit **
  13  Prefactor     .10000E-03    22.440        .15868E-06** at limit **
  14  Prefactor     912.64        819.89        .27208E-05    .32031E-04
  15  Prefactor     .10000E-03    57.004        .16617E-06** at limit **
  16  Prefactor     .10002E-03    914.03       -.10375E-03** at limit **
  17  Prefactor     43.744        136.67        .29033E-05    .46605E-04
  18  Prefactor     .10000E-03    93.045        .41277E-07** at limit **
  19  norm          .10000E-03    4.6312        .89415E-09** at limit **
  20  Prefactor     .10000E-03    464.99        .71066E-06** at limit **
  21  Prefactor     .10000E-03    86.862       -.19198E-06** at limit **
  22  norm          .10000E-03    156.79       -.15965E-05** at limit **
  23  Prefactor     .10000E-03    1281.6       -.13516E-05** at limit **
  24  Normalizat    1.8074        .44639        .38487E-06    .90207E-05
  25  Prefactor     .16735        .26569       -.16179E-05    .12533E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.1632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9013
  norm       = 28.0277
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 912.635
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  Prefactor  = 43.7441
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.80744
  Prefactor  = 0.167348
 **********
 **   18 **HESSE 
 **********

 FCN=   1381.969     FROM HESSE     STATUS=OK           411 CALLS     3719 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.163        24.707        .68556E-04   -1.4538    
   2  Prefactor     .10000E-03    33.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    184.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5435        .68305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    14.122        .13648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4752        .10571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.901        16.762        .80294E-04   -1.4710    
   8  norm          28.028        24.515        .75665E-04   -1.4649    
   9  Prefactor     .10000E-03    9.0748        .10907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6127        .90819E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    68.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    347.47        .21289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.439        .17207E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     912.64        819.66        .69529E-04   -.95701    
  15  Prefactor     .10000E-03    57.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    915.24        .20600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     43.744        137.50        .30117E-03   -1.4384    
  18  Prefactor     .10000E-03    93.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.6312        .78146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    464.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    86.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    156.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1281.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8074        .44841        .22135E-03   -.69470    
  25  Prefactor     .16735        .26161        .39684E-03   -1.3113    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42046e-10
Minuit parameter uncertainties:
  1  24.714
  2  1.39592e-06
  3  4.41527e-05
  4  2.96001e-07
  5  4.28512e-07
  6  1.34481e-06
  7  16.7656
  8  24.5242
  9  1.25311e-05
  10  1.46747e-07
  11  7.53542e-05
  12  0.00015612
  13  4.51756e-06
  14  831.154
  15  7.33953e-06
  16  0.00837546
  17  138.516
  18  3.47538e-05
  19  3.86173e-07
  20  0.00179971
  21  6.09385e-05
  22  0.000236209
  23  0.00441017
  24  0.449432
  25  0.263459
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.345e-06  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.995e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.673e-01  2.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.807e+00  4.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 2.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/321430/likelihoodResults_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.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) = 1381.96920775
delta logL = -0.000404367857527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1381.96880333
delta logL = 4.76120476378e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9821       1.0000          .0000       10.000    
     3 'Normalizat'    1.8074       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .16734       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5380E+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=   1381.969     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      250 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10125E-03    156.34        .10674E-02** at limit **
   2  Index         1.9246        5.1825        .50000        .13528E-04
   3  Normalizat    1.8074        .44823E-01    .22135E-03    .25423E-05
   4  Prefactor     .16735        .26785E-01    .39679E-03    .25214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010125
  Index      = 1.92459
  Normalizat = 1.80744
  Prefactor  = 0.167349
 **********
 **   18 **HESSE 
 **********

 FCN=   1381.969     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10125E-03    594.84        .21348E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9246        6.7924        .50000       -.66249    
   3  Normalizat    1.8074        .93920E-01    .88542E-05   -.69470    
   4  Prefactor     .16735        .56107E-01    .15872E-04   -1.3113    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.60476e-08
Minuit parameter uncertainties:
  1  0.0550851
  2  938.258
  3  0.093929
  4  0.0561254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/321430': 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) = 1381.96880319
delta logL = 1.88757439901e-07

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.012e-04  5.509e-02  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  1.925e+00  9.383e+02  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  2.167e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.673e-01  5.613e-02  0.000e+00  1.000e+01 ( 1.000e+00)
536        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
537        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
534   Normalization:  1.807e+00  9.393e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 29.886 10.774

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/321430/cmap_HighResolution_627264001_627868801_4FGL_J0159.5+1046_weekly_bin642.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-02', job_status='DONE', photon_flux_upper_limit='2.15e-07', time_completed='2021-07-04 06:16:06.439031', job_id='321430', GAL2='0.17', fit_tolerance='1e-08', EG2='1.81', EG='1.81', time_epoch_completed='1625404566.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.17', dlogl='1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='642' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 06:16:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 321430: <4FGL_J0159.5+1046_weekly_bin642> in cluster <slac> Done

Job <4FGL_J0159.5+1046_weekly_bin642> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 05:59:51 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 05:59:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 05:59:53 2021
Terminated at Sun Jul  4 06:16:08 2021
Results reported at Sun Jul  4 06:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_weekly_bin642 29.8858 10.7737 627264001 627868801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0159.5+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   440.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             195.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

