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


Performing analysis on: 4FGL_J0937.1+5008_weekly_bin511
RA = 144.297, Dec = 50.1437
tmin = 548035201, tmax = 548640001
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='913126', job_status='RUN', time_executed='2021-07-15 19:00:45.628951', time_epoch_executed='1626400845.63' WHERE source_name='4FGL J0937.1+5008' and cadence='weekly' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913126

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913126/ft1_4FGL_J0937.1+5008_weekly_bin511.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913126/ft1_4FGL_J0937.1+5008_weekly_bin511.fits outfile=/scratch/kocevski/913126/ft1_filteredMKT_4FGL_J0937.1+5008_weekly_bin511.fits ra=144.297 dec=50.1437 rad=12.0 tmin=548035201.0 tmax=548640001.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 6.69
user 6.39
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.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/913126/ft1_filteredMKT_4FGL_J0937.1+5008_weekly_bin511.fits evtable="EVENTS" outfile="/scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/913126/ltcube_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.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/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits
.....................!
real 25.32
user 24.95
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/913126/ltcube_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.fits outfile=/scratch/kocevski/913126/expmap_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.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/913126/ltcube_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.fits
.....................!
real 156.19
user 151.37
sys 4.38

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

Setting source of interest to:
4FGL J0937.1+5008 @ 144.297 50.1437

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits scfile=/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits outfile=/scratch/kocevski/913126/cmap_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.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=144.297 yref=50.1437 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.51
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits scfile=/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits outfile=/scratch/kocevski/913126/cmap_HighResolution_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.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=144.297 yref=50.1437 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.51
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913126/Model_4FGL_J0937.1+5008_weekly_bin511.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/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits.....................!
real 24.66
user 23.45
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits', '/scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits', expMap='/scratch/kocevski/913126/expmap_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.fits', expCube='/scratch/kocevski/913126/ltcube_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913126/Model_4FGL_J0937.1+5008_weekly_bin511.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0937.1+5008'

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.244e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.397e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/913126/ft1_filtered_4FGL_J0937.1+5008_weekly_bin511.fits
Spacecraft file(s): /scratch/kocevski/913126/ft2_4FGL_J0937.1+5008_weekly_bin511.fits
Exposure map: /scratch/kocevski/913126/expmap_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.fits
Exposure cube: /scratch/kocevski/913126/ltcube_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913126/Model_4FGL_J0937.1+5008_weekly_bin511.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) = 2407.78505059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.987       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6384       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.089       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89650       1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.762       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8183       1.0000         .10000E-03   10000.    
    12 'norm      '    .11118E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7559       1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    112.34       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.325       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8898       1.0000         .10000E-03   10000.    
    22 'norm      '    .10206E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.573       1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.980       1.0000         .10000E-03   10000.    
    25 'norm      '    1.8725       1.0000         .10000E-03   10000.    
    26 'norm      '    44.245       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2614       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    16.210       1.0000         .10000E-03   10000.    
    30 'Prefactor '    109.90       1.0000         .10000E-03   10000.    
    31 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10023E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.5629       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2407.739     FROM MIGRAD    STATUS=CONVERGED    107 CALLS     5131 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.994        1.5236       -.83406E-06    .14745E-02
   2  norm          1.6314        1.4263       -.36553E-06    .11551E-03
   3  norm          .10000E-03    4.1760        .65897E-08** at limit **
   4  Prefactor     22.096        1.4114        .28875E-06   -.46874E-03
   5  Prefactor     .90122        7.1110        .29179E-05    .27002E-03
   6  Prefactor     17.389        1.1729        .10189E-06   -.82705E-05
   7  Prefactor     .10006E-03    183.24       -.18784E-04** at limit **
   8  Prefactor     .10000E-03    2.7235        .27498E-06** at limit **
   9  Prefactor     31.766        1.3271        .36916E-06   -.98226E-03
  10  norm          .10000E-03    .67754       -.18545E-07** at limit **
  11  Prefactor     8.8192        4.5751       -.11445E-05   -.24656E-02
  12  norm          .10003E-03    23.803        .15129E-04** at limit **
  13  Prefactor     2.7587        4.6026       -.39353E-06    .62048E-03
  14  Prefactor     36.081        1.4520       -.33019E-06    .14648E-02
  15  Prefactor     .10000E-03    2.3260        .17508E-07** at limit **
  16  Prefactor     .10003E-03    12.726        .21753E-05** at limit **
  17  Prefactor     .10001E-03    9.7241        .15168E-04** at limit **
  18  norm          .10000E-03    5.2093        .38143E-05** at limit **
  19  Prefactor     112.34        1.0483        .16212E-07    .28002E-04
  20  Prefactor     14.333        1.1803       -.39601E-06    .22865E-03
  21  Prefactor     3.8930        1.1218        .48605E-06    .11058E-03
  22  norm          .10000E-03    10.516        .18297E-05** at limit **
  23  Prefactor     22.583        2.0593        .95318E-06   -.19766E-02
  24  Prefactor     37.978        1.0844       -.16018E-06    .51826E-03
  25  norm          1.8730        .93281        .12715E-07    .88634E-03
  26  norm          44.252        1.4000       -.93815E-07    .12366E-02
  27  Prefactor     8.2650        1.4395        .80297E-06    .61215E-03
  28  Prefactor     .10001E-03    11.195       -.18018E-04** at limit **
  29  norm          16.211        4.5079        .28841E-05    .47597E-02
  30  Prefactor     109.91        1.4607        .27366E-06   -.26865E-02
  31  norm          .10000E-03    1.0697       -.22066E-07** at limit **
  32  Prefactor     .10000E-03    27.066       -.18051E-04** at limit **
  33  Normalizat    .10000E-01    1.3878        .73113E-05** at limit **
  34  Prefactor     1.5630        .18693        .63407E-06    .20994E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9935
  norm       = 1.63142
  norm       = 0.0001
  Prefactor  = 22.0963
  Prefactor  = 0.901225
  Prefactor  = 17.3886
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 31.7658
  norm       = 0.0001
  Prefactor  = 8.81923
  norm       = 0.000100032
  Prefactor  = 2.75866
  Prefactor  = 36.0808
  Prefactor  = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 112.341
  Prefactor  = 14.333
  Prefactor  = 3.89302
  norm       = 0.0001
  Prefactor  = 22.5829
  Prefactor  = 37.978
  norm       = 1.873
  norm       = 44.2524
  Prefactor  = 8.26504
  Prefactor  = 0.000100009
  norm       = 16.2114
  Prefactor  = 109.907
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.01
  Prefactor  = 1.56299
 **********
 **   18 **HESSE 
 **********

 FCN=   2407.739     FROM HESSE     STATUS=OK           822 CALLS     5953 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.994        20.288        .23609E-02   -1.4859    
   2  norm          1.6314        24.526        .82541E-02   -1.5453    
   3  norm          .10000E-03    4.1751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.096        40.416        .21306E-02   -1.4767    
   5  Prefactor     .90122        7.5325        .41701E-01   -1.5518    
   6  Prefactor     17.389        33.548        .24015E-02   -1.4874    
   7  Prefactor     .10006E-03    184.48        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     31.766        48.090        .17774E-02   -1.4580    
  10  norm          .10000E-03    .60775        .16962E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8192        6.5215        .33744E-02   -1.5114    
  12  norm          .10003E-03    35.085        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7587        5.0769        .61301E-02   -1.5376    
  14  Prefactor     36.081        22.369        .16681E-02   -1.4506    
  15  Prefactor     .10000E-03    2.3204        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10003E-03    33.301        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    14.604        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    14.237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     112.34        69.003        .94884E-03   -1.3584    
  20  Prefactor     14.333        13.822        .26456E-02   -1.4951    
  21  Prefactor     3.8930        10.419        .51145E-02   -1.5313    
  22  norm          .10000E-03    10.546        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     22.583        68.228        .21077E-02   -1.4757    
  24  Prefactor     37.978        51.287        .16259E-02   -1.4475    
  25  norm          1.8730        .96414        .72686E-02   -1.5434    
  26  norm          44.252        24.810        .15068E-02   -1.4377    
  27  Prefactor     8.2650        9.9858        .34870E-02   -1.5133    
  28  Prefactor     .10001E-03    13.590        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          16.211        6.0669        .24870E-02   -1.4902    
  30  Prefactor     109.91        57.195        .95919E-03   -1.3607    
  31  norm          .10000E-03    1.0500        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10000E-03    29.245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .49183        .20665       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     1.5630        .27305        .52050E-01   -.75790    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41934e-07
