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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1760
RA = 144.297, Dec = 50.1437
tmin = 695520001, tmax = 695779201
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='733516', job_status='RUN', time_executed='2023-01-19 00:43:35.337361', time_epoch_executed='1674117815.34' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733516

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733516/ft1_4FGL_J0937.1+5008_daily_bin1760.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733516/ft2_4FGL_J0937.1+5008_daily_bin1760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733516/ft1_4FGL_J0937.1+5008_daily_bin1760.fits outfile=/scratch/kocevski/733516/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1760.fits ra=144.297 dec=50.1437 rad=12.0 tmin=695520001.0 tmax=695779201.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 2.01
user 1.81
sys 0.17

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

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

Number of photons that the gtmktime cut: 149

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733516/ft1_filtered_4FGL_J0937.1+5008_daily_bin1760.fits evtable="EVENTS" scfile=/scratch/kocevski/733516/ft2_4FGL_J0937.1+5008_daily_bin1760.fits sctable="SC_DATA" expcube=/scratch/kocevski/733516/ltcube_695520001_695779201_4FGL_J0937.1+5008_daily_bin1760.fits outfile=/scratch/kocevski/733516/expmap_695520001_695779201_4FGL_J0937.1+5008_daily_bin1760.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/733516/ltcube_695520001_695779201_4FGL_J0937.1+5008_daily_bin1760.fits
.....................!
real 158.73
user 153.77
sys 4.58

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/733516/ft1_filtered_4FGL_J0937.1+5008_daily_bin1760.fits scfile=/scratch/kocevski/733516/ft2_4FGL_J0937.1+5008_daily_bin1760.fits outfile=/scratch/kocevski/733516/cmap_695520001_695779201_4FGL_J0937.1+5008_daily_bin1760.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.49
user 0.31
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733516/ft1_filtered_4FGL_J0937.1+5008_daily_bin1760.fits scfile=/scratch/kocevski/733516/ft2_4FGL_J0937.1+5008_daily_bin1760.fits outfile=/scratch/kocevski/733516/cmap_HighResolution_695520001_695779201_4FGL_J0937.1+5008_daily_bin1760.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.46
user 0.31
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11513E-03   1.0000          .0000       .10000E+07
     2 'norm      '    41.938       1.0000          .0000       .10000E+07
     3 'norm      '    8.4774       1.0000          .0000       .10000E+07
     4 'Prefactor '    .29997E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .35719E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    20.563       1.0000          .0000       .10000E+07
     7 'Prefactor '    .39968E-08   1.0000          .0000       .10000E+07
     8 'norm      '    .50904E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    .37629E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .19027E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .21271E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    27.180       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.659       1.0000          .0000       .10000E+07
    14 'Prefactor '    52.743       1.0000          .0000       .10000E+07
    15 'norm      '    .40447E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18305E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .78849E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    47.749       1.0000          .0000       .10000E+07
    19 'norm      '    .33564E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19805E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    82.649       1.0000          .0000       .10000E+07
    22 'norm      '    1.7357       1.0000          .0000       .10000E+07
    23 'norm      '    .43573E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    .24038E-03   1.0000          .0000       .10000E+07
    25 'norm      '    9.8610       1.0000          .0000       .10000E+07
    26 'Prefactor '    79.182       1.0000          .0000       .10000E+07
    27 'norm      '    .58842E-08   1.0000          .0000       .10000E+07
    28 'Normalizat'    .97950       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77820       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=   1751.456     FROM MIGRAD    STATUS=CONVERGED    207 CALLS     2649 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    10.968       -.18095E-06** at limit **
   2  norm          44.190        45.772       -.29981E-06   -.49573E-01
   3  norm          7.0245        27.223        .97744E-06    .27685E-01
   4  Prefactor     .61062E-09    20.512       -.13865E-05** at limit **
   5  Prefactor     .65725E-07    34.285       -.19862E-06** at limit **
   6  Prefactor     20.997        8.4457        .13982E-06   -.69845E-02
   7  Prefactor     .37390E-05    79.818       -.65104E-07** at limit **
   8  norm           .0000        .77701       -.41010E-07** at limit **
   9  Prefactor     .55511E-10    10.072       -.16398E-06** at limit **
  10  norm          .61062E-09    24.888        .14219E-05** at limit **
  11  Prefactor      .0000        17.745        .84401E-07** at limit **
  12  Prefactor     27.191        6.3860       -.17235E-07    .15595E-01
  13  Prefactor     10.778        15.372       -.38143E-06    .53951E-02
  14  Prefactor     52.817        18.350        .15648E-06    .19841E-01
  15  norm          .18524E-02    61.535       -.52078E-06** at limit **
  16  Prefactor     .13519E-04    14.849        .11043E-06** at limit **
  17  Prefactor     .11102E-09    6.1682        .70418E-06** at limit **
  18  Prefactor     48.868        32.503        .12115E-06   -.51708E-01
  19  norm          .83267E-09    9.9134       -.54064E-06** at limit **
  20  Prefactor     .46207E-06    1.9166       -.43544E-07** at limit **
  21  Prefactor     89.520        27.344       -.10310E-06    .17893E-01
  22  norm          1.6885        1.0672       -.79548E-07    .40935E-02
  23  norm          .33307E-09    19.781        .29386E-06** at limit **
  24  Prefactor     .11102E-09    10.521       -.51792E-06** at limit **
  25  norm          9.9765        6.5931       -.18839E-06    .15285E-02
  26  Prefactor     97.528        75.184       -.26762E-06    .47466E-01
  27  norm           .0000        1.1669        .49186E-07** at limit **
  28  Normalizat    .93778        .44871       -.20712E-05   -.29066E-04
  29  Prefactor     .79685        .45283        .13754E-04   -.41808E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 44.1902
  norm       = 7.02455
  Prefactor  = 6.10623e-10
  Prefactor  = 6.57252e-08
  Prefactor  = 20.9966
  Prefactor  = 3.73895e-06
  norm       = 0
  Prefactor  = 5.55112e-11
  norm       = 6.10623e-10
  Prefactor  = 0
  Prefactor  = 27.1911
  Prefactor  = 10.7778
  Prefactor  = 52.8167
  norm       = 0.00185239
  Prefactor  = 1.35186e-05
  Prefactor  = 1.11022e-10
  Prefactor  = 48.8681
  norm       = 8.32667e-10
  Prefactor  = 4.62075e-07
  Prefactor  = 89.5201
  norm       = 1.68848
  norm       = 3.33067e-10
  Prefactor  = 1.11022e-10
  norm       = 9.97648
  Prefactor  = 97.5279
  norm       = 0
  Normalizat = 0.937777
  Prefactor  = 0.79685
 **********
 **   18 **HESSE 
 **********

 FCN=   1751.456     FROM HESSE     STATUS=OK           607 CALLS     3256 TOTAL
                     EDM=   .47E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    10.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          44.190        50.275        .15443E-03   -1.5575    
   3  norm          7.0245        31.393        .34406E-03   -1.5655    
   4  Prefactor     .61062E-09    20.500        .16451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .65725E-07    34.371        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.997        29.382        .22059E-03   -1.5616    
   7  Prefactor     .37390E-05    80.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .77767        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .55511E-10    10.105        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .61062E-09    24.934        .17102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        12.125        .56775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.191        27.721        .19185E-03   -1.5604    
  13  Prefactor     10.778        15.896        .30664E-03   -1.5642    
  14  Prefactor     52.817        53.110        .13770E-03   -1.5563    
  15  norm          .18524E-02    461.63        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .13519E-04    354.41        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .11102E-09    6.1592        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.868        33.540        .14473E-03   -1.5568    
  19  norm          .83267E-09    9.9237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .46207E-06    172.40        .17050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     89.520        90.916        .11000E-03   -1.5519    
  22  norm          1.6885        1.0703        .79625E-04   -1.5682    
  23  norm          .33307E-09    19.782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11102E-09    10.532        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.9765        6.5927        .31886E-03   -1.5645    
  26  Prefactor     97.528        84.694        .11239E-03   -1.5510    
  27  norm           .0000        1.1653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .93778        .39161        .45910E-01   -.95145    
  29  Prefactor     .79685        .39445        .76723E-01   -.99845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69005e-06
