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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1766
RA = 144.297, Dec = 50.1437
tmin = 697075201, tmax = 697334401
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='846341', job_status='RUN', time_executed='2023-02-06 00:41:49.617459', time_epoch_executed='1675672909.62' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1766'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/846341

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/846341/ft1_4FGL_J0937.1+5008_daily_bin1766.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/846341/ft2_4FGL_J0937.1+5008_daily_bin1766.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/846341/ft1_4FGL_J0937.1+5008_daily_bin1766.fits outfile=/scratch/kocevski/846341/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1766.fits ra=144.297 dec=50.1437 rad=12.0 tmin=697075201.0 tmax=697334401.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.73
user 3.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/846341/ft2_4FGL_J0937.1+5008_daily_bin1766.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/846341/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1766.fits evtable="EVENTS" outfile="/scratch/kocevski/846341/ft1_filtered_4FGL_J0937.1+5008_daily_bin1766.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 618

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/846341/ft1_filtered_4FGL_J0937.1+5008_daily_bin1766.fits evtable="EVENTS" scfile=/scratch/kocevski/846341/ft2_4FGL_J0937.1+5008_daily_bin1766.fits sctable="SC_DATA" expcube=/scratch/kocevski/846341/ltcube_697075201_697334401_4FGL_J0937.1+5008_daily_bin1766.fits outfile=/scratch/kocevski/846341/expmap_697075201_697334401_4FGL_J0937.1+5008_daily_bin1766.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/846341/ltcube_697075201_697334401_4FGL_J0937.1+5008_daily_bin1766.fits
.....................!
real 194.51
user 187.87
sys 5.82

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/846341/ft1_filtered_4FGL_J0937.1+5008_daily_bin1766.fits scfile=/scratch/kocevski/846341/ft2_4FGL_J0937.1+5008_daily_bin1766.fits outfile=/scratch/kocevski/846341/cmap_697075201_697334401_4FGL_J0937.1+5008_daily_bin1766.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/846341/ft1_filtered_4FGL_J0937.1+5008_daily_bin1766.fits scfile=/scratch/kocevski/846341/ft2_4FGL_J0937.1+5008_daily_bin1766.fits outfile=/scratch/kocevski/846341/cmap_HighResolution_697075201_697334401_4FGL_J0937.1+5008_daily_bin1766.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=144.297 yref=50.1437 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29579E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .12446E-06   1.0000          .0000       .10000E+07
     3 'norm      '    .12737E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    16.440       1.0000          .0000       .10000E+07
     5 'Prefactor '    .42618E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    11.050       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19037E-02   1.0000          .0000       .10000E+07
     8 'norm      '    .20313       1.0000          .0000       .10000E+07
     9 'Prefactor '    .16820E-07   1.0000          .0000       .10000E+07
    10 'norm      '    .15374E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.7072       1.0000          .0000       .10000E+07
    12 'Prefactor '    .94028E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .98849E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .36448E-02   1.0000          .0000       .10000E+07
    15 'norm      '    10.494       1.0000          .0000       .10000E+07
    16 'Prefactor '    .71593E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .48406E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .31719E-03   1.0000          .0000       .10000E+07
    19 'norm      '    10.786       1.0000          .0000       .10000E+07
    20 'Prefactor '    1.5935       1.0000          .0000       .10000E+07
    21 'Prefactor '    .75761E-02   1.0000          .0000       .10000E+07
    22 'norm      '    1.5840       1.0000          .0000       .10000E+07
    23 'norm      '    21.465       1.0000          .0000       .10000E+07
    24 'Prefactor '    8.3038       1.0000          .0000       .10000E+07
    25 'norm      '    .14668E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    22.785       1.0000          .0000       .10000E+07
    27 'norm      '    2.4159       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.4338       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .59865       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=   6705.858     FROM MIGRAD    STATUS=CONVERGED    173 CALLS     1562 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.9174       -.15620E-07** at limit **
   2  norm           .0000        2.3145        .37215E-08** at limit **
   3  norm           .0000        2.2917       -.88039E-08** at limit **
   4  Prefactor     16.417        1.3692       -.13229E-08   -.12947E-02
   5  Prefactor     .41483E-06    1.5513       -.20585E-08** at limit **
   6  Prefactor     11.050        4.8558       -.14318E-07   -.31512E-03
   7  Prefactor     .81435E-07    7.4088       -.30016E-07** at limit **
   8  norm          .20304        .22608        .34213E-08** at limit **
   9  Prefactor      .0000        1.2256        .35518E-10** at limit **
  10  norm           .0000        3.5248       -.58385E-08** at limit **
  11  Prefactor     1.7092        1.6769       -.47767E-09    .33129E-03
  12  Prefactor     .13778E-06    8.8933        .15182E-07** at limit **
  13  Prefactor      .0000        .83164       -.68006E-08** at limit **
  14  Prefactor     .35733E-06    52.269       -.58157E-06** at limit **
  15  norm          10.729        5.9116        .51532E-08   -.10633E-01
  16  Prefactor     .16176E-05    23.300        .11812E-07** at limit **
  17  Prefactor      .0000        5.5015        .29288E-07** at limit **
  18  Prefactor     .85487E-08    5.7027       -.89497E-07** at limit **
  19  norm          10.648        9.7427        .22917E-07    .69782E-02
  20  Prefactor     .17056E-04    40.189        .26166E-07** at limit **
  21  Prefactor     .69389E-07    8.9949       -.10150E-06** at limit **
  22  norm          1.5850        .55824       -.16506E-08    .12421E-02
  23  norm          21.172        3.2373        .29258E-08   -.33977E-01
  24  Prefactor     8.3108        5.6016        .35952E-07    .32693E-02
  25  norm          .10547E-07    5.9661       -.38296E-07** at limit **
  26  Prefactor     22.335        4.9552       -.28663E-07   -.29994E-01
  27  norm          2.4156        1.4804        .46023E-08    .11615E-02
  28  Normalizat    1.4357        .18944        .16874E-05    .25697E-03
  29  Prefactor     .59826        .20100       -.83236E-06    .11785E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 16.4166
  Prefactor  = 4.14835e-07
  Prefactor  = 11.0497
  Prefactor  = 8.14349e-08
  norm       = 0.203039
  Prefactor  = 0
  norm       = 0
  Prefactor  = 1.70921
  Prefactor  = 1.37779e-07
  Prefactor  = 0
  Prefactor  = 3.57325e-07
  norm       = 10.7295
  Prefactor  = 1.61759e-06
  Prefactor  = 0
  Prefactor  = 8.54872e-09
  norm       = 10.6485
  Prefactor  = 1.70556e-05
  Prefactor  = 6.93889e-08
  norm       = 1.58505
  norm       = 21.1725
  Prefactor  = 8.31084
  norm       = 1.05471e-08
  Prefactor  = 22.3346
  norm       = 2.4156
  Normalizat = 1.43569
  Prefactor  = 0.598263
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.858     FROM HESSE     STATUS=OK           619 CALLS     2181 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.9224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        2.3135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        2.2900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.417        11.033        .24675E-03   -1.5627    
   5  Prefactor     .41483E-06    16.655        .11298E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.050        4.8793        .30114E-03   -1.5641    
   7  Prefactor     .81435E-07    9.0706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .20304        .24895        .90490E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        1.2213        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        3.5312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7092        1.6791        .80441E-03   -1.5682    
  12  Prefactor     .13778E-06    10.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        .83794        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .35733E-06    53.470        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.729        15.012        .30905E-03   -1.5642    
  16  Prefactor     .16176E-05    30.928        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        5.5023        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .85487E-08    14.950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.648        9.7805        .30482E-03   -1.5643    
  20  Prefactor     .17056E-04    113.06        .84005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .69389E-07    13.713        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.5850        .56362        .79248E-03   -1.5683    
  23  norm          21.172        11.844        .21590E-03   -1.5616    
  24  Prefactor     8.3108        5.6132        .34766E-03   -1.5650    
  25  norm          .10547E-07    .96587        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     22.335        30.638        .20955E-03   -1.5613    
  27  norm          2.4156        1.4839        .65830E-03   -1.5677    
  28  Normalizat    1.4357        .16908        .48763E-01   -.79602    
  29  Prefactor     .59826        .17824        .78211E-01   -1.0766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83565e-07
