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


Performing analysis on: 4FGL_J1506.1+3731_weekly_bin494
RA = 226.535, Dec = 37.5183
tmin = 537753601, tmax = 538358401
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='763982', job_status='RUN', time_executed='2021-07-22 16:42:59.565774', time_epoch_executed='1626997379.57' WHERE source_name='4FGL J1506.1+3731' and cadence='weekly' and bin_id='494'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/763982

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/763982/ft1_4FGL_J1506.1+3731_weekly_bin494.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/763982/ft1_4FGL_J1506.1+3731_weekly_bin494.fits outfile=/scratch/kocevski/763982/ft1_filteredMKT_4FGL_J1506.1+3731_weekly_bin494.fits ra=226.535 dec=37.5183 rad=12.0 tmin=537753601.0 tmax=538358401.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 13.10
user 12.66
sys 0.36

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.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/763982/ft1_filteredMKT_4FGL_J1506.1+3731_weekly_bin494.fits evtable="EVENTS" outfile="/scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.37
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits" evtable="EVENTS" scfile=/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits sctable="SC_DATA" outfile=/scratch/kocevski/763982/ltcube_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.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/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits
.....................!
real 27.28
user 26.86
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits sctable="SC_DATA" expcube=/scratch/kocevski/763982/ltcube_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.fits outfile=/scratch/kocevski/763982/expmap_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.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/763982/ltcube_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.fits
.....................!
real 191.19
user 185.23
sys 5.42

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

Setting source of interest to:
4FGL J1506.1+3731 @ 226.535 37.5183

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits scfile=/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits outfile=/scratch/kocevski/763982/cmap_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.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=226.535 yref=37.5183 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.57
user 0.39
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits scfile=/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits outfile=/scratch/kocevski/763982/cmap_HighResolution_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.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=226.535 yref=37.5183 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.73
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits evtable="EVENTS" scfile=/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/763982/Model_4FGL_J1506.1+3731_weekly_bin494.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/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits.....................!
real 32.47
user 31.17
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits', '/scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits', expMap='/scratch/kocevski/763982/expmap_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.fits', expCube='/scratch/kocevski/763982/ltcube_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/763982/Model_4FGL_J1506.1+3731_weekly_bin494.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1506.1+3731'

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.445e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/763982/ft1_filtered_4FGL_J1506.1+3731_weekly_bin494.fits
Spacecraft file(s): /scratch/kocevski/763982/ft2_4FGL_J1506.1+3731_weekly_bin494.fits
Exposure map: /scratch/kocevski/763982/expmap_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.fits
Exposure cube: /scratch/kocevski/763982/ltcube_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/763982/Model_4FGL_J1506.1+3731_weekly_bin494.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) = 3339.40084136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12355E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    4.5973       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.1444       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.112       1.0000         .10000E-03   10000.    
     6 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.289       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.456       1.0000         .10000E-03   10000.    
    11 'norm      '    16.539       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .97716       1.0000         .10000E-03   10000.    
    16 'norm      '    .41104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12638E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.806       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.063       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1503       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.802       1.0000         .10000E-03   10000.    
    22 'norm      '    8.5282       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.9709       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.1374       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .74129       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3339.304     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3796 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    41.015       -.68871E-05** at limit **
   2  norm          4.5970        4.7113       -.24115E-06    .56856E-04
   3  Prefactor     1.1364        61.351        .11211E-04    .18385E-03
   4  Prefactor     .10000E-03    9.3363       -.33872E-06** at limit **
   5  Prefactor     17.110        7.7234       -.37997E-07    .21347E-05
   6  norm          .10000E-03    7.6202       -.12019E-06** at limit **
   7  Prefactor     16.283        24.078        .33289E-08    .63513E-05
   8  norm          .10000E-03    2.3725        .14024E-07** at limit **
   9  Prefactor     .10000E-03    21.870       -.54429E-07** at limit **
  10  Prefactor     21.470        33.018       -.75150E-06   -.79933E-05
  11  norm          16.539        13.501       -.31204E-06   -.29674E-04
  12  Prefactor     2.9851        44.533        .81177E-05    .13269E-04
  13  Prefactor     .10000E-03    6.8344        .53336E-06** at limit **
  14  Prefactor     .10000E-03    4.2630        .63210E-07** at limit **
  15  norm          .97993        2.1210       -.25176E-05    .32095E-03
  16  norm          .10000E-03    3.8353        .17490E-06** at limit **
  17  Prefactor     .10000E-03    31.903        .36063E-05** at limit **
  18  Prefactor     32.641        105.28       -.24802E-05   -.13602E-05
  19  Prefactor     14.062        12.764        .48584E-08    .93656E-06
  20  Prefactor     6.1403        35.369        .39253E-05    .96136E-05
  21  Prefactor     16.831        21.518       -.93653E-06    .33117E-04
  22  norm          8.5279        3.2773        .82849E-07    .66638E-04
  23  Prefactor     9.9674        22.526       -.24093E-06    .29463E-04
  24  Prefactor     .10000E-03    84.996       -.18817E-05** at limit **
  25  Prefactor     .10000E-03    89.099        .16006E-06** at limit **
  26  norm          3.1372        20.085        .26196E-05   -.11109E-03
  27  Prefactor     .10000E-03    13.141        .99924E-07** at limit **
  28  Normalizat    1.0020        .24978        .70312E-06    .95259E-04
  29  Prefactor     .74113        .23161       -.64028E-06    .91439E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100661
  norm       = 4.59699
  Prefactor  = 1.13638
  Prefactor  = 0.0001
  Prefactor  = 17.1101
  norm       = 0.0001
  Prefactor  = 16.2834
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4703
  norm       = 16.539
  Prefactor  = 2.98506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.979934
  norm       = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 32.6408
  Prefactor  = 14.0617
  Prefactor  = 6.14031
  Prefactor  = 16.8309
  norm       = 8.52792
  Prefactor  = 9.96745
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.13717
  Prefactor  = 0.0001
  Normalizat = 1.00198
  Prefactor  = 0.741129
 **********
 **   18 **HESSE 
 **********

 FCN=   3339.304     FROM HESSE     STATUS=OK           571 CALLS     4367 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10066E-03    38.669        .87436E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.5970        4.6872        .12105E-03   -1.5279    
   3  Prefactor     1.1364        62.715        .43382E-03   -1.5495    
   4  Prefactor     .10000E-03    9.3546        .17237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.110        7.7491        .96820E-04   -1.4880    
   6  norm          .10000E-03    7.6221        .15580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.283        24.127        .99236E-04   -1.4901    
   8  norm          .10000E-03    2.3738        .86925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.470        33.027        .86471E-04   -1.4781    
  11  norm          16.539        13.473        .98484E-04   -1.4894    
  12  Prefactor     2.9851        44.513        .23357E-03   -1.5362    
  13  Prefactor     .10000E-03    6.8702        .14746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2905        .11651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .97993        1.9757        .11485E-02   -1.5510    
  16  norm          .10000E-03    14.407        .20844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.641        105.04        .69960E-04   -1.4565    
  19  Prefactor     14.062        12.767        .10681E-03   -1.4958    
  20  Prefactor     6.1403        34.469        .16188E-03   -1.5212    
  21  Prefactor     16.831        20.416        .97711E-04   -1.4887    
  22  norm          8.5279        3.3096        .47446E-04   -1.5124    
  23  Prefactor     9.9674        22.715        .12690E-03   -1.5076    
  24  Prefactor     .10000E-03    85.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    89.172        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.1372        19.374        .22887E-03   -1.5354    
  27  Prefactor     .10000E-03    13.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0020        .29743        .23204E-03   -.92964    
  29  Prefactor     .74113        .27467        .26657E-03   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.84615e-10
