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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1757
RA = 144.297, Dec = 50.1437
tmin = 694742401, tmax = 695001601
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='191763', job_status='RUN', time_executed='2023-01-10 00:40:34.852026', time_epoch_executed='1673340034.85' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1757'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191763

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191763/ft1_4FGL_J0937.1+5008_daily_bin1757.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191763/ft2_4FGL_J0937.1+5008_daily_bin1757.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191763/ft1_4FGL_J0937.1+5008_daily_bin1757.fits outfile=/scratch/kocevski/191763/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1757.fits ra=144.297 dec=50.1437 rad=12.0 tmin=694742401.0 tmax=695001601.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 2.91
user 2.67
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191763/ft1_filtered_4FGL_J0937.1+5008_daily_bin1757.fits" evtable="EVENTS" scfile=/scratch/kocevski/191763/ft2_4FGL_J0937.1+5008_daily_bin1757.fits sctable="SC_DATA" outfile=/scratch/kocevski/191763/ltcube_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.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/191763/ft2_4FGL_J0937.1+5008_daily_bin1757.fits
.....................!
real 17.30
user 16.83
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191763/ft1_filtered_4FGL_J0937.1+5008_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/191763/ft2_4FGL_J0937.1+5008_daily_bin1757.fits sctable="SC_DATA" expcube=/scratch/kocevski/191763/ltcube_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.fits outfile=/scratch/kocevski/191763/expmap_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.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/191763/ltcube_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.fits
.....................!
real 193.26
user 186.73
sys 5.29

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/191763/ft1_filtered_4FGL_J0937.1+5008_daily_bin1757.fits scfile=/scratch/kocevski/191763/ft2_4FGL_J0937.1+5008_daily_bin1757.fits outfile=/scratch/kocevski/191763/cmap_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191763/ft1_filtered_4FGL_J0937.1+5008_daily_bin1757.fits scfile=/scratch/kocevski/191763/ft2_4FGL_J0937.1+5008_daily_bin1757.fits outfile=/scratch/kocevski/191763/cmap_HighResolution_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.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/191763/ft1_filtered_4FGL_J0937.1+5008_daily_bin1757.fits evtable="EVENTS" scfile=/scratch/kocevski/191763/ft2_4FGL_J0937.1+5008_daily_bin1757.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/191763/Model_4FGL_J0937.1+5008_daily_bin1757.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/191763/ft1_filtered_4FGL_J0937.1+5008_daily_bin1757.fits......................!
real 38.55
user 37.10
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.112       1.0000          .0000       .10000E+07
     2 'norm      '    .18791E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .43869E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .58570E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    19.820       1.0000          .0000       .10000E+07
     6 'Prefactor '    22.180       1.0000          .0000       .10000E+07
     7 'Prefactor '    .23627E-01   1.0000          .0000       .10000E+07
     8 'norm      '    .75473E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    2.0763       1.0000          .0000       .10000E+07
    10 'norm      '    .55811E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .94891E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    .20999E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4518       1.0000          .0000       .10000E+07
    14 'Prefactor '    .19440E-02   1.0000          .0000       .10000E+07
    15 'norm      '    .12306E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    31.670       1.0000          .0000       .10000E+07
    17 'Prefactor '    .99841E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    .15979E-04   1.0000          .0000       .10000E+07
    19 'norm      '    3.7880       1.0000          .0000       .10000E+07
    20 'Prefactor '    .41608       1.0000          .0000       .10000E+07
    21 'Prefactor '    13.088       1.0000          .0000       .10000E+07
    22 'norm      '    .53964       1.0000          .0000       .10000E+07
    23 'norm      '    43.883       1.0000          .0000       .10000E+07
    24 'Prefactor '    .68837E-02   1.0000          .0000       .10000E+07
    25 'norm      '    1.9800       1.0000          .0000       .10000E+07
    26 'Prefactor '    .15709E-02   1.0000          .0000       .10000E+07
    27 'norm      '    .53744       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0583       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81590       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=   3298.831     FROM MIGRAD    STATUS=CONVERGED    192 CALLS     3771 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.097        4.4624        .47551E-07    .51133E-02
   2  norm          .85010E-06    4.5392        .83968E-08** at limit **
   3  norm          .73441E-07    10.572        .18305E-07** at limit **
   4  Prefactor      .0000        30.821       -.23866E-06** at limit **
   5  Prefactor     20.846        46.048       -.87763E-06   -.29064E-01
   6  Prefactor     22.147        3.2336       -.30679E-07   -.99160E-01
   7  Prefactor      .0000        25.297       -.26446E-06** at limit **
   8  norm           .0000        .64928       -.57648E-07** at limit **
   9  Prefactor     2.0448        5.7574       -.28110E-07    .32350E-02
  10  norm          .12212E-08    8.5437        .11391E-06** at limit **
  11  Prefactor     .33307E-09    4.2257       -.15833E-06** at limit **
  12  Prefactor     .10837E-05    5.6383        .17747E-08** at limit **
  13  Prefactor     1.4108        5.3052       -.45454E-06   -.85654E-03
  14  Prefactor     .24841E-06    4.2574        .49898E-08** at limit **
  15  norm          .60862E-06    5.9964        .22338E-06** at limit **
  16  Prefactor     32.627        37.658       -.68475E-06    .81144E-02
  17  Prefactor     .44409E-09    4.0803       -.17619E-06** at limit **
  18  Prefactor     .25332E-05    8.2752        .49749E-07** at limit **
  19  norm          3.6552        9.2570        .18168E-06   -.29789E-02
  20  Prefactor     .65298E-05    63.928        .52843E-06** at limit **
  21  Prefactor     13.742        38.228       -.11572E-05    .42876E-01
  22  norm          .53933        .42017        .17525E-08   -.15252E-02
  23  norm          43.886        11.783       -.14562E-06   -.11939    
  24  Prefactor     .32196E-08    6.5372        .28531E-07** at limit **
  25  norm          1.9812        2.5683        .41054E-07    .59965E-03
  26  Prefactor     .39818E-06    4.6538        .16317E-06** at limit **
  27  norm          .53838        1.0269       -.94099E-07   -.23214E-02
  28  Normalizat    1.0565        .27159        .42028E-06   -.14240E-03
  29  Prefactor     .81691        .29103       -.13197E-05   -.93403E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.097
  norm       = 8.50098e-07
  norm       = 7.34413e-08
  Prefactor  = 0
  Prefactor  = 20.8464
  Prefactor  = 22.1466
  Prefactor  = 0
  norm       = 0
  Prefactor  = 2.04484
  norm       = 1.22125e-09
  Prefactor  = 3.33067e-10
  Prefactor  = 1.08374e-06
  Prefactor  = 1.41075
  Prefactor  = 2.48412e-07
  norm       = 6.08624e-07
  Prefactor  = 32.6266
  Prefactor  = 4.44089e-10
  Prefactor  = 2.5332e-06
  norm       = 3.65524
  Prefactor  = 6.52978e-06
  Prefactor  = 13.7415
  norm       = 0.539325
  norm       = 43.8858
  Prefactor  = 3.21965e-09
  norm       = 1.98116
  Prefactor  = 3.98181e-07
  norm       = 0.538379
  Normalizat = 1.05649
  Prefactor  = 0.81691
 **********
 **   18 **HESSE 
 **********

 FCN=   3298.831     FROM HESSE     STATUS=OK           609 CALLS     4380 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.097        20.865        .27636E-03   -1.5636    
   2  norm          .85010E-06    13.056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .73441E-07    15.123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        30.552        .15214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.846        60.097        .22470E-03   -1.5617    
   6  Prefactor     22.147        13.486        .21239E-03   -1.5614    
   7  Prefactor      .0000        25.289        .16809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        .64745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.0448        6.2338        .71649E-03   -1.5679    
  10  norm          .12212E-08    8.5461        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .33307E-09    4.2127        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10837E-05    12.090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4108        5.3918        .89367E-03   -1.5684    
  14  Prefactor     .24841E-06    12.878        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60862E-06    10.067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     32.627        56.183        .17772E-03   -1.5594    
  17  Prefactor     .44409E-09    4.0782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25332E-05    17.670        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6552        9.4800        .51842E-03   -1.5670    
  20  Prefactor     .65298E-05    86.402        .87646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.742        43.143        .27662E-03   -1.5634    
  22  norm          .53933        .43195        .71615E-03   -1.5693    
  23  norm          43.886        25.638        .15097E-03   -1.5575    
  24  Prefactor     .32196E-08    6.5386        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.9812        2.5962        .73631E-03   -1.5680    
  26  Prefactor     .39818E-06    10.396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .53838        1.1835        .18138E-02   -1.5693    
  28  Normalizat    1.0565        .23708        .40034E-01   -.91161    
  29  Prefactor     .81691        .25386        .67440E-01   -.99108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17994e-06
