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


Performing analysis on: 4FGL_J0937.1+5008_weekly_bin760
RA = 144.297, Dec = 50.1437
tmin = 698630401, tmax = 699235201
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='17248', job_status='RUN', time_executed='2023-02-28 00:50:49.022307', time_epoch_executed='1677574249.02' WHERE source_name='4FGL J0937.1+5008' and cadence='weekly' and bin_id='760'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/17248

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/17248/ft1_4FGL_J0937.1+5008_weekly_bin760.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/17248/ft2_4FGL_J0937.1+5008_weekly_bin760.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/17248/ft1_4FGL_J0937.1+5008_weekly_bin760.fits outfile=/scratch/kocevski/17248/ft1_filteredMKT_4FGL_J0937.1+5008_weekly_bin760.fits ra=144.297 dec=50.1437 rad=12.0 tmin=698630401.0 tmax=699235201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.27
user 6.00
sys 0.24

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

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

Number of photons that the gtmktime cut: 149

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/17248/ft1_filtered_4FGL_J0937.1+5008_weekly_bin760.fits" evtable="EVENTS" scfile=/scratch/kocevski/17248/ft2_4FGL_J0937.1+5008_weekly_bin760.fits sctable="SC_DATA" outfile=/scratch/kocevski/17248/ltcube_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.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/17248/ft2_4FGL_J0937.1+5008_weekly_bin760.fits
.....................!
real 28.81
user 28.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/17248/ft1_filtered_4FGL_J0937.1+5008_weekly_bin760.fits evtable="EVENTS" scfile=/scratch/kocevski/17248/ft2_4FGL_J0937.1+5008_weekly_bin760.fits sctable="SC_DATA" expcube=/scratch/kocevski/17248/ltcube_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.fits outfile=/scratch/kocevski/17248/expmap_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.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/17248/ltcube_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.fits
.....................!
real 189.66
user 185.33
sys 4.00

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/17248/ft1_filtered_4FGL_J0937.1+5008_weekly_bin760.fits scfile=/scratch/kocevski/17248/ft2_4FGL_J0937.1+5008_weekly_bin760.fits outfile=/scratch/kocevski/17248/cmap_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/17248/ft1_filtered_4FGL_J0937.1+5008_weekly_bin760.fits scfile=/scratch/kocevski/17248/ft2_4FGL_J0937.1+5008_weekly_bin760.fits outfile=/scratch/kocevski/17248/cmap_HighResolution_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.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.58
user 0.42
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1639       1.0000          .0000       .10000E+07
     2 'norm      '    6.7659       1.0000          .0000       .10000E+07
     3 'norm      '    3.5421       1.0000          .0000       .10000E+07
     4 'Prefactor '    .98159E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    65.120       1.0000          .0000       .10000E+07
     6 'Prefactor '    .38110E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    78.379       1.0000          .0000       .10000E+07
     8 'norm      '    3.5843       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16754E-02   1.0000          .0000       .10000E+07
    10 'norm      '    .15880E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10101E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .45033E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.6014       1.0000          .0000       .10000E+07
    14 'Prefactor '    .18041E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .12927       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35843       1.0000          .0000       .10000E+07
    17 'Prefactor '    9.9576       1.0000          .0000       .10000E+07
    18 'Prefactor '    .24109E-01   1.0000          .0000       .10000E+07
    19 'norm      '    .13602E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    4.3754       1.0000          .0000       .10000E+07
    21 'Prefactor '    317.12       1.0000          .0000       .10000E+07
    22 'norm      '    .27786E-05   1.0000          .0000       .10000E+07
    23 'norm      '    .27606E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    .23049E-01   1.0000          .0000       .10000E+07
    25 'norm      '    .37120       1.0000          .0000       .10000E+07
    26 'Prefactor '    8.5480       1.0000          .0000       .10000E+07
    27 'norm      '    .76382E-02   1.0000          .0000       .10000E+07
    28 'Normalizat'    .78689       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .49603       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=   1743.297     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     2851 TOTAL
                     EDM=   .10E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2286        6.2985        .20508E-07    .53457E-04
   2  norm          6.8936        8.2813       -.41764E-07   -.14833E-03
   3  norm          3.6225        6.2945       -.28548E-07   -.13496E-03
   4  Prefactor      .0000        4.0392        .10653E-07** at limit **
   5  Prefactor     63.784        49.128        .18782E-06    .55159E-04
   6  Prefactor      .0000        3.4308       -.43120E-08** at limit **
   7  Prefactor     77.953        85.047        .41097E-06   -.28049E-04
   8  norm          3.6096        2.0090       -.52208E-07    .19242E-02
   9  Prefactor     .49960E-09    160.04        .27893E-05** at limit **
  10  norm           .0000        47.815       -.59390E-07** at limit **
  11  Prefactor      .0000        4.3804       -.28345E-08** at limit **
  12  Prefactor      .0000        10.767       -.64983E-07** at limit **
  13  Prefactor     5.9327        14.751       -.19157E-07    .76399E-04
  14  Prefactor      .0000        42.533        .19064E-06** at limit **
  15  norm          .55511E-10    231.87        .18863E-06** at limit **
  16  Prefactor     .15543E-08    685.95       -.43733E-07** at limit **
  17  Prefactor     8.1490        15.000       -.60246E-07   -.71613E-04
  18  Prefactor      .0000        27.963        .15281E-07** at limit **
  19  norm           .0000        12.902        .26012E-06** at limit **
  20  Prefactor      .0000        961.97       -.45296E-06** at limit **
  21  Prefactor     376.36        185.43        .39342E-06   -.80228E-04
  22  norm           .0000        .97099       -.15920E-07** at limit **
  23  norm           .0000        183.78       -.59855E-07** at limit **
  24  Prefactor     .16653E-09    122.21       -.61249E-06** at limit **
  25  norm          .11102E-09    253.36        .20977E-06** at limit **
  26  Prefactor     .22204E-08    1761.8        .77102E-05** at limit **
  27  norm           .0000        19.914       -.18462E-06** at limit **
  28  Normalizat    .76272        .34660       -.80259E-06   -.69574E-05
  29  Prefactor     .50626        .27472       -.15394E-05   -.17468E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22858
  norm       = 6.89362
  norm       = 3.62253
  Prefactor  = 0
  Prefactor  = 63.7842
  Prefactor  = 0
  Prefactor  = 77.9529
  norm       = 3.60959
  Prefactor  = 4.996e-10
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.9327
  Prefactor  = 0
  norm       = 5.55112e-11
  Prefactor  = 1.55431e-09
  Prefactor  = 8.149
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 376.355
  norm       = 0
  norm       = 0
  Prefactor  = 1.66533e-10
  norm       = 1.11022e-10
  Prefactor  = 2.22045e-09
  norm       = 0
  Normalizat = 0.76272
  Prefactor  = 0.506262
 **********
 **   18 **HESSE 
 **********

 FCN=   1743.297     FROM HESSE     STATUS=OK           603 CALLS     3454 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2286        6.2915        .49369E-03   -1.5667    
   2  norm          6.8936        8.3015        .38551E-03   -1.5655    
   3  norm          3.6225        6.3333        .53682E-03   -1.5670    
   4  Prefactor      .0000        4.0385        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     63.784        49.094        .12393E-03   -1.5548    
   6  Prefactor      .0000        3.4514        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     77.953        85.277        .11296E-03   -1.5531    
   8  norm          3.6096        2.0192        .53353E-03   -1.5670    
   9  Prefactor     .49960E-09    158.00        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        47.995        .17324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        4.3964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor      .0000        10.779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.9327        14.789        .39034E-03   -1.5659    
  14  Prefactor      .0000        42.576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .55511E-10    231.96        .13201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15543E-08    684.98        .94470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1490        15.090        .31730E-03   -1.5651    
  18  Prefactor      .0000        27.369        .16780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        12.857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        963.79        .48127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     376.36        183.97        .56164E-04   -1.5320    
  22  norm           .0000        .96647        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        183.92        .16580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .16653E-09    120.78        .16844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .11102E-09    253.59        .92903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .22204E-08    1763.6        .34262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        19.983        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .76272        .30045        .43439E-01   -1.0147    
  29  Prefactor     .50626        .23957        .57202E-01   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.31517e-09
