aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 47 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1506.1+3731_weekly_bin734
RA = 226.535, Dec = 37.5183
tmin = 682905601, tmax = 683510401
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='274012', job_status='RUN', time_executed='2022-09-17 01:27:38.492046', time_epoch_executed='1663403258.49' WHERE source_name='4FGL J1506.1+3731' and cadence='weekly' and bin_id='734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274012

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274012/ft1_4FGL_J1506.1+3731_weekly_bin734.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274012/ft1_4FGL_J1506.1+3731_weekly_bin734.fits outfile=/scratch/kocevski/274012/ft1_filteredMKT_4FGL_J1506.1+3731_weekly_bin734.fits ra=226.535 dec=37.5183 rad=12.0 tmin=682905601.0 tmax=683510401.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.86
user 9.34
sys 0.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.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/274012/ft1_filteredMKT_4FGL_J1506.1+3731_weekly_bin734.fits evtable="EVENTS" outfile="/scratch/kocevski/274012/ft1_filtered_4FGL_J1506.1+3731_weekly_bin734.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.57
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 1335

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274012/ft1_filtered_4FGL_J1506.1+3731_weekly_bin734.fits" evtable="EVENTS" scfile=/scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits sctable="SC_DATA" outfile=/scratch/kocevski/274012/ltcube_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.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/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits
.....................!
real 32.64
user 31.83
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274012/ft1_filtered_4FGL_J1506.1+3731_weekly_bin734.fits evtable="EVENTS" scfile=/scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits sctable="SC_DATA" expcube=/scratch/kocevski/274012/ltcube_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.fits outfile=/scratch/kocevski/274012/expmap_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.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/274012/ltcube_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.fits
.....................!
real 191.17
user 185.92
sys 4.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/274012/ft1_filtered_4FGL_J1506.1+3731_weekly_bin734.fits scfile=/scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits outfile=/scratch/kocevski/274012/cmap_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.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.58
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274012/ft1_filtered_4FGL_J1506.1+3731_weekly_bin734.fits scfile=/scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits outfile=/scratch/kocevski/274012/cmap_HighResolution_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.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.59
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/274012/ft1_filtered_4FGL_J1506.1+3731_weekly_bin734.fits', '/scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits', expMap='/scratch/kocevski/274012/expmap_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.fits', expCube='/scratch/kocevski/274012/ltcube_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/274012/Model_4FGL_J1506.1+3731_weekly_bin734.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  0.000e+00  1.000e+06 ( 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 -5.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/274012/ft1_filtered_4FGL_J1506.1+3731_weekly_bin734.fits
Spacecraft file(s): /scratch/kocevski/274012/ft2_4FGL_J1506.1+3731_weekly_bin734.fits
Exposure map: /scratch/kocevski/274012/expmap_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.fits
Exposure cube: /scratch/kocevski/274012/ltcube_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/274012/Model_4FGL_J1506.1+3731_weekly_bin734.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) = 14554.5054618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0920       1.0000          .0000       .10000E+07
     2 'Prefactor '    .43057E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    25.487       1.0000          .0000       .10000E+07
     4 'Prefactor '    13.101       1.0000          .0000       .10000E+07
     5 'norm      '    .53701E-06   1.0000          .0000       .10000E+07
     6 'norm      '    2.1311       1.0000          .0000       .10000E+07
     7 'Prefactor '    104.32       1.0000          .0000       .10000E+07
     8 'norm      '    10.419       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29175       1.0000          .0000       .10000E+07
    10 'Prefactor '    2.2441       1.0000          .0000       .10000E+07
    11 'Prefactor '    .15543E-08   1.0000          .0000       .10000E+07
    12 'norm      '    2.1795       1.0000          .0000       .10000E+07
    13 'norm      '    .61486       1.0000          .0000       .10000E+07
    14 'Prefactor '    3.1672       1.0000          .0000       .10000E+07
    15 'Prefactor '    17.759       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.3841       1.0000          .0000       .10000E+07
    17 'Prefactor '    .42323       1.0000          .0000       .10000E+07
    18 'norm      '    .48476       1.0000          .0000       .10000E+07
    19 'Prefactor '    6.3732       1.0000          .0000       .10000E+07
    20 'Prefactor '    .94323E-03   1.0000          .0000       .10000E+07
    21 'norm      '    9.5438       1.0000          .0000       .10000E+07
    22 'Prefactor '    .12246E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    .85322       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0563       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   14552.54     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1244 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0937        1.8911       -.51939E-07    .33015E-02
   2  Prefactor     .55511E-10    6.8229        .20748E-06** at limit **
   3  Prefactor     25.383        12.571        .44778E-06   -.67367E-03
   4  Prefactor     13.111        3.4202       -.19085E-07   -.47550E-02
   5  norm          .55511E-10    4.8200       -.37123E-06** at limit **
   6  norm          2.1587        3.7590       -.23763E-06   -.33752E-03
   7  Prefactor     103.76        28.562        .66115E-06    .18827E-03
   8  norm          10.470        5.1676       -.29707E-07   -.10893E-02
   9  Prefactor     .30217        25.807        .42842E-05   -.28425E-03
  10  Prefactor     2.2422        4.3115       -.64063E-07    .95890E-03
  11  Prefactor     .11102E-09    2.0496       -.26328E-06** at limit **
  12  norm          2.1632        1.0837       -.92034E-08    .39289E-02
  13  norm          .61512        1.3576       -.38387E-07    .34446E-02
  14  Prefactor     3.1527        3.5440        .26881E-06    .26544E-02
  15  Prefactor     20.640        40.751       -.54483E-06    .35944E-04
  16  Prefactor     4.3890        6.8270        .56618E-06    .12585E-03
  17  Prefactor     .47410        18.703       -.34822E-05   -.55571E-03
  18  norm          .48890        .64950        .27858E-07   -.10149E-02
  19  Prefactor     6.2884        6.1753        .12705E-06   -.21069E-02
  20  Prefactor     .55511E-10    12.706        .86787E-08** at limit **
  21  norm          9.6333        7.1489        .79030E-07    .10755E-03
  22  Prefactor     .11102E-09    16.979       -.40634E-06** at limit **
  23  Normalizat    .85300        .13847       -.34497E-05   -.23783E-04
  24  Prefactor     1.0561        .13385        .18359E-05    .30583E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09373
  Prefactor  = 5.55112e-11
  Prefactor  = 25.3825
  Prefactor  = 13.1105
  norm       = 5.55112e-11
  norm       = 2.15869
  Prefactor  = 103.76
  norm       = 10.4702
  Prefactor  = 0.302168
  Prefactor  = 2.24216
  Prefactor  = 1.11022e-10
  norm       = 2.16324
  norm       = 0.615123
  Prefactor  = 3.15274
  Prefactor  = 20.64
  Prefactor  = 4.38901
  Prefactor  = 0.474096
  norm       = 0.488896
  Prefactor  = 6.28841
  Prefactor  = 5.55112e-11
  norm       = 9.6333
  Prefactor  = 1.11022e-10
  Normalizat = 0.853004
  Prefactor  = 1.05609
 **********
 **   18 **HESSE 
 **********

 FCN=   14552.54     FROM HESSE     STATUS=OK           457 CALLS     1701 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0937        1.8944        .71341E-03   -1.5679    
   2  Prefactor     .55511E-10    6.8286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     25.383        12.524        .19812E-03   -1.5607    
   4  Prefactor     13.111        3.4191        .27649E-03   -1.5636    
   5  norm          .55511E-10    4.8133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1587        3.7837        .70596E-03   -1.5679    
   7  Prefactor     103.76        28.576        .97916E-04   -1.5504    
   8  norm          10.470        5.1534        .31016E-03   -1.5643    
   9  Prefactor     .30217        2.6851        .10328E-01   -1.5697    
  10  Prefactor     2.2422        4.3771        .68575E-03   -1.5678    
  11  Prefactor     .11102E-09    2.0139        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1632        1.1002        .69707E-03   -1.5679    
  13  norm          .61512        1.3940        .67907E-03   -1.5692    
  14  Prefactor     3.1527        3.5377        .56924E-03   -1.5672    
  15  Prefactor     20.640        40.791        .23739E-03   -1.5617    
  16  Prefactor     4.3890        6.8755        .48077E-03   -1.5666    
  17  Prefactor     .47410        2.8777        .86843E-02   -1.5694    
  18  norm          .48890        .65579        .80258E-04   -1.5694    
  19  Prefactor     6.2884        6.2389        .39735E-03   -1.5658    
  20  Prefactor     .55511E-10    12.706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.6333        7.1400        .32415E-03   -1.5646    
  22  Prefactor     .11102E-09    16.789        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85300        .11916        .44301E-01   -.98132    
  24  Prefactor     1.0561        .11452        .39553E-01   -.90883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14756e-06
