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


Performing analysis on: 4FGL_J0159.5+1046_weekly_bin630
RA = 29.8858, Dec = 10.7737
tmin = 620006401, tmax = 620611201
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='321407', job_status='RUN', time_executed='2021-07-04 12:55:55.519384', time_epoch_executed='1625428555.52' WHERE source_name='4FGL J0159.5+1046' and cadence='weekly' and bin_id='630'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/321407

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/321407/ft1_4FGL_J0159.5+1046_weekly_bin630.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/321407/ft1_4FGL_J0159.5+1046_weekly_bin630.fits outfile=/scratch/kocevski/321407/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin630.fits ra=29.8858 dec=10.7737 rad=12.0 tmin=620006401.0 tmax=620611201.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 9.20
user 8.39
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.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/321407/ft1_filteredMKT_4FGL_J0159.5+1046_weekly_bin630.fits evtable="EVENTS" outfile="/scratch/kocevski/321407/ft1_filtered_4FGL_J0159.5+1046_weekly_bin630.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.06
user 0.36
sys 0.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/321407/ft1_filtered_4FGL_J0159.5+1046_weekly_bin630.fits" evtable="EVENTS" scfile=/scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits sctable="SC_DATA" outfile=/scratch/kocevski/321407/ltcube_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.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/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits
.....................!
real 27.52
user 26.63
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/321407/ft1_filtered_4FGL_J0159.5+1046_weekly_bin630.fits evtable="EVENTS" scfile=/scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits sctable="SC_DATA" expcube=/scratch/kocevski/321407/ltcube_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.fits outfile=/scratch/kocevski/321407/expmap_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.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/321407/ltcube_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.fits
.....................!
real 193.75
user 185.38
sys 5.77

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/321407/ft1_filtered_4FGL_J0159.5+1046_weekly_bin630.fits scfile=/scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits outfile=/scratch/kocevski/321407/cmap_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.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 0.91
user 0.41
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/321407/ft1_filtered_4FGL_J0159.5+1046_weekly_bin630.fits scfile=/scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits outfile=/scratch/kocevski/321407/cmap_HighResolution_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.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 0.74
user 0.42
sys 0.31

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/321407/ft1_filtered_4FGL_J0159.5+1046_weekly_bin630.fits', '/scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits', expMap='/scratch/kocevski/321407/expmap_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.fits', expCube='/scratch/kocevski/321407/ltcube_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/321407/Model_4FGL_J0159.5+1046_weekly_bin630.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/321407/ft1_filtered_4FGL_J0159.5+1046_weekly_bin630.fits
Spacecraft file(s): /scratch/kocevski/321407/ft2_4FGL_J0159.5+1046_weekly_bin630.fits
Exposure map: /scratch/kocevski/321407/expmap_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.fits
Exposure cube: /scratch/kocevski/321407/ltcube_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/321407/Model_4FGL_J0159.5+1046_weekly_bin630.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) = 19266.9164813

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32076E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0104       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9462       1.0000         .10000E-03   10000.    
     8 'norm      '    21.908       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6043       1.0000         .10000E-03   10000.    
    10 'norm      '    .78068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.6203       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11627E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.5197       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5305       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .80549       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.089       1.0000         .10000E-03   10000.    
    22 'norm      '    16.599       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12305E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95653       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0277       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=   19266.82     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2582 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3589        7.1803        .20233E-06   -.21067E-03
   2  Prefactor     .10000E-03    12.162       -.10071E-06** at limit **
   3  Prefactor     .10000E-03    3.6235        .83584E-08** at limit **
   4  Prefactor     .10000E-03    1.0418        .23248E-07** at limit **
   5  norm          .10000E-03    3.3901        .10373E-07** at limit **
   6  Prefactor     2.0094        .87728       -.17887E-07   -.14764E-02
   7  Prefactor     1.9462        1.2624        .23414E-07    .23695E-04
   8  norm          21.908        4.2408       -.33890E-06   -.16426E-04
   9  Prefactor     1.6043        1.2912       -.10534E-06   -.24448E-03
  10  norm          .78074        .41790        .24510E-08   -.35217E-04
  11  Prefactor     2.6228        17.970       -.25852E-05   -.42242E-04
  12  Prefactor     .10000E-03    14.298        .17485E-06** at limit **
  13  Prefactor     .10000E-03    4.7109       -.40477E-07** at limit **
  14  Prefactor     2.5802        72.755        .35466E-04    .13233E-04
  15  Prefactor     .10000E-03    7.0888        .93651E-08** at limit **
  16  Prefactor     9.5207        8.5839       -.28629E-06    .18941E-05
  17  Prefactor     6.5304        5.8092       -.42670E-06    .39522E-04
  18  Prefactor     .10000E-03    2.5265        .22065E-07** at limit **
  19  norm          .80536        .31428        .13506E-07    .10242E-02
  20  Prefactor     .10000E-03    6.2352        .18675E-07** at limit **
  21  Prefactor     17.084        12.977        .92705E-06    .16656E-04
  22  norm          16.596        8.3111        .36561E-07    .43244E-03
  23  Prefactor     .11247E-03    12.051       -.29593E-05** at limit **
  24  Normalizat    .95650        .11470       -.12361E-07    .16261E-03
  25  Prefactor     1.0277        .71429E-01   -.15075E-06    .35111E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.35894
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.00939
  Prefactor  = 1.94624
  norm       = 21.9076
  Prefactor  = 1.60432
  norm       = 0.780743
  Prefactor  = 2.62276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.58017
  Prefactor  = 0.0001
  Prefactor  = 9.52075
  Prefactor  = 6.53041
  Prefactor  = 0.0001
  norm       = 0.80536
  Prefactor  = 0.0001
  Prefactor  = 17.0838
  norm       = 16.5959
  Prefactor  = 0.000112469
  Normalizat = 0.956496
  Prefactor  = 1.02767
 **********
 **   18 **HESSE 
 **********

 FCN=   19266.82     FROM HESSE     STATUS=OK           447 CALLS     3029 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3589        7.3326        .96477E-03   -1.5290    
   2  Prefactor     .10000E-03    12.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.642        .50478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5987        .27458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.4457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0094        3.6649        .14599E-02   -1.5424    
   7  Prefactor     1.9462        1.2578        .12079E-03   -1.5429    
   8  norm          21.908        4.2456        .85575E-04   -1.4772    
   9  Prefactor     1.6043        1.2723        .13211E-03   -1.5455    
  10  norm          .78074        .40853        .63069E-04   -1.5531    
  11  Prefactor     2.6228        17.634        .25196E-03   -1.5384    
  12  Prefactor     .10000E-03    14.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5802        72.790        .25164E-03   -1.5387    
  15  Prefactor     .10000E-03    7.3533        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.5207        8.5491        .12988E-03   -1.5091    
  17  Prefactor     6.5304        5.7957        .15704E-03   -1.5197    
  18  Prefactor     .10000E-03    2.5471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .80536        .31050        .46795E-04   -1.5528    
  20  Prefactor     .10000E-03    6.2378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.084        12.978        .96886E-04   -1.4881    
  22  norm          16.596        8.3079        .98305E-04   -1.4893    
  23  Prefactor     .11247E-03    12.388        .13677       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95650        .12868        .31289E-03   -.94502    
  25  Prefactor     1.0277        .81817E-01    .19183E-03   -.91813    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17378e-09
