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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1715
RA = 144.297, Dec = 50.1437
tmin = 683856001, tmax = 684115201
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='83202', job_status='RUN', time_executed='2022-09-16 14:48:11.852988', time_epoch_executed='1663364891.85' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83202/ft1_4FGL_J0937.1+5008_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83202/ft1_4FGL_J0937.1+5008_daily_bin1715.fits outfile=/scratch/kocevski/83202/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1715.fits ra=144.297 dec=50.1437 rad=12.0 tmin=683856001.0 tmax=684115201.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 3.48
user 3.24
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.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/83202/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1715.fits evtable="EVENTS" outfile="/scratch/kocevski/83202/ft1_filtered_4FGL_J0937.1+5008_daily_bin1715.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 629

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83202/ft1_filtered_4FGL_J0937.1+5008_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/83202/ltcube_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.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/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits
.....................!
real 15.90
user 15.46
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83202/ft1_filtered_4FGL_J0937.1+5008_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/83202/ltcube_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.fits outfile=/scratch/kocevski/83202/expmap_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.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/83202/ltcube_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.fits
.....................!
real 194.12
user 186.30
sys 5.37

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/83202/ft1_filtered_4FGL_J0937.1+5008_daily_bin1715.fits scfile=/scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits outfile=/scratch/kocevski/83202/cmap_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83202/ft1_filtered_4FGL_J0937.1+5008_daily_bin1715.fits scfile=/scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits outfile=/scratch/kocevski/83202/cmap_HighResolution_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83202/ft1_filtered_4FGL_J0937.1+5008_daily_bin1715.fits', '/scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits', expMap='/scratch/kocevski/83202/expmap_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.fits', expCube='/scratch/kocevski/83202/ltcube_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83202/Model_4FGL_J0937.1+5008_daily_bin1715.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/83202/ft1_filtered_4FGL_J0937.1+5008_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/83202/ft2_4FGL_J0937.1+5008_daily_bin1715.fits
Exposure map: /scratch/kocevski/83202/expmap_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.fits
Exposure cube: /scratch/kocevski/83202/ltcube_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83202/Model_4FGL_J0937.1+5008_daily_bin1715.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) = 6922.11475074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14988E-08   1.0000          .0000       .10000E+07
     2 'norm      '    .28749E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .21118E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16226E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    39.756       1.0000          .0000       .10000E+07
     6 'Prefactor '    3.1087       1.0000          .0000       .10000E+07
     7 'Prefactor '    .54123E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .39374       1.0000          .0000       .10000E+07
     9 'Prefactor '    .27059E-04   1.0000          .0000       .10000E+07
    10 'norm      '    10.822       1.0000          .0000       .10000E+07
    11 'Prefactor '    .22204E-08   1.0000          .0000       .10000E+07
    12 'Prefactor '    12.560       1.0000          .0000       .10000E+07
    13 'Prefactor '    .84543E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .35061E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .56677E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11197E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .41085E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    1.5799       1.0000          .0000       .10000E+07
    19 'norm      '    .14876       1.0000          .0000       .10000E+07
    20 'Prefactor '    10.960       1.0000          .0000       .10000E+07
    21 'Prefactor '    .46319E-04   1.0000          .0000       .10000E+07
    22 'norm      '    1.3867       1.0000          .0000       .10000E+07
    23 'norm      '    .67274E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    6.6570       1.0000          .0000       .10000E+07
    25 'norm      '    5.3827       1.0000          .0000       .10000E+07
    26 'Prefactor '    .37561E-02   1.0000          .0000       .10000E+07
    27 'norm      '    3.1029       1.0000          .0000       .10000E+07
    28 'Normalizat'    .74788       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3022       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=   6920.241     FROM MIGRAD    STATUS=CONVERGED    174 CALLS     1566 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.8383       -.10899E-06** at limit **
   2  norm          .11102E-09    3.1774       -.30254E-08** at limit **
   3  norm          .49405E-08    5.5239       -.16511E-05** at limit **
   4  Prefactor     .11102E-09    3.4167       -.53723E-06** at limit **
   5  Prefactor     40.111        3.7841       -.15718E-07   -.19110E-01
   6  Prefactor     3.1075        2.9862        .97945E-07    .10812E-02
   7  Prefactor     .60008E-07    5.2649        .20722E-05** at limit **
   8  norm          .39395        .36064       -.70741E-07    .60247E-02
   9  Prefactor     .11102E-09    3.1402        .62364E-06** at limit **
  10  norm          10.889        1.3266       -.41535E-08   -.14973E-01
  11  Prefactor      .0000        .74481       -.17475E-06** at limit **
  12  Prefactor     12.561        1.3032        .21662E-06    .30339E-01
  13  Prefactor      .0000        .77146       -.12092E-06** at limit **
  14  Prefactor     .26767E-06    29.330        .31699E-05** at limit **
  15  norm           .0000        4.3123       -.10592E-05** at limit **
  16  Prefactor     .12823E-07    4.9609       -.80974E-06** at limit **
  17  Prefactor     .31208E-06    43.924       -.10175E-04** at limit **
  18  Prefactor     1.5975        5.0540        .98221E-07    .10391E-02
  19  norm          .15119        16.464        .71876E-05** at limit **
  20  Prefactor     11.779        5.7805       -.51934E-06    .22688E-02
  21  Prefactor     .35255E-06    8.3172        .13411E-05** at limit **
  22  norm          1.3874        .53681       -.47179E-07   -.28670E-02
  23  norm          .21300E-06    16.795       -.29064E-05** at limit **
  24  Prefactor     6.6343        5.8362       -.74802E-07    .17537E-02
  25  norm          5.3853        2.5745        .18871E-07   -.33038E-02
  26  Prefactor     .15210E-07    8.0524       -.59073E-06** at limit **
  27  norm          3.1032        1.4628        .48018E-08   -.54156E-02
  28  Normalizat    .74685        .18104       -.25689E-06    .18563E-03
  29  Prefactor     1.3025        .20932       -.40983E-05    .22088E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.11022e-10
  norm       = 4.94049e-09
  Prefactor  = 1.11022e-10
  Prefactor  = 40.111
  Prefactor  = 3.10752
  Prefactor  = 6.00076e-08
  norm       = 0.393952
  Prefactor  = 1.11022e-10
  norm       = 10.8887
  Prefactor  = 0
  Prefactor  = 12.5606
  Prefactor  = 0
  Prefactor  = 2.67675e-07
  norm       = 0
  Prefactor  = 1.28231e-08
  Prefactor  = 3.12084e-07
  Prefactor  = 1.59747
  norm       = 0.151194
  Prefactor  = 11.7786
  Prefactor  = 3.52551e-07
  norm       = 1.38737
  norm       = 2.12996e-07
  Prefactor  = 6.6343
  norm       = 5.3853
  Prefactor  = 1.52101e-08
  norm       = 3.10322
  Normalizat = 0.746852
  Prefactor  = 1.30247
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.241     FROM HESSE     STATUS=OK           613 CALLS     2179 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.8411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .11102E-09    3.1753        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .49405E-08    11.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    3.4320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.111        21.899        .15861E-03   -1.5581    
   6  Prefactor     3.1075        3.0173        .57486E-03   -1.5673    
   7  Prefactor     .60008E-07    12.179        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .39395        .38157        .90216E-03   -1.5695    
   9  Prefactor     .11102E-09    3.1187        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.889        8.6513        .30431E-03   -1.5642    
  11  Prefactor      .0000        .74167        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.561        9.2869        .28239E-03   -1.5637    
  13  Prefactor      .0000        .77215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .26767E-06    32.098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        4.3230        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12823E-07    11.168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .31208E-06    44.317        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.5975        5.1749        .84470E-03   -1.5683    
  19  norm          .15119        6.3165        .66455E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.779        27.788        .30237E-03   -1.5639    
  21  Prefactor     .35255E-06    13.669        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.3874        .53998        .82424E-03   -1.5684    
  23  norm          .21300E-06    18.523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     6.6343        5.9108        .38869E-03   -1.5656    
  25  norm          5.3853        2.5786        .43291E-03   -1.5662    
  26  Prefactor     .15210E-07    8.2098        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.1032        1.4621        .57543E-03   -1.5673    
  28  Normalizat    .74685        .16042        .42926E-01   -1.0207    
  29  Prefactor     1.3025        .18091        .56217E-01   -.83234    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78804e-08