Minuit parameter uncertainties:
  1  20.8646
  2  0.00666304
  3  0.002108
  4  1.03069e-05
  5  60.0984
  6  13.4864
  7  1.71722e-05
  8  1.38688e-06
  9  6.23378
  10  0.000203245
  11  7.73256e-05
  12  0.00723958
  13  5.39177
  14  0.00357712
  15  0.00495063
  16  56.1835
  17  8.28665e-05
  18  0.0133806
  19  9.48003
  20  0.047506
  21  43.1439
  22  0.431946
  23  25.6381
  24  0.000290676
  25  2.59618
  26  0.00406923
  27  1.1835
  28  0.237319
  29  0.254225
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  2.484e-07  3.577e-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:  8.169e-01  2.542e-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.056e+00  2.373e-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: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191763/likelihoodResults_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.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) = 3298.86827657
delta logL = -0.0372433112975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3298.8310333
delta logL = -3.45403350366e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20850E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .92506       1.0000          .0000       10.000    
     3 'Normalizat'    1.0565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81693       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=   3298.831     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      214 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        10.545        .42118E-03** at limit **
   2  Index         2.6046        1.9218       -.45599E-04     .0000    
   3  Normalizat    1.0565        1.1953        .10287E-04    .72168E-04
   4  Prefactor     .81691        1.1651       -.25806E-05    .54571E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.60461
  Normalizat = 1.05649
  Prefactor  = 0.816911
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   3298.831     FROM HESSE     STATUS=FAILED         9 CALLS      223 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        10.545        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .76689        2.0796       -.45599E-04   -.49960    
   3  Normalizat    1.0565        1.1953        .10287E-04   -.91161    
   4  Prefactor     .81691        1.1651       -.25806E-05   -.99108    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 5.29623e-12
Minuit parameter uncertainties:
  1  2.90725e-06
  2  1.98919
  3  1.22803
  4  1.20341
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191763': 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) = 3298.83103325
delta logL = 9.65428625932e-09

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  0.000e+00  2.907e-06  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  2.605e+00  1.989e+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:  8.169e-01  1.203e+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:  1.056e+00  1.228e+00  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/191763/cmap_HighResolution_694742401_695001601_4FGL_J0937.1+5008_daily_bin1757.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.53e-03', job_status='DONE', photon_flux_upper_limit='9.75e-08', time_completed='2023-01-10 00:51:21.993299', job_id='191763', GAL2='0.82', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1673340681.99', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='9.65e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1757' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 10 00:51:22 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 191763: <4FGL_J0937.1+5008_daily_bin1757> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1757> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 10 00:35:19 2023
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 00:37:04 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 00:37:04 2023
Terminated at Tue Jan 10 00:51:22 2023
Results reported at Tue Jan 10 00:51:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1757 144.297 50.1437 694742401 695001601 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 :                                   647.21 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            963 sec.

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

