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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1749
RA = 144.297, Dec = 50.1437
tmin = 692668801, tmax = 692928001
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='947790', job_status='RUN', time_executed='2022-12-17 00:32:07.278211', time_epoch_executed='1671265927.28' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/947790

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/947790/ft1_4FGL_J0937.1+5008_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/947790/ft2_4FGL_J0937.1+5008_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/947790/ft1_4FGL_J0937.1+5008_daily_bin1749.fits outfile=/scratch/kocevski/947790/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1749.fits ra=144.297 dec=50.1437 rad=12.0 tmin=692668801.0 tmax=692928001.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.71
user 3.46
sys 0.22

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

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

Number of photons that the gtmktime cut: 623

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/947790/ft1_filtered_4FGL_J0937.1+5008_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/947790/ft2_4FGL_J0937.1+5008_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/947790/ltcube_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.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/947790/ft2_4FGL_J0937.1+5008_daily_bin1749.fits
.....................!
real 13.71
user 13.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/947790/ft1_filtered_4FGL_J0937.1+5008_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/947790/ft2_4FGL_J0937.1+5008_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/947790/ltcube_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.fits outfile=/scratch/kocevski/947790/expmap_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.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/947790/ltcube_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.fits
.....................!
real 191.66
user 187.24
sys 4.04

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/947790/ft1_filtered_4FGL_J0937.1+5008_daily_bin1749.fits scfile=/scratch/kocevski/947790/ft2_4FGL_J0937.1+5008_daily_bin1749.fits outfile=/scratch/kocevski/947790/cmap_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/947790/ft1_filtered_4FGL_J0937.1+5008_daily_bin1749.fits scfile=/scratch/kocevski/947790/ft2_4FGL_J0937.1+5008_daily_bin1749.fits outfile=/scratch/kocevski/947790/cmap_HighResolution_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6087       1.0000          .0000       .10000E+07
     2 'norm      '    .52499E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .56569E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    8.2414       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.287       1.0000          .0000       .10000E+07
     6 'Prefactor '    2.3579       1.0000          .0000       .10000E+07
     7 'Prefactor '    .16085E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .10603E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.1999       1.0000          .0000       .10000E+07
    10 'norm      '    .53110E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.0652       1.0000          .0000       .10000E+07
    12 'Prefactor '    .64991E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    4.5443       1.0000          .0000       .10000E+07
    14 'Prefactor '    16.534       1.0000          .0000       .10000E+07
    15 'norm      '    .80355E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .59861E-01   1.0000          .0000       .10000E+07
    17 'Prefactor '    .52146E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    51.401       1.0000          .0000       .10000E+07
    19 'norm      '    .10434E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .18931E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .80769E-07   1.0000          .0000       .10000E+07
    22 'norm      '    1.0573       1.0000          .0000       .10000E+07
    23 'norm      '    12.248       1.0000          .0000       .10000E+07
    24 'Prefactor '    .20147E-04   1.0000          .0000       .10000E+07
    25 'norm      '    4.1482       1.0000          .0000       .10000E+07
    26 'Prefactor '    .10317E-03   1.0000          .0000       .10000E+07
    27 'norm      '    2.7482       1.0000          .0000       .10000E+07
    28 'Normalizat'    .79554       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1497       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=   6816.578     FROM MIGRAD    STATUS=CONVERGED    170 CALLS     2677 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5243        5.7101        .99710E-08   -.82429E-03
   2  norm          .46629E-08    3.3098       -.26292E-07** at limit **
   3  norm          .16154E-07    1.3005        .15797E-07** at limit **
   4  Prefactor     8.2441        1.5011       -.48620E-08    .18696E-01
   5  Prefactor     10.266        1.0692        .20510E-08   -.10978E-02
   6  Prefactor     2.3418        3.2488        .56396E-07    .18286E-03
   7  Prefactor     .17092E-06    6.8834       -.41249E-07** at limit **
   8  norm           .0000        .47616        .50752E-07** at limit **
   9  Prefactor     4.2013        2.5709       -.96351E-09   -.17863E-02
  10  norm          .16653E-08    2.5369       -.45471E-08** at limit **
  11  Prefactor     1.0731        2.8391       -.12244E-06   -.21398E-02
  12  Prefactor     .94369E-09    7.7037       -.84341E-07** at limit **
  13  Prefactor     4.5560        4.1188        .23041E-07    .63522E-02
  14  Prefactor     16.646        3.6830       -.59620E-08    .13554E-01
  15  norm          .67502E-07    5.8145       -.47723E-07** at limit **
  16  Prefactor     .25036E-07    24.816       -.77384E-07** at limit **
  17  Prefactor     .10381E-07    2.2838        .32834E-07** at limit **
  18  Prefactor     51.371        2.7761        .78187E-08   -.17879    
  19  norm          .22204E-09    2.4836        .53044E-07** at limit **
  20  Prefactor     .13861E-06    9.8883       -.10840E-06** at limit **
  21  Prefactor     .93753E-06    3.8561       -.88301E-07** at limit **
  22  norm          1.0571        .48093       -.45442E-08   -.35065E-02
  23  norm          12.306        1.1206        .21186E-08   -.11013E-02
  24  Prefactor      .0000        1.8871       -.11403E-06** at limit **
  25  norm          4.1444        2.7415        .69144E-08    .17353E-03
  26  Prefactor     .14932E-07    28.909        .11764E-06** at limit **
  27  norm          2.7490        1.4476        .42355E-07    .61663E-02
  28  Normalizat    .79538        .18803       -.31909E-05   -.12324E-03
  29  Prefactor     1.1500        .21283        .22558E-05   -.51092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.52428
  norm       = 4.66294e-09
  norm       = 1.61537e-08
  Prefactor  = 8.24407
  Prefactor  = 10.2658
  Prefactor  = 2.34177
  Prefactor  = 1.70919e-07
  norm       = 0
  Prefactor  = 4.20127
  norm       = 1.66533e-09
  Prefactor  = 1.07311
  Prefactor  = 9.4369e-10
  Prefactor  = 4.55605
  Prefactor  = 16.6458
  norm       = 6.75016e-08
  Prefactor  = 2.50355e-08
  Prefactor  = 1.03806e-08
  Prefactor  = 51.3715
  norm       = 2.22045e-10
  Prefactor  = 1.38611e-07
  Prefactor  = 9.37528e-07
  norm       = 1.05713
  norm       = 12.3057
  Prefactor  = 0
  norm       = 4.14444
  Prefactor  = 1.49325e-08
  norm       = 2.74903
  Normalizat = 0.795384
  Prefactor  = 1.15004
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.578     FROM HESSE     STATUS=OK           615 CALLS     3292 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5243        5.7462        .42395E-03   -1.5661    
   2  norm          .46629E-08    3.4938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .16154E-07    3.0484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2441        10.007        .34898E-03   -1.5651    
   5  Prefactor     10.266        19.006        .31216E-03   -1.5644    
   6  Prefactor     2.3418        3.3660        .66717E-03   -1.5677    
   7  Prefactor     .17092E-06    15.148        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .30156        .14332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2013        2.9234        .49151E-03   -1.5667    
  10  norm          .16653E-08    3.1586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.0731        2.9767        .11818E-02   -1.5687    
  12  Prefactor     .94369E-09    7.7487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5560        4.3472        .47200E-03   -1.5665    
  14  Prefactor     16.646        18.486        .24604E-03   -1.5626    
  15  norm          .67502E-07    15.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .25036E-07    24.714        .15167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10381E-07    2.8911        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.371        11.308        .13949E-03   -1.5565    
  19  norm          .22204E-09    2.4910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .13861E-06    11.694        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .93753E-06    13.511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.0571        .48277        .84532E-03   -1.5687    
  23  norm          12.306        14.325        .28598E-03   -1.5638    
  24  Prefactor      .0000        1.8956        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1444        2.7613        .49465E-03   -1.5667    
  26  Prefactor     .14932E-07    29.001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.7490        1.4474        .61383E-03   -1.5675    
  28  Normalizat    .79538        .16714        .43552E-01   -1.0024    
  29  Prefactor     1.1500        .18434        .59845E-01   -.87883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08887e-07
