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


Performing analysis on: 4FGL_J1501.0+2238_weekly_bin525
RA = 225.257, Dec = 22.6364
tmin = 556502401, tmax = 557107201
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='698031', job_status='RUN', time_executed='2021-07-22 13:09:11.847033', time_epoch_executed='1626984551.85' WHERE source_name='4FGL J1501.0+2238' and cadence='weekly' and bin_id='525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698031

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698031/ft1_4FGL_J1501.0+2238_weekly_bin525.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698031/ft1_4FGL_J1501.0+2238_weekly_bin525.fits outfile=/scratch/kocevski/698031/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin525.fits ra=225.257 dec=22.6364 rad=12.0 tmin=556502401.0 tmax=557107201.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.74
user 7.43
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.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/698031/ft1_filteredMKT_4FGL_J1501.0+2238_weekly_bin525.fits evtable="EVENTS" outfile="/scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.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.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits" evtable="EVENTS" scfile=/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits sctable="SC_DATA" outfile=/scratch/kocevski/698031/ltcube_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.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/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits
.....................!
real 30.60
user 30.02
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits sctable="SC_DATA" expcube=/scratch/kocevski/698031/ltcube_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.fits outfile=/scratch/kocevski/698031/expmap_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.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/698031/ltcube_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.fits
.....................!
real 194.33
user 187.64
sys 6.20

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

Setting source of interest to:
4FGL J1501.0+2238 @ 225.257 22.6364

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits scfile=/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits outfile=/scratch/kocevski/698031/cmap_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.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=225.257 yref=22.6364 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.60
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits scfile=/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits outfile=/scratch/kocevski/698031/cmap_HighResolution_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.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=225.257 yref=22.6364 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.60
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits evtable="EVENTS" scfile=/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698031/Model_4FGL_J1501.0+2238_weekly_bin525.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/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits.....................!
real 71.50
user 69.83
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits', '/scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits', expMap='/scratch/kocevski/698031/expmap_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.fits', expCube='/scratch/kocevski/698031/ltcube_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/698031/Model_4FGL_J1501.0+2238_weekly_bin525.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1501.0+2238'

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  3.674e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/698031/ft1_filtered_4FGL_J1501.0+2238_weekly_bin525.fits
Spacecraft file(s): /scratch/kocevski/698031/ft2_4FGL_J1501.0+2238_weekly_bin525.fits
Exposure map: /scratch/kocevski/698031/expmap_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.fits
Exposure cube: /scratch/kocevski/698031/ltcube_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/698031/Model_4FGL_J1501.0+2238_weekly_bin525.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) = 10305.3051644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9405       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4341       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.204       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1930       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5217       1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.035       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.852       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.287       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.882       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .35121       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.460       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99961       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .91839       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10305.30     FROM MIGRAD    STATUS=CONVERGED    456 CALLS     2342 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9379        6.1725        .22815E-05   -.15789E-02
   2  norm          5.4342        2.4766       -.17085E-07    .42851E-04
   3  Prefactor     11.204        7.4660       -.65802E-06   -.14859E-04
   4  norm          8.1929        2.8417        .51666E-06    .46050E-03
   5  norm          1.5219        1.9615       -.65283E-07   -.68569E-04
   6  Prefactor     27.034        23.647       -.12300E-05   -.24544E-04
   7  Prefactor     .10000E-03    4.7884        .19269E-05** at limit **
   8  Prefactor     .10000E-03    5.7412       -.97285E-06** at limit **
   9  Prefactor     .10000E-03    5.3250       -.25476E-05** at limit **
  10  Prefactor     23.849        24.735       -.27343E-05   -.63359E-04
  11  Prefactor     11.287        7.5997        .23765E-06    .38980E-04
  12  norm          .10000E-03    30.465       -.57701E-07** at limit **
  13  Prefactor     33.872        33.585       -.95663E-05   -.21912E-03
  14  Prefactor     .10000E-03    1.2889       -.65299E-08** at limit **
  15  norm          .35142        .62260        .26049E-07   -.31239E-02
  16  Prefactor     11.456        19.703       -.37528E-05   -.97614E-04
  17  Prefactor     .10000E-03    3.2764       -.22495E-06** at limit **
  18  Prefactor     .10000E-03    6.0029        .21519E-05** at limit **
  19  Prefactor     .10000E-03    .75533       -.97352E-07** at limit **
  20  Prefactor     .10000E-03    4.9932       -.39186E-06** at limit **
  21  Normalizat    .99964        .15264        .13648E-05    .19454E-04
  22  Prefactor     .91835        .10372        .19534E-06    .11270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.93793
  norm       = 5.43417
  Prefactor  = 11.2042
  norm       = 8.19286
  norm       = 1.52185
  Prefactor  = 27.0343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.849
  Prefactor  = 11.2866
  norm       = 0.0001
  Prefactor  = 33.8716
  Prefactor  = 0.0001
  norm       = 0.351425
  Prefactor  = 11.4561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.999635
  Prefactor  = 0.91835
 **********
 **   18 **HESSE 
 **********

 FCN=   10305.30     FROM HESSE     STATUS=OK           346 CALLS     2688 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9379        10.249        .11843E-02   -1.5365    
   2  norm          5.4342        2.4769        .10441E-03   -1.5242    
   3  Prefactor     11.204        8.0567        .11969E-03   -1.5038    
   4  norm          8.1929        2.8404        .96632E-04   -1.5135    
   5  norm          1.5219        1.9460        .15696E-03   -1.5461    
   6  Prefactor     27.034        23.772        .77047E-04   -1.4668    
   7  Prefactor     .10000E-03    4.7997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.849        24.738        .82018E-04   -1.4731    
  11  Prefactor     11.287        7.5991        .11925E-03   -1.5036    
  12  norm          .10000E-03    30.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.872        33.912        .68843E-04   -1.4543    
  14  Prefactor     .10000E-03    1.2912        .11254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .35142        .65263        .21295E-03   -1.5589    
  16  Prefactor     11.456        19.727        .11834E-03   -1.5031    
  17  Prefactor     .10000E-03    3.3143        .17864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.4305        .17019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99964        .17849        .27351E-03   -.93043    
  22  Prefactor     .91835        .12177        .20164E-03   -.95503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04197e-08