Minuit parameter uncertainties:
  1  3.61696e-05
  2  50.2759
  3  29.7002
  4  0.000224352
  5  0.00300563
  6  29.3818
  7  0.0347442
  8  1.18576e-06
  9  5.54946e-05
  10  0.000251777
  11  9.76517e-06
  12  27.721
  13  15.8957
  14  53.1101
  15  1.84959
  16  0.138444
  17  5.41704e-05
  18  33.5399
  19  0.000182191
  20  0.017851
  21  90.9173
  22  1.07033
  23  0.000161925
  24  6.74254e-05
  25  6.59272
  26  84.6948
  27  1.68707e-06
  28  0.392811
  29  0.395861
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  5.282e+01  5.311e+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:  7.968e-01  3.959e-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:  9.378e-01  3.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 144.297 50.144
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 9.41e-08 +/- 9.45e-08
Energy Flux (Fixed Index): 3.10e-05 +/- 3.11e-05

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

Saving results to:
/scratch/kocevski/733516/likelihoodResults_695520001_695779201_4FGL_J0937.1+5008_daily_bin1760.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) = 1750.23063527
delta logL = 1.22502132666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1750.11050142
delta logL = 1.34515517287

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.827       1.0000          .0000       .10000E+07
     2 'Index     '    1.1191       1.0000          .0000       10.000    
     3 'Normalizat'    .99341       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76447       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=   1750.111     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      215 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.827        31.190        .18960E-03   -.10498E-01
   2  Index         1.1190        .46797        .12797       -.18514E-04
   3  Normalizat    .99325        .35534        .46084E-01    .40321E-05
   4  Prefactor     .76459        .39043        .78206E-01    .58699E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8269
  Index      = 1.11901
  Normalizat = 0.993252
  Prefactor  = 0.76459
 **********
 **   18 **HESSE 
 **********

 FCN=   1750.111     FROM HESSE     STATUS=OK            31 CALLS      246 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.827        40.895        .75841E-05   -1.5602    
   2  Index         1.1190        .62907        .55128E-02   -.88861    
   3  Normalizat    .99325        .40268        .28100E-03   -.93257    
   4  Prefactor     .76459        .44153        .34622E-03   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.5714e-09
