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


Performing analysis on: 4FGL_J0937.1+5008_daily_bin1755
RA = 144.297, Dec = 50.1437
tmin = 694224001, tmax = 694483201
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='819157', job_status='RUN', time_executed='2023-01-04 00:50:29.695438', time_epoch_executed='1672822229.7' WHERE source_name='4FGL J0937.1+5008' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819157

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819157/ft1_4FGL_J0937.1+5008_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819157/ft2_4FGL_J0937.1+5008_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819157/ft1_4FGL_J0937.1+5008_daily_bin1755.fits outfile=/scratch/kocevski/819157/ft1_filteredMKT_4FGL_J0937.1+5008_daily_bin1755.fits ra=144.297 dec=50.1437 rad=12.0 tmin=694224001.0 tmax=694483201.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.06
user 2.81
sys 0.20

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

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

Number of photons that the gtmktime cut: 18

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819157/ft1_filtered_4FGL_J0937.1+5008_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/819157/ft2_4FGL_J0937.1+5008_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/819157/ltcube_694224001_694483201_4FGL_J0937.1+5008_daily_bin1755.fits outfile=/scratch/kocevski/819157/expmap_694224001_694483201_4FGL_J0937.1+5008_daily_bin1755.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/819157/ltcube_694224001_694483201_4FGL_J0937.1+5008_daily_bin1755.fits
.....................!
real 194.13
user 188.32
sys 4.97

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/819157/ft1_filtered_4FGL_J0937.1+5008_daily_bin1755.fits scfile=/scratch/kocevski/819157/ft2_4FGL_J0937.1+5008_daily_bin1755.fits outfile=/scratch/kocevski/819157/cmap_694224001_694483201_4FGL_J0937.1+5008_daily_bin1755.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819157/ft1_filtered_4FGL_J0937.1+5008_daily_bin1755.fits scfile=/scratch/kocevski/819157/ft2_4FGL_J0937.1+5008_daily_bin1755.fits outfile=/scratch/kocevski/819157/cmap_HighResolution_694224001_694483201_4FGL_J0937.1+5008_daily_bin1755.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .55480E-05   1.0000          .0000       .10000E+07
     2 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     3 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12428E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
     7 'Prefactor '    .38097E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .80943E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .86545E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .77716E-09   1.0000          .0000       .10000E+07
    11 'Prefactor '    .31641E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.4759       1.0000          .0000       .10000E+07
    13 'Prefactor '    .48281E-01   1.0000          .0000       .10000E+07
    14 'Prefactor '    .62734E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .18002E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    .29976E-07   1.0000          .0000       .10000E+07
    17 'Prefactor '    .65292E-06   1.0000          .0000       .10000E+07
    18 'Prefactor '    .10615E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .55455E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    .18630E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    .23977E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .63838E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .49116E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .67168E-08   1.0000          .0000       .10000E+07
    25 'norm      '    .27756E-09   1.0000          .0000       .10000E+07
    26 'Prefactor '    .18707E-04   1.0000          .0000       .10000E+07
    27 'norm      '    .14766E-07   1.0000          .0000       .10000E+07
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90801E-10   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.

 FCN=   151.4780     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3703 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1016.6       -.68021E-04** at limit **
   2  norm          .10000E+07    .61905E+06    .19100E-02** at limit **
   3  norm          .10000E+07    .15462E+06    .12265E-03** at limit **
   4  Prefactor      .0000        1150.8        .34784E-04** at limit **
   5  Prefactor     .10000E+07    .15986E+06    .18871E-02** at limit **
   6  Prefactor     .10000E+07    50415.        .17407E-02** at limit **
   7  Prefactor      .0000        13679.       -.12354E-02** at limit **
   8  norm           .0000        455.74       -.71590E-04** at limit **
   9  Prefactor      .0000        3327.9       -.27024E-04** at limit **
  10  norm           .0000        390.27        .37093E-04** at limit **
  11  Prefactor      .0000        262.93       -.47480E-04** at limit **
  12  Prefactor     .25328E-05    .22452E+06   -.41012E-02** at limit **
  13  Prefactor     .12768E-08    7607.5       -.50990E-04** at limit **
  14  Prefactor      .0000        1331.6        .14075E-03** at limit **
  15  norm           .0000        137.21       -.12561E-04** at limit **
  16  Prefactor      .0000        191.55        .18843E-04** at limit **
  17  Prefactor      .0000        167.50        .17747E-05** at limit **
  18  Prefactor      .0000        325.83        .54540E-04** at limit **
  19  norm          .90217E-06    13775.       -.12373E-02** at limit **
  20  Prefactor      .0000        156.55       -.17184E-04** at limit **
  21  Prefactor     .55511E-10    3204.5        .37557E-05** at limit **
  22  norm           .0000        5.0560        .91188E-08** at limit **
  23  norm           .0000        60.470       -.32942E-08** at limit **
  24  Prefactor      .0000        28.563       -.18910E-08** at limit **
  25  norm           .0000        3.8986       -.24817E-09** at limit **
  26  Prefactor     .55511E-09    140.65        .20781E-04** at limit **
  27  norm           .0000        1.7178        .61816E-08** at limit **
  28  Normalizat    .10000E-01    .40144E-01    .13670E-06** at limit **
  29  Prefactor     .24702E-12    .55748E-01    .29279E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1e+06
  norm       = 1e+06
  Prefactor  = 0
  Prefactor  = 1e+06
  Prefactor  = 1e+06
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 2.53281e-06
  Prefactor  = 1.27676e-09
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  norm       = 9.02167e-07
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 0
  Prefactor  = 0
  norm       = 0
  Prefactor  = 5.55112e-10
  norm       = 0
  Normalizat = 0.01
  Prefactor  = 2.47025e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   151.4780     FROM HESSE     STATUS=OK           529 CALLS     4232 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1016.6        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E+07    .61905E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E+07    .15462E+06    .34789E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1150.8        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E+07    .15986E+06    .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E+07    50418.        .84235E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        13681.        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        455.75        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        3327.9        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        390.27        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        262.94        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .25328E-05    .22468E+06    .95137E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12768E-08    7607.8        .31219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1331.7        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm           .0000        137.21        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        191.55        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        167.50        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        325.84        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .90217E-06    13796.        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        156.55        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .55511E-10    3204.6        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        5.0566        .27070E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        60.472        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        28.563        .64342E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm           .0000        3.8986        .23771E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .55511E-09    140.68        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm           .0000        1.7182        .15779E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .10000E-01    .40142E-01    .76368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .24702E-12    .55748E-01    .89972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.47837e-11
