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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1756
RA = 144.297, Dec = 50.1437
tmin = 694483201, tmax = 694742401
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='10367', job_status='RUN', time_executed='2023-01-07 00:44:06.451402', time_epoch_executed='1673081046.45' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/10367

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/10367/ft1_4FGL_J0937.1+5008_daily_bin1756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/10367/ft2_4FGL_J0937.1+5008_daily_bin1756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/10367/ft1_4FGL_J0937.1+5008_daily_bin1756.fits outfile=/scratch/kocevski/10367/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1756.fits ra=144.297 dec=50.1437 rad=12.0 tmin=694483201.0 tmax=694742401.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.30
user 2.76
sys 0.21

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

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

Number of photons that the gtmktime cut: 149

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/10367/ft1_filtered_4FGL_J0937.1+5008_daily_bin1756.fits evtable="EVENTS" scfile=/scratch/kocevski/10367/ft2_4FGL_J0937.1+5008_daily_bin1756.fits sctable="SC_DATA" expcube=/scratch/kocevski/10367/ltcube_694483201_694742401_4FGL_J0937.1+5008_daily_bin1756.fits outfile=/scratch/kocevski/10367/expmap_694483201_694742401_4FGL_J0937.1+5008_daily_bin1756.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/10367/ltcube_694483201_694742401_4FGL_J0937.1+5008_daily_bin1756.fits
.....................!
real 193.19
user 186.40
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/10367/ft1_filtered_4FGL_J0937.1+5008_daily_bin1756.fits scfile=/scratch/kocevski/10367/ft2_4FGL_J0937.1+5008_daily_bin1756.fits outfile=/scratch/kocevski/10367/cmap_694483201_694742401_4FGL_J0937.1+5008_daily_bin1756.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/10367/ft1_filtered_4FGL_J0937.1+5008_daily_bin1756.fits scfile=/scratch/kocevski/10367/ft2_4FGL_J0937.1+5008_daily_bin1756.fits outfile=/scratch/kocevski/10367/cmap_HighResolution_694483201_694742401_4FGL_J0937.1+5008_daily_bin1756.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.1954       1.0000          .0000       .10000E+07
     2 'norm      '    122.32       1.0000          .0000       .10000E+07
     3 'norm      '    8.6540       1.0000          .0000       .10000E+07
     4 'Prefactor '    291.03       1.0000          .0000       .10000E+07
     5 'Prefactor '    .28503E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.026       1.0000          .0000       .10000E+07
     7 'Prefactor '    .64853       1.0000          .0000       .10000E+07
     8 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
     9 'Prefactor '    .10372E-04   1.0000          .0000       .10000E+07
    10 'norm      '    34.595       1.0000          .0000       .10000E+07
    11 'Prefactor '    .13336E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .14041       1.0000          .0000       .10000E+07
    13 'Prefactor '    .29397E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    10.626       1.0000          .0000       .10000E+07
    15 'norm      '    22.221       1.0000          .0000       .10000E+07
    16 'Prefactor '    .32798E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    12.921       1.0000          .0000       .10000E+07
    18 'Prefactor '    .20561E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .34902E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .52651E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .11225E-01   1.0000          .0000       .10000E+07
    22 'norm      '    1.6395       1.0000          .0000       .10000E+07
    23 'norm      '    .17614E-01   1.0000          .0000       .10000E+07
    24 'Prefactor '    13.664       1.0000          .0000       .10000E+07
    25 'norm      '    4.9111       1.0000          .0000       .10000E+07
    26 'Prefactor '    .17614E-03   1.0000          .0000       .10000E+07
    27 'norm      '    .53291E-08   1.0000          .0000       .10000E+07
    28 'Normalizat'    .79135       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60530       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=   1713.117     FROM MIGRAD    STATUS=CONVERGED    285 CALLS     2745 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .23278E-02    185.85       -.15591E-06** at limit **
   2  norm          130.06        119.58        .30800E-07   -.14480E-01
   3  norm          .15779E-02    289.83        .15924E-05** at limit **
   4  Prefactor     296.88        287.78        .57251E-06   -.12793    
   5  Prefactor     .22071E-04    93.220       -.24410E-05** at limit **
   6  Prefactor     12.020        13.222       -.14295E-06   -.48939E-03
   7  Prefactor     .23061E-03    215.07        .15547E-06** at limit **
   8  norm           .0000        .48931        .26348E-07** at limit **
   9  Prefactor      .0000        2.6190       -.45417E-07** at limit **
  10  norm          35.421        35.127       -.80801E-06   -.15831E-02
  11  Prefactor      .0000        3.8648        .15587E-07** at limit **
  12  Prefactor     .14433E-08    59.789        .48166E-05** at limit **
  13  Prefactor      .0000        3.7486        .44469E-08** at limit **
  14  Prefactor     11.232        32.593       -.51481E-06   -.34549E-03
  15  norm          22.632        34.163       -.65063E-06    .60584E-02
  16  Prefactor     .46074E-08    29.103       -.58316E-06** at limit **
  17  Prefactor     13.000        10.384       -.18904E-06   -.28036E-03
  18  Prefactor      .0000        7.2421        .25143E-06** at limit **
  19  norm           .0000        7.5107        .19477E-06** at limit **
  20  Prefactor     .73701E-02    129.46       -.52253E-06** at limit **
  21  Prefactor     .55511E-10    18.795       -.21867E-06** at limit **
  22  norm          1.6398        .76540       -.32927E-07   -.13620E-02
  23  norm           .0000        14.010        .11573E-06** at limit **
  24  Prefactor     13.680        10.577       -.24295E-07   -.74430E-04
  25  norm          4.9179        4.5671        .81243E-07    .31261E-03
  26  Prefactor     .11102E-09    20.753       -.21146E-06** at limit **
  27  norm           .0000        1.0836        .81705E-07** at limit **
  28  Normalizat    .79137        .29448       -.30085E-05   -.48975E-05
  29  Prefactor     .60402        .35792        .92068E-05    .10738E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00232783
  norm       = 130.058
  norm       = 0.00157794
  Prefactor  = 296.884
  Prefactor  = 2.20708e-05
  Prefactor  = 12.0199
  Prefactor  = 0.000230606
  norm       = 0
  Prefactor  = 0
  norm       = 35.4213
  Prefactor  = 0
  Prefactor  = 1.44329e-09
  Prefactor  = 0
  Prefactor  = 11.232
  norm       = 22.6322
  Prefactor  = 4.60743e-09
  Prefactor  = 12.9996
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.00737015
  Prefactor  = 5.55112e-11
  norm       = 1.63985
  norm       = 0
  Prefactor  = 13.6797
  norm       = 4.91789
  Prefactor  = 1.11022e-10
  norm       = 0
  Normalizat = 0.79137
  Prefactor  = 0.604019
 **********
 **   18 **HESSE 
 **********

 FCN=   1713.117     FROM HESSE     STATUS=OK           603 CALLS     3348 TOTAL
                     EDM=   .29E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .23278E-02    628.22        .40308E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          130.06        127.20        .90425E-04   -1.5480    
   3  norm          .15779E-02    349.86        .34050E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     296.88        318.52        .58626E-04   -1.5363    
   5  Prefactor     .22071E-04    93.271        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.020        13.210        .28862E-03   -1.5639    
   7  Prefactor     .23061E-03    222.49        .64988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .48835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        2.6169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          35.421        35.113        .17004E-03   -1.5589    
  11  Prefactor      .0000        3.8687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .14433E-08    59.206        .12950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        3.7516        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.232        32.936        .30712E-03   -1.5641    
  15  norm          22.632        34.116        .21219E-03   -1.5613    
  16  Prefactor     .46074E-08    29.133        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.000        10.391        .27841E-03   -1.5636    
  18  Prefactor      .0000        7.2376        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        7.5110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .73701E-02    506.28        .42118E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    18.797        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.6398        .76490        .53951E-03   -1.5682    
  23  norm           .0000        13.906        .17199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.680        10.529        .27071E-03   -1.5634    
  25  norm          4.9179        4.5717        .45363E-03   -1.5664    
  26  Prefactor     .11102E-09    20.826        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        1.0583        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .79137        .25654        .43497E-01   -1.0039    
  29  Prefactor     .60402        .31381        .68549E-01   -1.0742    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94319e-05