Minuit parameter uncertainties:
  1  40.8951
  2  0.63332
  3  0.403916
  4  0.443582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733516': 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) = 1750.11050133
delta logL = 1.34515526621

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  2.783e+01  4.090e+01  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  1.119e+00  6.333e-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:  7.646e-01  4.436e-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:  9.933e-01  4.039e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.30
Ra Dec: 144.297 50.144
Photon Index (Free Index): 1.12 +/- 0.63
Photon Flux (Free Index): 1.72e-08 +/- 2.06e-08
Energy Flux (Free Index): 1.82e-04 +/- 2.78e-04

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/733516/cmap_HighResolution_695520001_695779201_4FGL_J0937.1+5008_daily_bin1760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.75e-02', comment='SUCCESS', photon_flux='9.41e-08', energy_flux2='1.82e-04', photon_flux_error='9.45e-08', dlogl='1.35e+00', energy_flux='3.10e-05', photon_flux2='1.72e-08', job_status='DONE', time_completed='2023-01-19 00:49:55.648451', photon_index_error2='0.63', photon_index2='1.12', ts='3.59', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='3.56e-07', energy_flux_error2='2.78e-04', EG='0.94', time_epoch_completed='1674118195.65', return_code='0', job_id='733516', GAL2='0.76', EG2='0.99', return_code2='0', energy_flux_error='3.11e-05', photon_flux_error2='2.06e-08', ts2='6.30', photon_index='2.40' WHERE bin_id='1760' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jan 19 00:49:55 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 733516: <4FGL_J0937.1+5008_daily_bin1760> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1760> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Jan 19 00:40:22 2023
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jan 19 00:41:52 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jan 19 00:41:52 2023
Terminated at Thu Jan 19 00:49:56 2023
Results reported at Thu Jan 19 00:49:56 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1760 144.297 50.1437 695520001 695779201 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 :                                   381.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   483 sec.
    Turnaround time :                            574 sec.

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

