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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1769
RA = 144.297, Dec = 50.1437
tmin = 697852801, tmax = 698112001
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='430890', job_status='RUN', time_executed='2023-02-15 00:32:37.352931', time_epoch_executed='1676449957.35' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430890

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430890/ft1_4FGL_J0937.1+5008_daily_bin1769.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430890/ft1_4FGL_J0937.1+5008_daily_bin1769.fits outfile=/scratch/kocevski/430890/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1769.fits ra=144.297 dec=50.1437 rad=12.0 tmin=697852801.0 tmax=698112001.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 4.39
user 4.17
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.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/430890/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1769.fits evtable="EVENTS" outfile="/scratch/kocevski/430890/ft1_filtered_4FGL_J0937.1+5008_daily_bin1769.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

Number of photons that the gtmktime cut: 695

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430890/ft1_filtered_4FGL_J0937.1+5008_daily_bin1769.fits" evtable="EVENTS" scfile=/scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits sctable="SC_DATA" outfile=/scratch/kocevski/430890/ltcube_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.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/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits
.....................!
real 11.84
user 11.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430890/ft1_filtered_4FGL_J0937.1+5008_daily_bin1769.fits evtable="EVENTS" scfile=/scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits sctable="SC_DATA" expcube=/scratch/kocevski/430890/ltcube_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.fits outfile=/scratch/kocevski/430890/expmap_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.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/430890/ltcube_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.fits
.....................!
real 189.40
user 185.13
sys 3.97

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/430890/ft1_filtered_4FGL_J0937.1+5008_daily_bin1769.fits scfile=/scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits outfile=/scratch/kocevski/430890/cmap_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430890/ft1_filtered_4FGL_J0937.1+5008_daily_bin1769.fits scfile=/scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits outfile=/scratch/kocevski/430890/cmap_HighResolution_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.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.53
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430890/ft1_filtered_4FGL_J0937.1+5008_daily_bin1769.fits', '/scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits', expMap='/scratch/kocevski/430890/expmap_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.fits', expCube='/scratch/kocevski/430890/ltcube_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430890/Model_4FGL_J0937.1+5008_daily_bin1769.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  0.000e+00  1.000e+06 ( 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/430890/ft1_filtered_4FGL_J0937.1+5008_daily_bin1769.fits
Spacecraft file(s): /scratch/kocevski/430890/ft2_4FGL_J0937.1+5008_daily_bin1769.fits
Exposure map: /scratch/kocevski/430890/expmap_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.fits
Exposure cube: /scratch/kocevski/430890/ltcube_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430890/Model_4FGL_J0937.1+5008_daily_bin1769.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7499.34496969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9006       1.0000          .0000       .10000E+07
     2 'norm      '    1.9805       1.0000          .0000       .10000E+07
     3 'norm      '    .72381E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    14.763       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28398E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.4615       1.0000          .0000       .10000E+07
     7 'Prefactor '    .48222E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .94824E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .54812E-05   1.0000          .0000       .10000E+07
    10 'norm      '    .19042E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    5.2134       1.0000          .0000       .10000E+07
    12 'Prefactor '    .42127       1.0000          .0000       .10000E+07
    13 'Prefactor '    .66058E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .99154E-06   1.0000          .0000       .10000E+07
    15 'norm      '    14.714       1.0000          .0000       .10000E+07
    16 'Prefactor '    32.078       1.0000          .0000       .10000E+07
    17 'Prefactor '    .20803E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.6699       1.0000          .0000       .10000E+07
    19 'norm      '    .16114E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    .15228E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .65896E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.1897       1.0000          .0000       .10000E+07
    23 'norm      '    36.995       1.0000          .0000       .10000E+07
    24 'Prefactor '    .98362E-05   1.0000          .0000       .10000E+07
    25 'norm      '    3.8659       1.0000          .0000       .10000E+07
    26 'Prefactor '    .15034E-02   1.0000          .0000       .10000E+07
    27 'norm      '    1.7806       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .89916       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=   7495.998     FROM MIGRAD    STATUS=CONVERGED    171 CALLS     1556 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8769        6.3030       -.33113E-06   -.10271E-03
   2  norm          1.9420        4.0705       -.44775E-06    .15285E-02
   3  norm          .35083E-07    1.6084       -.52658E-06** at limit **
   4  Prefactor     14.714        1.6481        .23979E-06   -.31419E-01
   5  Prefactor     .18874E-08    68.449       -.66956E-05** at limit **
   6  Prefactor     2.4716        3.3614       -.39984E-06    .75809E-02
   7  Prefactor     .13732E-05    5.4802       -.92618E-06** at limit **
   8  norm           .0000        .22337       -.12121E-07** at limit **
   9  Prefactor     .61062E-09    1.3453        .29598E-06** at limit **
  10  norm          .30309E-07    2.7121       -.20312E-06** at limit **
  11  Prefactor     5.2047        2.5492        .28112E-06    .51636E-02
  12  Prefactor     .45670        11.379       -.72345E-05   -.13716E-01
  13  Prefactor     .38858E-09    3.2337        .14776E-05** at limit **
  14  Prefactor     .77716E-09    3.4048        .22372E-05** at limit **
  15  norm          14.826        1.4196        .18816E-06    .10171E-01
  16  Prefactor     32.104        1.1219        .11301E-07    .10440E-01
  17  Prefactor     .65409E-06    6.0300        .22567E-05** at limit **
  18  Prefactor     9.6680        6.0757        .28261E-06    .63401E-02
  19  norm           .0000        5.3799       -.42811E-06** at limit **
  20  Prefactor     .95501E-06    6.2791        .14444E-05** at limit **
  21  Prefactor     .59841E-07    10.377        .26049E-05** at limit **
  22  norm          1.1900        .47083        .57922E-07    .24601E-01
  23  norm          36.880        1.1048        .10451E-07    .19281E-01
  24  Prefactor     .33307E-09    1.6800        .55190E-06** at limit **
  25  norm          3.8668        2.5929       -.44005E-06    .39723E-02
  26  Prefactor     .72492E-06    12.677       -.52642E-05** at limit **
  27  norm          1.7810        1.1745       -.67397E-07   -.35171E-02
  28  Normalizat    1.0899        .17565        .80529E-06    .53650E-04
  29  Prefactor     .89924        .19870        .74483E-05    .11659E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.87686
  norm       = 1.942
  norm       = 3.5083e-08
  Prefactor  = 14.7137
  Prefactor  = 1.88738e-09
  Prefactor  = 2.47162
  Prefactor  = 1.37323e-06
  norm       = 0
  Prefactor  = 6.10623e-10
  norm       = 3.03091e-08
  Prefactor  = 5.20474
  Prefactor  = 0.456699
  Prefactor  = 3.88578e-10
  Prefactor  = 7.77156e-10
  norm       = 14.8259
  Prefactor  = 32.1042
  Prefactor  = 6.54088e-07
  Prefactor  = 9.668
  norm       = 0
  Prefactor  = 9.55014e-07
  Prefactor  = 5.9841e-08
  norm       = 1.19
  norm       = 36.8798
  Prefactor  = 3.33067e-10
  norm       = 3.86684
  Prefactor  = 7.2492e-07
  norm       = 1.78103
  Normalizat = 1.08988
  Prefactor  = 0.899242
 **********
 **   18 **HESSE 
 **********

 FCN=   7495.998     FROM HESSE     STATUS=OK           611 CALLS     2167 TOTAL
                     EDM=   .22E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8769        6.3489        .51062E-03   -1.5669    
   2  norm          1.9420        4.1002        .73622E-03   -1.5680    
   3  norm          .35083E-07    3.6979        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.714        10.168        .26042E-03   -1.5631    
   5  Prefactor     .18874E-08    67.884        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4716        3.3938        .65159E-03   -1.5677    
   7  Prefactor     .13732E-05    9.8921        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .21436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .61062E-09    1.3368        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .30309E-07    3.5064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2047        2.5727        .44001E-03   -1.5662    
  12  Prefactor     .45670        12.283        .87062E-03   -1.5694    
  13  Prefactor     .38858E-09    3.1952        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .77716E-09    3.8478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.826        18.576        .26085E-03   -1.5631    
  16  Prefactor     32.104        26.330        .17659E-03   -1.5595    
  17  Prefactor     .65409E-06    18.422        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.6680        6.0792        .32201E-03   -1.5646    
  19  norm           .0000        5.3776        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .95501E-06    9.3997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .59841E-07    16.790        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.1900        .47179        .81432E-03   -1.5686    
  23  norm          36.880        12.912        .16443E-03   -1.5587    
  24  Prefactor     .33307E-09    1.6845        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8668        2.6070        .51298E-03   -1.5669    
  26  Prefactor     .72492E-06    14.924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.7810        1.1671        .78400E-03   -1.5681    
  28  Normalizat    1.0899        .15453        .38432E-01   -.90078    
  29  Prefactor     .89924        .17352        .65511E-01   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2004e-06
Minuit parameter uncertainties:
  1  6.34894
  2  4.10021
  3  0.00072044
  4  10.1681
  5  0.000720233
  6  3.39381
  7  0.00737137
  8  1.95082e-07
  9  5.67697e-05
  10  0.000651715
  11  2.57271
  12  4.73689
  13  6.89662e-05
  14  0.000108161
  15  18.5756
  16  26.3298
  17  0.00694258
  18  6.07918
  19  1.08507e-07
  20  0.00599233
  21  0.0020048
  22  0.471787
  23  12.9115
  24  4.868e-05
  25  2.60698
  26  0.00657835
  27  1.16713
  28  0.154595
  29  0.173628
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  7.772e-10  1.082e-04  0.000e+00  1.000e+06 ( 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:  8.992e-01  1.736e-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.090e+00  1.546e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 3.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430890/likelihoodResults_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.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) = 7495.99783268
delta logL = -0.000204403930184

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7495.99762838
delta logL = -1.00480974652e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24314E-07   1.0000          .0000       .10000E+07
     2 'Index     '    .91049       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89932       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.

 FCN=   7495.998     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      258 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-08    .67210E-01    .42118E-03** at limit **
   2  Index         2.5091        8.3600        .45139        .90670E-09
   3  Normalizat    1.0899        .53026E-03    .38431E-01    .21397E-03
   4  Prefactor     .89924        .61384E-03    .65511E-01    .21598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-09
  Index      = 2.50908
  Normalizat = 1.08987
  Prefactor  = 0.899243
 **********
 **   18 **HESSE 
 **********

 FCN=   7495.998     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      289 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-08    .26697        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5091        7.8820        .50000       -.52150    
   3  Normalizat    1.0899        .10562E-02    .23085E-03   -.90078    
   4  Prefactor     .89924        .12213E-02    .28976E-03   -.96168    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8221e-11
Minuit parameter uncertainties:
  1  3.71042e-05
  2  5625.86
  3  0.00105618
  4  0.00122132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430890': 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): 102
logL (Free Index) = 7495.99762828
delta logL = -1.04591890704e-10

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.277e-09  3.710e-05  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.509e+00  5.626e+03  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:  8.992e-01  1.221e-03  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.090e+00  1.056e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/430890/cmap_HighResolution_697852801_698112001_4FGL_J0937.1+5008_daily_bin1769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-03', job_status='DONE', photon_flux_upper_limit='3.50e-08', time_completed='2023-02-15 00:45:27.608021', job_id='430890', GAL2='0.90', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1676450727.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-1.05e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1769' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Feb 15 00:45:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 430890: <4FGL_J0937.1+5008_daily_bin1769> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1769> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Feb 15 00:30:21 2023
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Feb 15 00:30:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Feb 15 00:30:21 2023
Terminated at Wed Feb 15 00:45:28 2023
Results reported at Wed Feb 15 00:45:28 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1769 144.297 50.1437 697852801 698112001 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 :                                   772.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   906 sec.
    Turnaround time :                            907 sec.

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