Minuit parameter uncertainties:
  1  5.74622
  2  0.000255187
  3  0.000443544
  4  10.0069
  5  19.0057
  6  3.36602
  7  0.00321833
  8  2.91808e-06
  9  2.92337
  10  0.000145021
  11  2.97671
  12  0.000170408
  13  4.34725
  14  18.4859
  15  0.00202717
  16  0.00157295
  17  0.000346213
  18  11.3081
  19  4.50274e-05
  20  0.00254633
  21  0.00711811
  22  0.482774
  23  14.325
  24  1.22778e-05
  25  2.76125
  26  0.00131691
  27  1.44744
  28  0.167245
  29  0.184442
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.665e+01  1.849e+01  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.150e+00  1.844e-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.954e-01  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 144.297 50.144
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 2.96e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 9.76e-06 +/- 1.08e-05

TS (Fixed Index): 1.11
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/947790/likelihoodResults_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.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) = 6816.56728636
delta logL = 0.0103034476142

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6816.562676
delta logL = 0.0149138132383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.728       1.0000          .0000       .10000E+07
     2 'Index     '    2.2766       1.0000          .0000       10.000    
     3 'Normalizat'    .79774       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1479       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=   6816.563     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      246 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.729        23.437        .92465E-05   -.19156E-02
   2  Index         2.2765        .69901        .93561E-02   -.22254E-04
   3  Normalizat    .79774        .18156        .26799E-03   -.61428E-04
   4  Prefactor     1.1479        .21161        .26485E-03   -.60781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7287
  Index      = 2.27647
  Normalizat = 0.797745
  Prefactor  = 1.14792
 **********
 **   18 **HESSE 
 **********

 FCN=   6816.563     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.729        22.642        .36986E-06   -1.5621    
   2  Index         2.2765        .67545        .37424E-03   -.57604    
   3  Normalizat    .79774        .18169        .10719E-04   -1.0015    
   4  Prefactor     1.1479        .21175        .10594E-04   -.87949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.84953e-11