Minuit parameter uncertainties:
  1  2.41884
  2  127.198
  3  1.48609
  4  318.535
  5  0.0907443
  6  13.2099
  7  0.453038
  8  2.43501e-07
  9  8.42716e-07
  10  35.1129
  11  1.13482e-06
  12  0.000582344
  13  1.61373e-06
  14  32.9367
  15  34.1166
  16  0.000733513
  17  10.3907
  18  3.72264e-06
  19  1.44939e-05
  20  3.86366
  21  7.64854e-05
  22  0.764899
  23  6.98826e-06
  24  10.529
  25  4.57168
  26  9.17756e-05
  27  1.31064e-06
  28  0.256932
  29  0.314725
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  6.040e-01  3.147e-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.914e-01  2.569e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/10367/likelihoodResults_694483201_694742401_4FGL_J0937.1+5008_daily_bin1756.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) = 1712.9448324
delta logL = 0.172117562397

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1712.93513576
delta logL = 0.181814203332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0895       1.0000          .0000       .10000E+07
     2 'Index     '    3.5878       1.0000          .0000       10.000    
     3 'Normalizat'    .76795       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61917       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=   1712.935     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      254 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0770        334.09        .49830E-03   -.14264E-02
   2  Index         3.5890        6.4863        .12929       -.75079E-05
   3  Normalizat    .76800        .93952E-01    .43191E-01   -.56567E-04
   4  Prefactor     .61909        .10787        .67706E-01   -.11894E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.07705
  Index      = 3.58904
  Normalizat = 0.767999
  Prefactor  = 0.619091
 **********
 **   18 **HESSE 
 **********

 FCN=   1712.935     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0770        40.046        .13312E-04   -1.5668    
   2  Index         3.5890        3.2345        .64915E-02   -.28608    
   3  Normalizat    .76800        .28814        .21886E-03   -1.0127    
   4  Prefactor     .61909        .35336        .29964E-03   -1.0679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43749e-10
Minuit parameter uncertainties:
  1  25.5556
  2  3.54975
  3  0.288717
  4  0.354634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/10367': 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) = 1712.93513533
delta logL = 0.181814626281

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  4.077e+00  2.556e+01  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  3.589e+00  3.550e+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.191e-01  3.546e-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.680e-01  2.887e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/10367/cmap_HighResolution_694483201_694742401_4FGL_J0937.1+5008_daily_bin1756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.54e-02', job_status='DONE', photon_flux_upper_limit='1.99e-07', time_completed='2023-01-07 00:51:53.592695', job_id='10367', GAL2='0.62', fit_tolerance='1e-08', EG2='0.77', EG='0.79', time_epoch_completed='1673081513.59', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='1.82e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1756' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan  7 00:51:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 10367: <4FGL_J0937.1+5008_daily_bin1756> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan  7 00:40:13 2023
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan  7 00:40:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan  7 00:40:55 2023
Terminated at Sat Jan  7 00:51:54 2023
Results reported at Sat Jan  7 00:51:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1756 144.297 50.1437 694483201 694742401 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 :                                   468.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            701 sec.

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