Minuit parameter uncertainties:
  1  20.2958
  2  12.6569
  3  1.23e-05
  4  40.4666
  5  5.21152
  6  33.584
  7  0.00653974
  8  4.67809e-05
  9  48.1489
  10  2.19318e-06
  11  6.52198
  12  0.00211558
  13  5.07766
  14  22.3738
  15  1.32147e-06
  16  0.00202109
  17  0.000798849
  18  8.50388e-05
  19  69.0519
  20  13.8252
  21  10.4237
  22  4.86445e-05
  23  68.4648
  24  51.3467
  25  0.964152
  26  24.8157
  27  9.98777
  28  0.000683079
  29  6.06716
  30  57.224
  31  9.59453e-07
  32  0.000306345
  33  2.84526e-05
  34  0.273305
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  2.021e-03  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.397e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.563e+00  2.733e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.000e-02  2.845e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913126/likelihoodResults_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2407.73903487
delta logL = -0.000145736336435

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2407.73889022
delta logL = -1.08263202492e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10359E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3270       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5629       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+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=   2407.739     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      309 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    235.87        .18142E-02** at limit **
   2  Index         2.3315        6.6384        .50000       -.12007E-05
   3  Normalizat    .10000E-01    .88879        .12484E-01** at limit **
   4  Prefactor     1.5630        .17525        .23006E-03   -.36223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3315
  Normalizat = 0.01
  Prefactor  = 1.56299
 **********
 **   18 **HESSE 
 **********

 FCN=   2407.739     FROM HESSE     STATUS=OK            29 CALLS      338 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3315        6.1656        .50000       -.56297    
   3  Normalizat    .10000E-01    .89247        .49937E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5630        .17403        .46013E-04   -.75791    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15576e-10
Minuit parameter uncertainties:
  1  8.04261e-05
  2  4.30732
  3  9.73952e-06
  4  0.174096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913126': 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) = 2407.73888915
delta logL = -1.66451172845e-08

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  8.043e-05  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.331e+00  4.307e+00  0.000e+00  1.000e+01 (-1.000e+00)
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.563e+00  1.741e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.000e-02  9.740e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.297 50.144

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/913126/cmap_HighResolution_548035201_548640001_4FGL_J0937.1+5008_weekly_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-07-15 19:11:15.500410', job_id='913126', GAL2='1.56', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1626401475.5', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.56', dlogl='-1.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='511' AND source_name='4FGL J0937.1+5008' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul 15 19:11:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 913126: <4FGL_J0937.1+5008_weekly_bin511> in cluster <slac> Done

Job <4FGL_J0937.1+5008_weekly_bin511> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jul 15 19:00:27 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 15 19:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 15 19:00:28 2021
Terminated at Thu Jul 15 19:11:16 2021
Results reported at Thu Jul 15 19:11:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_weekly_bin511 144.297 50.1437 548035201 548640001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0937.1+5008 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   599.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             318.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   647 sec.
    Turnaround time :                            649 sec.

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