Minuit parameter uncertainties:
  1  22.6419
  2  0.678404
  3  0.18183
  4  0.211907
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/947790': 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) = 6816.56267597
delta logL = 0.0149138339511

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.873e+01  2.264e+01  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.276e+00  6.784e-01  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.148e+00  2.119e-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.977e-01  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 144.297 50.144
Photon Index (Free Index): 2.28 +/- 0.68
Photon Flux (Free Index): 2.77e-08 +/- 3.25e-08
Energy Flux (Free Index): 1.09e-05 +/- 1.36e-05

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/947790/cmap_HighResolution_692668801_692928001_4FGL_J0937.1+5008_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.84e-03', comment='SUCCESS', photon_flux='2.96e-08', energy_flux2='1.09e-05', photon_flux_error='3.29e-08', dlogl='1.49e-02', energy_flux='9.76e-06', photon_flux2='2.77e-08', job_status='DONE', time_completed='2022-12-17 00:46:28.019677', photon_index_error2='0.68', photon_index2='2.28', ts='1.11', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='1.36e-05', EG='0.80', time_epoch_completed='1671266788.02', return_code='0', job_id='947790', GAL2='1.15', EG2='0.80', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='3.25e-08', ts2='1.17', photon_index='2.40' WHERE bin_id='1749' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:46:28 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 947790: <4FGL_J0937.1+5008_daily_bin1749> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1749> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 17 00:30:16 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:30:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:30:18 2022
Terminated at Sat Dec 17 00:46:28 2022
Results reported at Sat Dec 17 00:46:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1749 144.297 50.1437 692668801 692928001 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 :                                   862.00 sec.
    Max Memory :                                 1212 MB
    Average Memory :                             331.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