Minuit parameter uncertainties:
  1  2.21665e-06
  2  0.0406597
  3  0.153817
  4  2.00973e-06
  5  0.0226148
  6  0.00941206
  7  8.35127e-05
  8  8.43564e-05
  9  0.000172217
  10  4.23956e-07
  11  2.65973e-06
  12  1.57185
  13  0.00624214
  14  1.14177e-05
  15  8.72814e-07
  16  8.57482e-07
  17  5.58883e-06
  18  1.01997e-05
  19  0.223645
  20  3.84397e-07
  21  0.000697015
  22  2.29181e-05
  23  3.97345e-05
  24  1.07459e-06
  25  3.44774e-07
  26  0.000562033
  27  6.87436e-06
  28  8.8199e-08
  29  2.34789e-07
Done.

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

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  0.000e+00  1.142e-05  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:  2.470e-13  2.348e-07  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.000e-02  8.820e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 144.297 50.144
Photon Flux Upper Limit: 1.42e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819157/likelihoodResults_694224001_694483201_4FGL_J0937.1+5008_daily_bin1755.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) = 151.47837011
delta logL = -0.000362780751544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 151.478007544
delta logL = -2.15074777543e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92190E-05   1.0000          .0000       .10000E+07
     2 'Index     '    2.9291       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .22944E-07   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=   151.4780     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      228 TOTAL
                     EDM=   .62E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24980E-07    742.77        .42118E-03** at limit **
   2  Index         1.4394        8.3706        .50000       -.85265E-11
   3  Normalizat    .10000E-01    .30670E-04    .32094E-01** at limit **
   4  Prefactor     .51953E-11    .42613E-04    .32078E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.498e-08
  Index      = 1.4394
  Normalizat = 0.01
  Prefactor  = 5.19529e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   151.4780     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      257 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24980E-07    3677.0        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4394        6.7041        .50000       -.79251    
   3  Normalizat    .10000E-01    .15243E-03    .76368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .51953E-11    .21179E-03    .89972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.06966e-11
Minuit parameter uncertainties:
  1  0.0191889
  2  238255
  3  3.58125e-09
  4  6.63439e-08
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819157': 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): 102
logL (Free Index) = 151.478007329
delta logL = -5.07043296238e-11

Extracting fit parameters...

4FGL J0937.1+5008
   Spectrum: PowerLaw
357    Prefactor:  2.498e-08  1.919e-02  0.000e+00  1.000e+06 ( 1.000e-13)
358        Index:  1.439e+00  2.383e+05  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:  5.195e-12  6.634e-08  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.000e-02  3.581e-09  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/819157/cmap_HighResolution_694224001_694483201_4FGL_J0937.1+5008_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e+00', job_status='DONE', photon_flux_upper_limit='1.42e-05', time_completed='2023-01-04 00:56:32.361075', job_id='819157', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1672822592.36', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-5.07e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1755' AND source_name='4FGL J0937.1+5008' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 00:56:32 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 819157: <4FGL_J0937.1+5008_daily_bin1755> in cluster <slac> Done

Job <4FGL_J0937.1+5008_daily_bin1755> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jan  4 00:45:39 2023
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:46:56 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:46:56 2023
Terminated at Wed Jan  4 00:56:33 2023
Results reported at Wed Jan  4 00:56:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0937.1+5008_daily_bin1755 144.297 50.1437 694224001 694483201 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 :                                   364.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            654 sec.

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