Minuit parameter uncertainties:
  1  1.89438
  2  3.45075e-05
  3  12.5242
  4  3.41914
  5  3.55626e-05
  6  3.78367
  7  28.5756
  8  5.15337
  9  1.80149
  10  4.37711
  11  2.72054e-05
  12  1.10017
  13  1.39397
  14  3.53774
  15  40.792
  16  6.87554
  17  2.33607
  18  0.655787
  19  6.23889
  20  4.96573e-05
  21  7.14004
  22  7.97704e-05
  23  0.119196
  24  0.114545
Done.

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

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  2.163e+00  1.100e+00  0.000e+00  1.000e+06 ( 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 -5.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:  1.056e+00  1.145e-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:  8.530e-01  1.192e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.30
Ra Dec: 226.535 37.518
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 2.36e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 6.90e-06

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) = 14551.4641405
delta logL = 1.07816389678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14551.4539085
delta logL = 1.08839590438

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6749       1.0000          .0000       .10000E+07
     2 'alpha     '    3.3391       1.0000          .0000       5.0000    
     3 'Normalizat'    .79346       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0988       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.

 FCN=   14551.45     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      235 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6749        6.6163        .81398E-03    .11103E-01
   2  alpha         3.3390        4.1277        .44312        .10237E-03
   3  Normalizat    .79345        .36944E-01    .43525E-01    .47839E-04
   4  Prefactor     1.0988        .36404E-01    .37633E-01    .17334E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.67494
  alpha      = 3.33905
  Normalizat = 0.793451
  Prefactor  = 1.09878
 **********
 **   18 **HESSE 
 **********

 FCN=   14551.45     FROM HESSE     STATUS=OK            33 CALLS      268 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6749        1.2879        .55512E-05   -1.5682    
   2  alpha         3.3390        .83683        .17930E-01    .34226    
   3  Normalizat    .79345        .13569        .26099E-03   -1.0031    
   4  Prefactor     1.0988        .13663        .23291E-03   -.89506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.81532e-11
