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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1770
RA = 144.297, Dec = 50.1437
tmin = 698112001, tmax = 698371201
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='481795', job_status='RUN', time_executed='2023-02-18 00:31:23.411523', time_epoch_executed='1676709083.41' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/481795

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/481795/ft1_4FGL_J0937.1+5008_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/481795/ft2_4FGL_J0937.1+5008_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/481795/ft1_4FGL_J0937.1+5008_daily_bin1770.fits outfile=/scratch/kocevski/481795/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1770.fits ra=144.297 dec=50.1437 rad=12.0 tmin=698112001.0 tmax=698371201.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 4.45
user 4.19
sys 0.20

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

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

Number of photons that the gtmktime cut: 383

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/481795/ft1_filtered_4FGL_J0937.1+5008_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/481795/ft2_4FGL_J0937.1+5008_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/481795/ltcube_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.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/481795/ft2_4FGL_J0937.1+5008_daily_bin1770.fits
.....................!
real 12.74
user 12.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/481795/ft1_filtered_4FGL_J0937.1+5008_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/481795/ft2_4FGL_J0937.1+5008_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/481795/ltcube_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.fits outfile=/scratch/kocevski/481795/expmap_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.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/481795/ltcube_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.fits
.....................!
real 189.86
user 185.40
sys 4.10

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/481795/ft1_filtered_4FGL_J0937.1+5008_daily_bin1770.fits scfile=/scratch/kocevski/481795/ft2_4FGL_J0937.1+5008_daily_bin1770.fits outfile=/scratch/kocevski/481795/cmap_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/481795/ft1_filtered_4FGL_J0937.1+5008_daily_bin1770.fits scfile=/scratch/kocevski/481795/ft2_4FGL_J0937.1+5008_daily_bin1770.fits outfile=/scratch/kocevski/481795/cmap_HighResolution_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1137       1.0000          .0000       .10000E+07
     2 'norm      '    .32196E-05   1.0000          .0000       .10000E+07
     3 'norm      '    5.1421       1.0000          .0000       .10000E+07
     4 'Prefactor '    .11590E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .14920E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    14.198       1.0000          .0000       .10000E+07
     7 'Prefactor '    .14224E-04   1.0000          .0000       .10000E+07
     8 'norm      '    .18310E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4899       1.0000          .0000       .10000E+07
    10 'norm      '    2.9991       1.0000          .0000       .10000E+07
    11 'Prefactor '    .76272E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.2165       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.5367       1.0000          .0000       .10000E+07
    14 'Prefactor '    .49325E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .33842E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .10880E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    4.5070       1.0000          .0000       .10000E+07
    18 'Prefactor '    .93725E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .77418E-04   1.0000          .0000       .10000E+07
    20 'Prefactor '    29.226       1.0000          .0000       .10000E+07
    21 'Prefactor '    .23412E-01   1.0000          .0000       .10000E+07
    22 'norm      '    1.4132       1.0000          .0000       .10000E+07
    23 'norm      '    18.898       1.0000          .0000       .10000E+07
    24 'Prefactor '    .56638E-06   1.0000          .0000       .10000E+07
    25 'norm      '    4.9109       1.0000          .0000       .10000E+07
    26 'Prefactor '    22.377       1.0000          .0000       .10000E+07
    27 'norm      '    4.3920       1.0000          .0000       .10000E+07
    28 'Normalizat'    .44976       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3670       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=   4254.678     FROM MIGRAD    STATUS=CONVERGED    189 CALLS     2140 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0984        1.2417       -.25446E-07   -.68973E-02
   2  norm           .0000        2.6523       -.27546E-07** at limit **
   3  norm          5.1384        5.4512       -.20931E-06    .23177E-03
   4  Prefactor     .55511E-10    3.2921        .90767E-07** at limit **
   5  Prefactor     .55511E-10    19.805       -.46127E-06** at limit **
   6  Prefactor     14.197        5.9748       -.53233E-07   -.79674E-03
   7  Prefactor     .16098E-08    11.905       -.64680E-06** at limit **
   8  norm           .0000        .72492        .20245E-07** at limit **
   9  Prefactor     1.4889        3.1982        .45360E-06   -.17273E-03
  10  norm          3.0209        6.8350       -.36959E-06   -.28346E-03
  11  Prefactor      .0000        1.0392        .14241E-06** at limit **
  12  Prefactor     8.2254        7.2613        .15116E-06    .16989E-01
  13  Prefactor     3.5343        3.7528        .12965E-06   -.66429E-03
  14  Prefactor     .92704E-08    5.0686       -.37386E-06** at limit **
  15  norm          .44409E-08    4.4824        .41802E-07** at limit **
  16  Prefactor      .0000        4.2894        .37202E-07** at limit **
  17  Prefactor     4.5128        1.7921       -.38088E-07   -.13670E-01
  18  Prefactor     .34195E-07    2.8819       -.20097E-06** at limit **
  19  norm          .55511E-10    5.7760        .82251E-08** at limit **
  20  Prefactor     28.895        32.321       -.29542E-06    .23586E-02
  21  Prefactor     .23953E-06    20.988       -.31641E-06** at limit **
  22  norm          1.4128        .65024       -.29686E-07    .13794E-03
  23  norm          19.002        1.0818       -.15719E-08    .38208E-02
  24  Prefactor      .0000        2.4063        .23769E-06** at limit **
  25  norm          4.9122        3.0677       -.12305E-07   -.24104E-03
  26  Prefactor     22.394        2.0430       -.19642E-07    .38564E-02
  27  norm          4.3946        2.4100        .36571E-07    .12200E-03
  28  Normalizat    .44988        .21834       -.15160E-05    .39295E-05
  29  Prefactor     1.3670        .25248        .37081E-05    .93629E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.09845
  norm       = 0
  norm       = 5.13845
  Prefactor  = 5.55112e-11
  Prefactor  = 5.55112e-11
  Prefactor  = 14.1967
  Prefactor  = 1.60982e-09
  norm       = 0
  Prefactor  = 1.48885
  norm       = 3.02091
  Prefactor  = 0
  Prefactor  = 8.22536
  Prefactor  = 3.53434
  Prefactor  = 9.27036e-09
  norm       = 4.44089e-09
  Prefactor  = 0
  Prefactor  = 4.51278
  Prefactor  = 3.41949e-08
  norm       = 5.55112e-11
  Prefactor  = 28.8952
  Prefactor  = 2.39531e-07
  norm       = 1.41283
  norm       = 19.002
  Prefactor  = 0
  norm       = 4.91225
  Prefactor  = 22.3937
  norm       = 4.39455
  Normalizat = 0.449878
  Prefactor  = 1.36699
 **********
 **   18 **HESSE 
 **********

 FCN=   4254.678     FROM HESSE     STATUS=OK           621 CALLS     2761 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0984        7.8948        .40580E-03   -1.5659    
   2  norm           .0000        2.6517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1384        5.5251        .44311E-03   -1.5663    
   4  Prefactor     .55511E-10    3.2961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    19.799        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.197        6.0342        .26556E-03   -1.5633    
   7  Prefactor     .16098E-08    12.012        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .58271        .15023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4889        3.8301        .87800E-03   -1.5684    
  10  norm          3.0209        6.8652        .58588E-03   -1.5673    
  11  Prefactor      .0000        1.0389        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.2254        8.8545        .34952E-03   -1.5651    
  13  Prefactor     3.5343        3.7743        .53725E-03   -1.5670    
  14  Prefactor     .92704E-08    7.5166        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .44409E-08    8.9706        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        8.8611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.5128        10.409        .47400E-03   -1.5665    
  18  Prefactor     .34195E-07    8.1028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .55511E-10    5.7820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     28.895        32.509        .18501E-03   -1.5600    
  21  Prefactor     .23953E-06    59.539        .16822E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.4128        .65546        .77555E-03   -1.5684    
  23  norm          19.002        14.858        .23012E-03   -1.5621    
  24  Prefactor      .0000        2.4036        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.9122        3.0637        .45364E-03   -1.5664    
  26  Prefactor     22.394        29.690        .21145E-03   -1.5613    
  27  norm          4.3946        2.4173        .48033E-03   -1.5666    
  28  Normalizat    .44988        .20203        .71894E-01   -1.1480    
  29  Prefactor     1.3670        .22496        .52078E-01   -.81336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24516e-08