Minuit parameter uncertainties:
  1  10.2555
  2  2.47698
  3  8.05746
  4  2.84045
  5  1.94605
  6  23.7804
  7  3.11021e-05
  8  1.17346e-05
  9  3.95541e-05
  10  24.7483
  11  7.59974
  12  1.08041e-06
  13  33.9314
  14  9.6348e-07
  15  0.652642
  16  19.7378
  17  6.97429e-06
  18  3.9007e-05
  19  1.69151e-05
  20  3.5212e-06
  21  0.178597
  22  0.121802
Done.

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

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  1.129e+01  7.600e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.002e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.183e-01  1.218e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.996e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.25
Ra Dec: 225.257 22.636
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.66e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 2.52e-05 +/- 1.70e-05

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) = 10304.600158
delta logL = 0.695649526531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10304.5859511
delta logL = 0.709856503505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7148       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5667       1.0000          .0000       10.000    
     3 'Normalizat'    .96570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10304.59     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      251 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7201        60.173        .38712E-02    .42221E-03
   2  Index         2.5667        2.4173        .99075E-01    .27167E-03
   3  Normalizat    .96563        .68229E-01    .45736E-01    .23320E-04
   4  Prefactor     .92789        .39323E-01    .45360E-01    .83198E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.72008
  Index      = 2.56672
  Normalizat = 0.965627
  Prefactor  = 0.927888
 **********
 **   18 **HESSE 
 **********

 FCN=   10304.59     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7201        7.7208        .13299E-03   -1.5189    
   2  Index         2.5667        .59347        .49892E-02   -.50826    
   3  Normalizat    .96563        .17309        .27757E-03   -.94191    
   4  Prefactor     .92789        .12121        .20060E-03   -.95173    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21878e-08
Minuit parameter uncertainties:
  1  7.72192
  2  0.595316
  3  0.17319
  4  0.121244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698031': 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) = 10304.5859495
delta logL = 0.709858096099

Extracting fit parameters...

4FGL J1501.0+2238
   Spectrum: PowerLaw
239    Prefactor:  6.720e+00  7.722e+00  1.000e-04  1.000e+04 ( 1.000e-13)
240        Index:  2.567e+00  5.953e-01  0.000e+00  1.000e+01 (-1.000e+00)
241        Scale:  1.799e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  9.279e-01  1.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  9.656e-01  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.67
Ra Dec: 225.257 22.636
Photon Index (Free Index): 2.57 +/- 0.60
Photon Flux (Free Index): 7.15e-08 +/- 4.46e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.15e-05

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/698031/cmap_HighResolution_556502401_557107201_4FGL_J1501.0+2238_weekly_bin525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.66e-08', energy_flux2='1.93e-05', photon_flux_error='2.46e-08', dlogl='7.10e-01', energy_flux='2.52e-05', photon_flux2='7.15e-08', job_status='DONE', time_completed='2021-07-22 13:21:59.367850', photon_index_error2='0.60', photon_index2='2.57', ts='4.25', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='1.00', time_epoch_completed='1626985319.37', return_code='0', job_id='698031', GAL2='0.93', EG2='0.97', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='4.46e-08', ts2='5.67', photon_index='2.00' WHERE bin_id='525' AND source_name='4FGL J1501.0+2238' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul 22 13:21:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 698031: <4FGL_J1501.0+2238_weekly_bin525> in cluster <slac> Done

Job <4FGL_J1501.0+2238_weekly_bin525> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jul 22 13:05:52 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 22 13:08:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 22 13:08:58 2021
Terminated at Thu Jul 22 13:21:59 2021
Results reported at Thu Jul 22 13:21:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1501.0+2238_weekly_bin525 225.257 22.6364 556502401 557107201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1501.0+2238 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   754.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   781 sec.
    Turnaround time :                            967 sec.

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