Minuit parameter uncertainties:
  1  1.28788
  2  0.855519
  3  0.135744
  4  0.136671
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274012': 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) = 14551.4539085
delta logL = 1.08839591585

Extracting fit parameters...

4FGL J1506.1+3731
   Spectrum: LogParabola
279         norm:  1.675e+00  1.288e+00  0.000e+00  1.000e+06 ( 1.000e-11)
280        alpha:  3.339e+00  8.555e-01  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  1.019e-01  0.000e+00 -5.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:  1.099e+00  1.367e-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:  7.935e-01  1.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.85
Ra Dec: 226.535 37.518
Photon Index (Free Index): 3.34 +/- 0.86
Photon Flux (Free Index): 8.32e-08 +/- 3.56e-08
Energy Flux (Free Index): 1.48e-05 +/- 5.72e-06

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/274012/cmap_HighResolution_682905601_683510401_4FGL_J1506.1+3731_weekly_bin734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='1.48e-05', photon_flux_error='2.36e-08', dlogl='1.09e+00', energy_flux='1.36e-05', photon_flux2='8.32e-08', job_status='DONE', time_completed='2022-09-17 01:42:01.051854', photon_index_error2='0.86', photon_index2='3.34', ts='8.30', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='5.72e-06', EG='0.85', time_epoch_completed='1663404121.05', return_code='0', job_id='274012', GAL2='1.10', EG2='0.79', return_code2='0', energy_flux_error='6.90e-06', photon_flux_error2='3.56e-08', ts2='10.85', photon_index='2.40' WHERE bin_id='734' AND source_name='4FGL J1506.1+3731' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Sep 17 01:42:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 274012: <4FGL_J1506.1+3731_weekly_bin734> in cluster <slac> Done

Job <4FGL_J1506.1+3731_weekly_bin734> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 17 01:25:33 2022
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 17 01:26:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 17 01:26:43 2022
Terminated at Sat Sep 17 01:42:01 2022
Results reported at Sat Sep 17 01:42:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1506.1+3731_weekly_bin734 226.535 37.5183 682905601 683510401 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 :                                   855.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             339.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            988 sec.

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