Minuit parameter uncertainties:
  1  6.29151
  2  8.30151
  3  6.33329
  4  1.42729e-06
  5  49.0942
  6  1.04303e-06
  7  85.2779
  8  2.01921
  9  0.000557361
  10  9.43934e-07
  11  4.97061e-07
  12  4.46261e-06
  13  14.7887
  14  1.98568e-05
  15  0.00019355
  16  0.00205778
  17  15.0902
  18  1.88755e-05
  19  2.8221e-05
  20  0.000146717
  21  183.972
  22  1.80509e-06
  23  4.31137e-05
  24  0.000283398
  25  0.00036469
  26  0.00396712
  27  8.42171e-06
  28  0.301101
  29  0.240044
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  0.000e+00  1.986e-05  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:  5.063e-01  2.400e-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.627e-01  3.011e-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.82e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/17248/likelihoodResults_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.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) = 1743.30857229
delta logL = -0.0112065721257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1743.2973658
delta logL = -8.2937276602e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10429E-05   1.0000          .0000       .10000E+07
     2 'Index     '    .51074       1.0000          .0000       10.000    
     3 'Normalizat'    .76272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50626       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=   1743.297     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      238 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49960E-09    1.7049        .42118E-03** at limit **
   2  Index         2.3675        8.2849        .39822        .85645E-11
   3  Normalizat    .76272        .14120E-02    .43122E-01   -.56619E-04
   4  Prefactor     .50626        .12106E-02    .57203E-01   -.48762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.996e-10
  Index      = 2.3675
  Normalizat = 0.762719
  Prefactor  = 0.506263
 **********
 **   18 **HESSE 
 **********

 FCN=   1743.297     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      269 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49960E-09    5.4321        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3675        5.2745        .50000       -.55448    
   3  Normalizat    .76272        .25185E-02    .24539E-03   -1.0147    
   4  Prefactor     .50626        .21570E-02    .25304E-03   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.77234e-12
Minuit parameter uncertainties:
  1  0.000104988
  2  80848.8
  3  0.00251846
  4  0.00215703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/17248': 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) = 1743.29736572
delta logL = -1.1823431123e-11

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.996e-10  1.050e-04  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.367e+00  8.085e+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:  5.063e-01  2.157e-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.627e-01  2.518e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/17248/cmap_HighResolution_698630401_699235201_4FGL_J0937.1+5008_weekly_bin760.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-02', job_status='DONE', photon_flux_upper_limit='3.82e-07', time_completed='2023-02-28 00:59:22.301810', job_id='17248', GAL2='0.51', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1677574762.3', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='-1.18e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='760' AND source_name='4FGL J0937.1+5008' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Feb 28 00:59:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 17248: <4FGL_J0937.1+5008_weekly_bin760> in cluster <slac> Done

Job <4FGL_J0937.1+5008_weekly_bin760> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 28 00:50:25 2023
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 28 00:50:26 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 28 00:50:26 2023
Terminated at Tue Feb 28 00:59:23 2023
Results reported at Tue Feb 28 00:59:23 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_weekly_bin760 144.297 50.1437 698630401 699235201 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 :                                   514.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   536 sec.
    Turnaround time :                            538 sec.

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