Minuit parameter uncertainties:
  1  7.33409
  2  1.41975e-06
  3  0.000368456
  4  2.28854e-06
  5  1.34366e-06
  6  3.66533
  7  1.25777
  8  4.24567
  9  1.2723
  10  0.40853
  11  13.607
  12  5.67595e-06
  13  1.01196e-05
  14  27.4451
  15  2.8041e-06
  16  8.55023
  17  5.79617
  18  3.60149e-06
  19  0.310505
  20  4.74253e-06
  21  12.9801
  22  8.30851
  23  0.0248618
  24  0.128724
  25  0.0818268
Done.

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

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  2.009e+00  3.665e+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

GAL_V02
   Spectrum: PowerLaw
535    Prefactor:  1.028e+00  8.183e-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:  9.565e-01  1.287e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.35
Ra Dec: 29.886 10.774
Photon Flux Upper Limit: 4.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/321407/likelihoodResults_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19266.6351481
delta logL = 0.186074109199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 19266.6134097
delta logL = 0.207812492703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.4470       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4689       1.0000          .0000       10.000    
     3 'Normalizat'    .94863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0290       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   19266.61     FROM MIGRAD    STATUS=FAILED       100 CALLS      274 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4469        6.7951        .99786E-03   -.24009E-02
   2  Index         2.4687        1.7521        .10745E-01    .67087E-04
   3  Normalizat    .94866        .12782        .31399E-03    .14483E-06
   4  Prefactor     1.0290        .81337E-01    .19168E-03    .16607E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   19266.61     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      354 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4469        6.7951        .80270E-04   -1.5467    
   2  Index         2.4687        1.7521        .73980E-03   -.53083    
   3  Normalizat    .94866        .12782        .14260E-03   -.94771    
   4  Prefactor     1.0290        .81337E-01    .97920E-04   -.91770    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   19266.61     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      385 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.4471        2.7725        .39914E-04   -.97297E-03
   2  Index         2.4687        .79345        .42981E-03   -.12591E-03
   3  Normalizat    .94866        .12604        .12560E-04    .29690E-04
   4  Prefactor     1.0290        .79891E-01    .76673E-05    .30841E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.44708
  Index      = 2.4687
  Normalizat = 0.94866
  Prefactor  = 1.02897
 **********
 **   18 **HESSE 
 **********

 FCN=   19266.61     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.4471        2.7357        .15966E-05   -1.5467    
   2  Index         2.4687        .78308        .17192E-04   -.53084    
   3  Normalizat    .94866        .12602        .25119E-05   -.94771    
   4  Prefactor     1.0290        .79849E-01    .15335E-05   -.91770    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59393e-10