Minuit parameter uncertainties:
  1  7.89479
  2  1.13923e-05
  3  5.52515
  4  2.38151e-05
  5  7.97593e-05
  6  6.03417
  7  0.000276279
  8  1.20535e-07
  9  3.83009
  10  6.86524
  11  3.12823e-07
  12  8.8545
  13  3.77429
  14  0.000528624
  15  0.000399294
  16  1.6868e-05
  17  10.4095
  18  0.0010526
  19  4.28881e-05
  20  32.5091
  21  0.00755268
  22  0.655456
  23  14.858
  24  3.2315e-06
  25  3.06371
  26  29.69
  27  2.41726
  28  0.202355
  29  0.22512
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  1.367e+00  2.251e-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:  4.499e-01  2.024e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/481795/likelihoodResults_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.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) = 4254.67813583
delta logL = -0.000339062605235

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4254.67779779
delta logL = -1.02702688309e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20911E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6798       1.0000          .0000       10.000    
     3 'Normalizat'    .44970       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3673       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4254.678     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      425 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        2.3577        .42118E-03** at limit **
   2  Index         3.5012        1.3198       -.13180E-03     .0000    
   3  Normalizat    .44988        .77623       -.36144E-07   -.15005E-04
   4  Prefactor     1.3670        1.0653       -.11474E-04    .37399E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.5012
  Normalizat = 0.449877
  Prefactor  = 1.36699
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   4254.678     FROM HESSE     STATUS=FAILED         9 CALLS      434 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        2.3577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3633        2.1964       -.13180E-03   -.30444    
   3  Normalizat    .44988        .77623       -.36144E-07   -1.1480    
   4  Prefactor     1.3670        1.0653       -.11474E-04   -.81336    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.47828e-11
Minuit parameter uncertainties:
  1  8.14966e-06
  2  1.33728
  3  0.796092
  4  1.08311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/481795': 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): 101
logL (Free Index) = 4254.67779677
delta logL = 6.08451955486e-10

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  0.000e+00  8.150e-06  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  3.501e+00  1.337e+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.367e+00  1.083e+00  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:  4.499e-01  7.961e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/481795/cmap_HighResolution_698112001_698371201_4FGL_J0937.1+5008_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.20e-08', time_completed='2023-02-18 00:41:49.698858', job_id='481795', GAL2='1.37', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1676709709.7', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='6.08e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1770' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 00:41:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 481795: <4FGL_J0937.1+5008_daily_bin1770> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1770> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Feb 18 00:30:39 2023
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:30:44 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:30:44 2023
Terminated at Sat Feb 18 00:41:50 2023
Results reported at Sat Feb 18 00:41:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1770 144.297 50.1437 698112001 698371201 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   665 sec.
    Turnaround time :                            671 sec.

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

