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 40 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0937.1+5008_monthly_bin168
RA = 144.297, Dec = 50.1437
tmin = 672451201, tmax = 675043201
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='628293', job_status='RUN', time_executed='2022-05-24 02:50:11.955534', time_epoch_executed='1653385811.96' WHERE source_name='4FGL J0937.1+5008' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628293

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628293/ft1_4FGL_J0937.1+5008_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628293/ft2_4FGL_J0937.1+5008_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628293/ft1_4FGL_J0937.1+5008_monthly_bin168.fits outfile=/scratch/kocevski/628293/ft1_filteredMKT_4FGL_J0937.1+5008_monthly_bin168.fits ra=144.297 dec=50.1437 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.71
user 27.89
sys 0.71

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

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

Number of photons that the gtmktime cut: 8345

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628293/ft1_filtered_4FGL_J0937.1+5008_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/628293/ft2_4FGL_J0937.1+5008_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/628293/ltcube_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.fits outfile=/scratch/kocevski/628293/expmap_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.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/628293/ltcube_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.fits
.....................!
real 192.84
user 186.86
sys 5.46

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/628293/ft1_filtered_4FGL_J0937.1+5008_monthly_bin168.fits scfile=/scratch/kocevski/628293/ft2_4FGL_J0937.1+5008_monthly_bin168.fits outfile=/scratch/kocevski/628293/cmap_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.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.79
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628293/ft1_filtered_4FGL_J0937.1+5008_monthly_bin168.fits scfile=/scratch/kocevski/628293/ft2_4FGL_J0937.1+5008_monthly_bin168.fits outfile=/scratch/kocevski/628293/cmap_HighResolution_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.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.81
user 0.65
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628293/ft1_filtered_4FGL_J0937.1+5008_monthly_bin168.fits', '/scratch/kocevski/628293/ft2_4FGL_J0937.1+5008_monthly_bin168.fits', expMap='/scratch/kocevski/628293/expmap_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.fits', expCube='/scratch/kocevski/628293/ltcube_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628293/Model_4FGL_J0937.1+5008_monthly_bin168.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  1.000e-04  1.000e+04 ( 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/628293/ft1_filtered_4FGL_J0937.1+5008_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/628293/ft2_4FGL_J0937.1+5008_monthly_bin168.fits
Exposure map: /scratch/kocevski/628293/expmap_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.fits
Exposure cube: /scratch/kocevski/628293/ltcube_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628293/Model_4FGL_J0937.1+5008_monthly_bin168.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) = 90822.2983416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .93181       1.0000         .10000E-03   10000.    
     2 'norm      '    3.4681       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1668       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14733E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1249       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3181       1.0000         .10000E-03   10000.    
    10 'norm      '    .11997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .76109       1.0000         .10000E-03   10000.    
    12 'norm      '    2.8764       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .22879       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0751       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8948       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10798E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45652       1.0000         .10000E-03   10000.    
    18 'norm      '    .10400E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0615       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11544E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7724       1.0000         .10000E-03   10000.    
    22 'norm      '    .97187       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.5574       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0615       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5087       1.0000         .10000E-03   10000.    
    26 'norm      '    4.4133       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .90724E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.8756       1.0000         .10000E-03   10000.    
    29 'norm      '    5.7829       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    3.5946       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .20598E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.0422       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.0503       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=   90822.21     FROM MIGRAD    STATUS=CONVERGED    122 CALLS     3428 TOTAL
                     EDM=   .64E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .93176        .84469       -.31330E-07   -.79400E-05
   2  norm          3.4719        1.2898        .24218E-08    .36134E-04
   3  norm          3.1640        1.4524        .31564E-07    .42868E-05
   4  Prefactor     2.9791        2.2262        .84655E-06    .22142E-03
   5  Prefactor     1.0584        .57688        .50940E-07   -.42442E-04
   6  Prefactor     .10000E-03    11.577        .95439E-06** at limit **
   7  Prefactor     .83432E-01    101.46       -.62837E-05    .30085E-05
   8  Prefactor     1.1250        .67066        .52314E-07    .15697E-04
   9  Prefactor     3.3137        1.5544        .11922E-06   -.13064E-02
  10  norm          .11992        .98389E-01   -.28273E-07    .26614E-03
  11  Prefactor     .76100        .80623        .15250E-07    .49221E-04
  12  norm          2.8699        1.8969       -.12057E-06    .26028E-03
  13  Prefactor     .22910        .41381        .36047E-07   -.25025E-04
  14  Prefactor     7.0667        2.1681        .63779E-07   -.24073E-04
  15  Prefactor     2.8961        .89618        .59650E-07   -.21871E-04
  16  Prefactor     .10000E-03    1.4277       -.61015E-06** at limit **
  17  Prefactor     .45699        .84914        .37505E-07    .38864E-04
  18  norm          .10000E-03    .66521       -.25664E-07** at limit **
  19  Prefactor     2.0534        1.8454       -.63214E-07    .72195E-03
  20  Prefactor     .10000E-03    1.4066        .60461E-06** at limit **
  21  Prefactor     2.7748        1.5490       -.22185E-06    .62320E-04
  22  norm          .97184        .94858        .25055E-07    .70729E-05
  23  Prefactor     5.5655        1.1241       -.48343E-07    .26704E-03
  24  Prefactor     8.0667        1.0598       -.14971E-07   -.21886E-03
  25  norm          1.5087        .14544        .77001E-08   -.23821E-04
  26  norm          4.4160        2.4931        .10927E-05    .55763E-03
  27  Prefactor     .84942E-01    2.8396        .37231E-06    .40337E-04
  28  Prefactor     7.8842        5.0315       -.39362E-06    .86564E-03
  29  norm          5.7829        .75174       -.11939E-07   -.13215E-04
  30  Prefactor     .10000E-03    4.2207       -.42038E-06** at limit **
  31  norm          3.5945        .46574       -.25569E-08    .55971E-04
  32  Prefactor     .10000E-03    13.485        .78550E-06** at limit **
  33  Normalizat    1.0422        .52742E-01   -.17415E-06   -.15397E-04
  34  Prefactor     1.0503        .58676E-01   -.94487E-07   -.77349E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.931756
  norm       = 3.47194
  norm       = 3.16402
  Prefactor  = 2.9791
  Prefactor  = 1.05842
  Prefactor  = 0.0001
  Prefactor  = 0.0834319
  Prefactor  = 1.12496
  Prefactor  = 3.31372
  norm       = 0.119924
  Prefactor  = 0.761002
  norm       = 2.86989
  Prefactor  = 0.229105
  Prefactor  = 7.06669
  Prefactor  = 2.89606
  Prefactor  = 0.0001
  Prefactor  = 0.456991
  norm       = 0.0001
  Prefactor  = 2.05337
  Prefactor  = 0.0001
  Prefactor  = 2.77484
  norm       = 0.97184
  Prefactor  = 5.56552
  Prefactor  = 8.06673
  norm       = 1.50874
  norm       = 4.416
  Prefactor  = 0.0849418
  Prefactor  = 7.88424
  norm       = 5.78295
  Prefactor  = 0.0001
  norm       = 3.59453
  Prefactor  = 0.0001
  Normalizat = 1.04222
  Prefactor  = 1.05032
 **********
 **   18 **HESSE 
 **********

 FCN=   90822.21     FROM HESSE     STATUS=OK           850 CALLS     4278 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .93176        .84616        .12922E-01   -1.5515    
   2  norm          3.4719        1.2991        .54287E-02   -1.5335    
   3  norm          3.1640        1.4763        .56937E-02   -1.5352    
   4  Prefactor     2.9791        2.2355        .58801E-02   -1.5363    
   5  Prefactor     1.0584        .59843        .11934E-01   -1.5502    
   6  Prefactor     .10000E-03    1.0080        .10897       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83432E-01    2.6037        .17821       -1.5650    
   8  Prefactor     1.1250        .69982        .11045E-01   -1.5496    
   9  Prefactor     3.3137        4.3784        .55557E-02   -1.5344    
  10  norm          .11992        .14847        .16137E-01   -1.5639    
  11  Prefactor     .76100        1.1365        .12294E-01   -1.5534    
  12  norm          2.8699        2.0111        .59914E-02   -1.5369    
  13  Prefactor     .22910        .43469        .10108E-01   -1.5612    
  14  Prefactor     7.0667        2.1814        .37704E-02   -1.5176    
  15  Prefactor     2.8961        .90504        .59710E-02   -1.5368    
  16  Prefactor     .10000E-03    1.4149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .45699        .88028        .91094E-01   -1.5573    
  18  norm          .10000E-03    .66387        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0534        5.2468        .71951E-02   -1.5421    
  20  Prefactor     .10000E-03    .31305        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7748        1.5828        .61104E-02   -1.5375    
  22  norm          .97184        1.1823        .66864E-01   -1.5511    
  23  Prefactor     5.5655        7.6316        .42606E-02   -1.5236    
  24  Prefactor     8.0667        8.0400        .35303E-02   -1.5140    
  25  norm          1.5087        .14618        .77750E-02   -1.5462    
  26  norm          4.4160        2.5158        .47925E-02   -1.5288    
  27  Prefactor     .84942E-01    .25974        .69710E-01   -1.5650    
  28  Prefactor     7.8842        5.4968        .35720E-02   -1.5146    
  29  norm          5.7829        .75292        .41754E-02   -1.5227    
  30  Prefactor     .10000E-03    4.1379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          3.5945        .46567        .53282E-02   -1.5329    
  32  Prefactor     .10000E-03    13.413        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.0422        .47735E-01    .41112E-01   -.91629    
  34  Prefactor     1.0503        .50581E-01    .62043E-01   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79006e-07