Minuit parameter uncertainties:
  1  0.0101214
  2  4.68757
  3  16.902
  4  3.90766e-05
  5  7.74953
  6  1.13481e-05
  7  24.1418
  8  3.06594e-06
  9  7.74925e-06
  10  33.055
  11  13.4757
  12  23.0744
  13  1.29476e-05
  14  5.07425e-06
  15  1.97588
  16  0.000297894
  17  0.000692997
  18  105.641
  19  12.7697
  20  29.1218
  21  20.4244
  22  3.30963
  23  22.7346
  24  9.09343e-06
  25  0.000504239
  26  15.5994
  27  1.3101e-05
  28  0.297926
  29  0.275175
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  9.799e-01  1.976e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.398e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.411e-01  2.752e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.002e+00  2.979e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 226.535 37.518
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/763982/likelihoodResults_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.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) = 3339.30371328
delta logL = 5.56183476874e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3339.3037118
delta logL = 7.0459982453e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .97992       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4037       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74111       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+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=   3339.304     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      246 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .98144        1.8989        .11469E-02    .19390E-02
   2  alpha         2.4062        1.7403        .34511E-01   -.46515E-05
   3  Normalizat    1.0018        .27219        .23206E-03   -.24005E-04
   4  Prefactor     .74127        .26966        .26655E-03   -.86583E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.981443
  alpha      = 2.4062
  Normalizat = 1.00176
  Prefactor  = 0.741275
 **********
 **   18 **HESSE 
 **********

 FCN=   3339.304     FROM HESSE     STATUS=OK            27 CALLS      273 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .98144        1.9195        .22938E-03   -1.5510    
   2  alpha         2.4062        1.7567        .13804E-02   -.37528E-01
   3  Normalizat    1.0018        .27258        .92826E-05   -.92971    
   4  Prefactor     .74127        .26989        .10662E-04   -1.0193    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08575e-11
Minuit parameter uncertainties:
  1  1.91958
  2  1.9482
  3  0.272963
  4  0.270366
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/763982': 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) = 3339.30371075
delta logL = 8.09508492239e-06

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  9.814e-01  1.920e+00  1.000e-04  1.000e+04 ( 1.000e-11)
280        alpha:  2.406e+00  1.948e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  4.312e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  7.413e-01  2.704e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  1.002e+00  2.730e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.38
Ra Dec: 226.535 37.518

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/763982/cmap_HighResolution_537753601_538358401_4FGL_J1506.1+3731_weekly_bin494.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.85e-05', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-07-22 16:57:00.641413', job_id='763982', GAL2='0.74', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1626998220.64', return_code2='0', ts='0.38', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='8.10e-06', ts2='0.37', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='494' AND source_name='4FGL J1506.1+3731' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul 22 16:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 763982: <4FGL_J1506.1+3731_weekly_bin494> in cluster <slac> Done

Job <4FGL_J1506.1+3731_weekly_bin494> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jul 22 16:40:41 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 22 16:41:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 22 16:41:42 2021
Terminated at Thu Jul 22 16:57:01 2021
Results reported at Thu Jul 22 16:57:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_weekly_bin494 226.535 37.5183 537753601 538358401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1506.1+3731 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   705.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             256.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            980 sec.

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