Minuit parameter uncertainties:
  1  1.25221e-05
  2  4.06667e-05
  3  0.000475109
  4  3.44742e-05
  5  21.8994
  6  3.0173
  7  0.00171
  8  0.381566
  9  3.27282e-05
  10  8.6513
  11  6.3561e-06
  12  9.28692
  13  5.03164e-06
  14  0.00586249
  15  1.21318e-05
  16  0.000756339
  17  0.0074377
  18  5.17493
  19  1.95451
  20  27.7886
  21  0.00439067
  22  0.539977
  23  0.00397272
  24  5.91085
  25  2.5786
  26  0.000706165
  27  1.46214
  28  0.160517
  29  0.180994
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  2.677e-07  5.862e-03  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:  1.302e+00  1.810e-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:  7.469e-01  1.605e-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: 5.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83202/likelihoodResults_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6920.25873393
delta logL = -0.0181351997744

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6920.24059872
delta logL = 3.71073838323e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30531E-08   1.0000          .0000       .10000E+07
     2 'Index     '    1.7193       1.0000          .0000       10.000    
     3 'Normalizat'    .74685       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3025       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=   6920.241     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      232 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .38303E-08    1.2260        .42118E-03** at limit **
   2  Index         2.0318        8.9039        .50000       -.27285E-09
   3  Normalizat    .74685        .76334E-03    .42913E-01    .19557E-03
   4  Prefactor     1.3025        .90897E-03    .56217E-01    .11906E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83027e-09
  Index      = 2.03176
  Normalizat = 0.746853
  Prefactor  = 1.30247
 **********
 **   18 **HESSE 
 **********

 FCN=   6920.241     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      263 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     .38303E-08    6.5351        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0318        6.0110        .50000       -.63558    
   3  Normalizat    .74685        .17547E-02    .26907E-03   -1.0207    
   4  Prefactor     1.3025        .20896E-02    .24857E-03   -.83234    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75675e-11
Minuit parameter uncertainties:
  1  0.000316655
  2  11961.5
  3  0.00175468
  4  0.00208965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83202': 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) = 6920.24059872
delta logL = 4.06816980103e-09

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  3.830e-09  3.167e-04  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.032e+00  1.196e+04  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.302e+00  2.090e-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:  7.469e-01  1.755e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/83202/cmap_HighResolution_683856001_684115201_4FGL_J0937.1+5008_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.77e-08', time_completed='2022-09-16 15:00:38.704432', job_id='83202', GAL2='1.30', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1663365638.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='4.07e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1715' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 15:00:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 83202: <4FGL_J0937.1+5008_daily_bin1715> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1715> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 14:45:24 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 14:46:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 14:46:14 2022
Terminated at Fri Sep 16 15:00:39 2022
Results reported at Fri Sep 16 15:00:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1715 144.297 50.1437 683856001 684115201 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 :                                   746.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            915 sec.

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