Minuit parameter uncertainties:
  1  0.846169
  2  1.29909
  3  1.47634
  4  2.23556
  5  0.598431
  6  1.87249e-06
  7  0.931643
  8  0.699822
  9  4.37886
  10  0.148466
  11  1.13657
  12  2.01112
  13  0.434698
  14  2.18144
  15  0.905048
  16  9.53992e-07
  17  0.880307
  18  5.02735e-07
  19  5.24796
  20  5.14059e-08
  21  1.58278
  22  1.18228
  23  7.63292
  24  8.04103
  25  0.146182
  26  2.5159
  27  0.259739
  28  5.49718
  29  0.75292
  30  4.44954e-06
  31  0.465675
  32  5.74306e-05
  33  0.0477365
  34  0.0505832
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  9.540e-07  1.000e-04  1.000e+04 ( 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.050e+00  5.058e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.042e+00  4.774e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 9.82e-09 ph cm-2 s-1
Energy Flux Upper Limit: 7.58e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628293/likelihoodResults_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 90822.2111866
delta logL = -0.00332961908134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 90822.207857
delta logL = 8.39645508677e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4084       1.0000          .0000       10.000    
     3 'Normalizat'    1.0422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0503       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   90822.21     FROM MIGRAD    STATUS=FAILED        89 CALLS      243 TOTAL
                     EDM=   .33E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    233.44        .18142E-02** at limit **
   2  Index         2.4203        5.3693        .50000       -.70850E-04
   3  Normalizat    1.0422        .18674E-01    .23689E-03    .31099E-03
   4  Prefactor     1.0503        .21779E-01    .27440E-03    .20351E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   90822.21     FROM SIMPLEX   STATUS=UNCHANGED    164 CALLS      407 TOTAL
                     EDM=   .85E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    233.44        .19132E-03** at limit **
   2  Index         2.4203        5.3693        .10373E-04   -.70850E-04
   3  Normalizat    1.0422        .18674E-01    .84648E-07    .31099E-03
   4  Prefactor     1.0503        .21779E-01    .40487E-07    .20351E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   90822.21     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      441 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    1.8399        .36285E-03** at limit **
   2  Index         2.4209        6.1984        .50000       -.70827E-04
   3  Normalizat    1.0422        .49351E-01    .94755E-05    .24572E-03
   4  Prefactor     1.0503        .57599E-01    .10976E-04    .15247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 2.42092
  Normalizat = 1.04222
  Prefactor  = 1.05032
 **********
 **   18 **HESSE 
 **********

 FCN=   90822.21     FROM HESSE     STATUS=OK            29 CALLS      470 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1.4621        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4209        6.2097        .50000       -.54196    
   3  Normalizat    1.0422        .49283E-01    .18951E-05   -.91629    
   4  Prefactor     1.0503        .57512E-01    .21952E-05   -.91070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.12281e-09
Minuit parameter uncertainties:
  1  0.000205464
  2  4.30337
  3  0.0492852
  4  0.0575158
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628293': 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) = 90822.2078566
delta logL = 3.96859832108e-07

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  1.000e-04  2.055e-04  1.000e-04  1.000e+04 ( 1.000e-13)
358        Index:  2.421e+00  4.303e+00  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.050e+00  5.752e-02  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  1.042e+00  4.929e-02  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.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/628293/cmap_HighResolution_672451201_675043201_4FGL_J0937.1+5008_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.58e-04', job_status='DONE', photon_flux_upper_limit='9.82e-09', time_completed='2022-05-24 05:58:32.275541', job_id='628293', GAL2='1.05', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1653397112.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.97e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='168' AND source_name='4FGL J0937.1+5008' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 05:58:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 628293: <4FGL_J0937.1+5008_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0937.1+5008_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 02:45:39 2022
Job was executed on host(s) <bullet0171>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:49:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:49:23 2022
Terminated at Tue May 24 06:06:19 2022
Results reported at Tue May 24 06:06:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_monthly_bin168 144.297 50.1437 672451201 675043201 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 :                                   10910.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             444.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11736 sec.
    Turnaround time :                            12040 sec.

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