Minuit parameter uncertainties:
  1  2.73592
  2  0.787445
  3  0.126055
  4  0.0798585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/321407': 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) = 19266.6134096
delta logL = 0.207812566383

Extracting fit parameters...

4FGL J0159.5+1046
   Spectrum: PowerLaw
219    Prefactor:  1.447e+00  2.736e+00  1.000e-04  1.000e+04 ( 1.000e-13)
220        Index:  2.469e+00  7.874e-01  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.029e+00  7.986e-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:  9.487e-01  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.35
Ra Dec: 29.886 10.774

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/321407/cmap_HighResolution_620006401_620611201_4FGL_J0159.5+1046_weekly_bin630.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-03', job_status='DONE', photon_flux_upper_limit='4.74e-08', time_completed='2021-07-04 13:22:29.303569', job_id='321407', GAL2='1.03', fit_tolerance='1e-08', EG2='0.95', EG='0.96', time_epoch_completed='1625430149.3', return_code2='0', ts='0.35', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.08e-01', ts2='0.77', photon_index_error='0.00', photon_index='1.99' WHERE bin_id='630' AND source_name='4FGL J0159.5+1046' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 13:22:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0013>
Subject: Job 321407: <4FGL_J0159.5+1046_weekly_bin630> in cluster <slac> Done

Job <4FGL_J0159.5+1046_weekly_bin630> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Jul  4 05:59:49 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 05:59:51 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:51 2021
Terminated at Sun Jul  4 13:22:30 2021
Results reported at Sun Jul  4 13:22:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0159.5+1046_weekly_bin630 29.8858 10.7737 620006401 620611201 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 :                                   1545.06 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             65.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   26558 sec.
    Turnaround time :                            26561 sec.

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