Minuit parameter uncertainties:
  1  6.80762e-06
  2  1.03176e-05
  3  7.74452e-06
  4  11.0333
  5  0.00525716
  6  4.87935
  7  0.00171896
  8  0.248952
  9  8.66997e-06
  10  1.32871e-06
  11  1.67905
  12  0.00236639
  13  4.85223e-06
  14  0.0087422
  15  15.0118
  16  0.0141463
  17  8.58146e-07
  18  0.000714946
  19  9.78051
  20  0.0878257
  21  0.00195075
  22  0.56362
  23  11.8444
  24  5.61325
  25  0.000201792
  26  30.6378
  27  1.48389
  28  0.169148
  29  0.178412
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  3.573e-07  8.742e-03  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.397e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
359        Scale:  9.988e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  5.983e-01  1.784e-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:  1.436e+00  1.691e-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: 6.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/846341/likelihoodResults_697075201_697334401_4FGL_J0937.1+5008_daily_bin1766.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) = 6705.8687719
delta logL = -0.0107253482183

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6705.74665129
delta logL = 0.111395266266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .65912       1.0000          .0000       .10000E+07
     2 'Index     '    4.0263       1.0000          .0000       10.000    
     3 'Normalizat'    1.4076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61599       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=   6705.747     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      273 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65800        132.75        .13385E-04   -.75850E-03
   2  Index         4.0283        5.3617        .41104E-02   -.30230E-05
   3  Normalizat    1.4076        .19266        .21735E-03   -.29082E-04
   4  Prefactor     .61596        .20516        .34176E-03   -.16300E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.657997
  Index      = 4.02826
  Normalizat = 1.40758
  Prefactor  = 0.615964
 **********
 **   18 **HESSE 
 **********

 FCN=   6705.747     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65800        5.1796        .53538E-06   -1.5692    
   2  Index         4.0283        2.6522        .16442E-03   -.19559    
   3  Normalizat    1.4076        .19275        .43470E-04   -.80410    
   4  Prefactor     .61596        .20324        .13670E-04   -1.0692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86741e-12
Minuit parameter uncertainties:
  1  3.69225
  2  2.80222
  3  0.192847
  4  0.203479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/846341': 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) = 6705.74665064
delta logL = 0.111395917119

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  6.580e-01  3.692e+00  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  4.028e+00  2.802e+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:  6.160e-01  2.035e-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:  1.408e+00  1.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 144.297 50.144

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/846341/cmap_HighResolution_697075201_697334401_4FGL_J0937.1+5008_daily_bin1766.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.80e-08', time_completed='2023-02-06 00:54:09.997068', job_id='846341', GAL2='0.62', fit_tolerance='1e-08', EG2='1.41', EG='1.44', time_epoch_completed='1675673650.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='1.11e-01', ts2='0.24', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1766' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb  6 00:54:10 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 846341: <4FGL_J0937.1+5008_daily_bin1766> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1766> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Feb  6 00:40:12 2023
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb  6 00:40:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb  6 00:40:24 2023
Terminated at Mon Feb  6 00:54:10 2023
Results reported at Mon Feb  6 00:54:10 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1766 144.297 50.1437 697075201 697334401 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 :                                   741.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            838 sec.

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

