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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1772
RA = 149.606, Dec = 50.7
tmin = 698630401, tmax = 698889601
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='627187', job_status='RUN', time_executed='2023-02-24 01:16:23.466160', time_epoch_executed='1677230183.47' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1772'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627187/ft1_4FGL_J0958.4+5042_daily_bin1772.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627187/ft1_4FGL_J0958.4+5042_daily_bin1772.fits outfile=/scratch/kocevski/627187/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1772.fits ra=149.606 dec=50.7 rad=12.0 tmin=698630401.0 tmax=698889601.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.01
user 2.82
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.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/627187/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1772.fits evtable="EVENTS" outfile="/scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 59

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits" evtable="EVENTS" scfile=/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits sctable="SC_DATA" outfile=/scratch/kocevski/627187/ltcube_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.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/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits
.....................!
real 13.03
user 12.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits sctable="SC_DATA" expcube=/scratch/kocevski/627187/ltcube_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.fits outfile=/scratch/kocevski/627187/expmap_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.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/627187/ltcube_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.fits
.....................!
real 191.83
user 185.87
sys 5.61

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 231 point sources and 0 extended sources

Setting source of interest to:
4FGL J0958.4+5042 @ 149.606 50.7

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits scfile=/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits outfile=/scratch/kocevski/627187/cmap_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.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=149.606 yref=50.7 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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits scfile=/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits outfile=/scratch/kocevski/627187/cmap_HighResolution_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.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=149.606 yref=50.7 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits evtable="EVENTS" scfile=/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627187/Model_4FGL_J0958.4+5042_daily_bin1772.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/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits..............................!
real 19.79
user 18.58
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits', '/scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits', expMap='/scratch/kocevski/627187/expmap_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.fits', expCube='/scratch/kocevski/627187/ltcube_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/627187/Model_4FGL_J0958.4+5042_daily_bin1772.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0958.4+5042'

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.235e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/627187/ft1_filtered_4FGL_J0958.4+5042_daily_bin1772.fits
Spacecraft file(s): /scratch/kocevski/627187/ft2_4FGL_J0958.4+5042_daily_bin1772.fits
Exposure map: /scratch/kocevski/627187/expmap_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.fits
Exposure cube: /scratch/kocevski/627187/ltcube_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/627187/Model_4FGL_J0958.4+5042_daily_bin1772.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) = 673.723788532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8872       1.0000          .0000       .10000E+07
     2 'norm      '    .22165E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .21316E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .81973E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    14.596       1.0000          .0000       .10000E+07
     6 'norm      '    4.3317       1.0000          .0000       .10000E+07
     7 'Prefactor '    .18929E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .27756E-09   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11149E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .36381E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .14599E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .61624E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    38.236       1.0000          .0000       .10000E+07
    14 'Prefactor '    14.529       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13046E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .34972E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    .69484E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .28311E-08   1.0000          .0000       .10000E+07
    19 'norm      '     .0000       1.0000          .0000       .10000E+07
    20 'norm      '    .27200E-08   1.0000          .0000       .10000E+07
    21 'Prefactor '    .88818E-09   1.0000          .0000       .10000E+07
    22 'norm      '    .21073E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .77827E-07   1.0000          .0000       .10000E+07
    24 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    25 'Prefactor '    .28850E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    27 'norm      '    10.280       1.0000          .0000       .10000E+07
    28 'norm      '    .55855E-06   1.0000          .0000       .10000E+07
    29 'Prefactor '    .10000E+07   1.0000          .0000       .10000E+07
    30 'norm      '    .28691E-03   1.0000          .0000       .10000E+07
    31 'Prefactor '    .16872E-02   1.0000          .0000       .10000E+07
    32 'Prefactor '    .31568E-03   1.0000          .0000       .10000E+07
    33 'Prefactor '    .12495E-02   1.0000          .0000       .10000E+07
    34 'Normalizat'    .24121       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .12606       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   618.9122     FROM MIGRAD    STATUS=CONVERGED    289 CALLS     5533 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8863        8.9206        .10154E-07   -.26628E-03
   2  norm           .0000        14.643        .19988E-07** at limit **
   3  norm           .0000        6.6058        .35929E-07** at limit **
   4  Prefactor      .0000        5.9509       -.38426E-08** at limit **
   5  Prefactor     14.583        40.777       -.26498E-06    .40495E-01
   6  norm          4.3315        2.4527       -.45358E-07   -.20887E-02
   7  Prefactor      .0000        14.052        .38441E-07** at limit **
   8  Prefactor      .0000        8.0384        .98010E-08** at limit **
   9  Prefactor      .0000        14.945       -.39693E-08** at limit **
  10  Prefactor      .0000        7.5691       -.14103E-08** at limit **
  11  Prefactor     .61062E-09    40.023       -.78098E-07** at limit **
  12  norm          .33477E-02    523.48       -.42872E-05** at limit **
  13  Prefactor     37.942        8.7832       -.10894E-06    .79660E-02
  14  Prefactor     14.533        13.311       -.21826E-07    .12316E-02
  15  Prefactor      .0000        10.623       -.86057E-08** at limit **
  16  norm           .0000        9.3007        .11485E-07** at limit **
  17  Prefactor     .10233E-03    345.16       -.25509E-05** at limit **
  18  Prefactor      .0000        30.165        .34464E-07** at limit **
  19  norm           .0000        .62352       -.18096E-09** at limit **
  20  norm          .19811E-04    51.929       -.11925E-06** at limit **
  21  Prefactor      .0000        24.168        .58618E-07** at limit **
  22  norm          .48218E-05    99.268        .27239E-06** at limit **
  23  Prefactor     .54605E-05    105.85       -.12644E-07** at limit **
  24  norm          .10000E+07    4.3273        .23887E-06   -.53551E-02
  25  Prefactor     .27756E-09    50.459       -.61904E-07** at limit **
  26  Prefactor     .10000E+07    33.761        .67562E-06   -.14442E-01
  27  norm          10.281        10.945        .14757E-07    .16084E-03
  28  norm          .16653E-09    25.564       -.61427E-07** at limit **
  29  Prefactor     .10000E+07    7.7930        .32176E-06   -.71512E-02
  30  norm          .14057E-02    605.02       -.15676E-05** at limit **
  31  Prefactor     .52892        174.11       -.15641E-05    .29829E-01
  32  Prefactor     .12103E-02    874.56       -.48511E-05** at limit **
  33  Prefactor     .47698        224.97       -.17875E-05    .32970E-01
  34  Normalizat    .24130        .32618       -.85391E-05   -.16558E-04
  35  Prefactor     .12597        .36547        .12273E-04   -.46234E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88634
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Prefactor  = 14.5826
  norm       = 4.3315
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 6.10623e-10
  norm       = 0.00334771
  Prefactor  = 37.9418
  Prefactor  = 14.5326
  Prefactor  = 0
  norm       = 0
  Prefactor  = 0.000102332
  Prefactor  = 0
  norm       = 0
  norm       = 1.98114e-05
  Prefactor  = 0
  norm       = 4.82181e-06
  Prefactor  = 5.46052e-06
  norm       = 999999
  Prefactor  = 2.77556e-10
  Prefactor  = 999999
  norm       = 10.2812
  norm       = 1.66533e-10
  Prefactor  = 999999
  norm       = 0.00140571
  Prefactor  = 0.528924
  Prefactor  = 0.0012103
  Prefactor  = 0.476983
  Normalizat = 0.241302
  Prefactor  = 0.125974
 **********
 **   18 **HESSE 
 **********

 FCN=   618.9122     FROM HESSE     STATUS=OK           820 CALLS     6353 TOTAL
                     EDM=   .14E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8863        8.9425        .35680E-03   -1.5652    
   2  norm           .0000        14.582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        6.5964        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        5.9554        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.583        43.167        .26190E-03   -1.5632    
   6  norm          4.3315        2.6135        .48375E-03   -1.5666    
   7  Prefactor      .0000        14.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        8.0417        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        14.945        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        7.5658        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .61062E-09    40.022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33477E-02    1333.2        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     37.942        1394.8        .16174E-03   -1.5585    
  14  Prefactor     14.533        13.448        .26251E-03   -1.5632    
  15  Prefactor      .0000        10.621        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        9.3032        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10233E-03    993.55        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        30.172        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .62305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .19811E-04    125.33        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        24.163        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .48218E-05    130.93        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .54605E-05    115.51        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E+07    85154.        .42118E-03    1.5689    
  25  Prefactor     .27756E-09    50.453        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E+07    29826.        .42118E-03    1.5691    
  27  norm          10.281        10.946        .31226E-03   -1.5644    
  28  norm          .16653E-09    25.559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E+07    63367.        .42118E-03    1.5689    
  30  norm          .14057E-02    899.45        .42118E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .52892        12141.        .42118E-03   -1.5693    
  32  Prefactor     .12103E-02    1596.5        .42118E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .47698        10437.        .42118E-03   -1.5694    
  34  Normalizat    .24130        .31045        .60714E-01   -1.2653    
  35  Prefactor     .12597        .35877        .87600E-01   -1.3458    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000143164
Minuit parameter uncertainties:
  1  8.94251
  2  1.11591e-05
  3  5.02651e-07
  4  4.89368e-06
  5  43.168
  6  2.61345
  7  1.32426e-05
  8  7.68927e-06
  9  2.26866e-05
  10  8.77103e-06
  11  0.000307322
  12  4.2262
  13  460.214
  14  13.4476
  15  1.48093e-05
  16  9.01712e-06
  17  0.637825
  18  5.15822e-05
  19  7.26261e-08
  20  0.0996601
  21  1.92132e-05
  22  0.0502525
  23  0.0502296
  24  556.204
  25  0.000238082
  26  302.088
  27  10.9456
  28  0.000134693
  29  471.333
  30  2.24922
  31  160.597
  32  2.78087
  33  141.361
  34  0.312706
  35  0.365265
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  1.921e-05  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  2.663e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.260e-01  3.653e-01  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  2.413e-01  3.127e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 149.606 50.700
Photon Flux Upper Limit: 8.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.98e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627187/likelihoodResults_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.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) = 618.912649274
delta logL = -0.000418631410753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 618.912234161
delta logL = -3.51829942247e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61448E-04   1.0000          .0000       .10000E+07
     2 'Index     '    .92997       1.0000          .0000       10.000    
     3 'Normalizat'    .24127       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .12603       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7370E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   618.9122     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      237 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12546E-07    24.186       -.34301E-05** at limit **
   2  Index         2.6180        5.5324        .22331E-03    .53310E-09
   3  Normalizat    .24129        .31949        .32602E-04   -.27754E-03
   4  Prefactor     .12598        .34599       -.15266E-04   -.84535E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25455e-08
  Index      = 2.61799
  Normalizat = 0.24129
  Prefactor  = 0.125982
 **********
 **   18 **HESSE 
 **********

 FCN=   618.9122     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      274 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12546E-07    3.8623        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6180        8.3357        .45386       -.49656    
   3  Normalizat    .24129        .29367E-02    .60715E-01   -1.2653    
   4  Prefactor     .12598        .31539E-02    .87597E-01   -1.3458    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1957e-10
Minuit parameter uncertainties:
  1  0.00044066
  2  16451.1
  3  0.00293667
  4  0.00315387
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627187': 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) = 618.912230644
delta logL = -1.04569153336e-09

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  1.255e-08  4.407e-04  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  2.618e+00  1.645e+04  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
734    Prefactor:  1.260e-01  3.154e-03  0.000e+00  1.000e+01 ( 1.000e+00)
735        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
736        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
733   Normalization:  2.413e-01  2.937e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 149.606 50.700

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/627187/cmap_HighResolution_698630401_698889601_4FGL_J0958.4+5042_daily_bin1772.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.98e-02', job_status='DONE', photon_flux_upper_limit='8.88e-07', time_completed='2023-02-24 01:23:34.950146', job_id='627187', GAL2='0.13', fit_tolerance='1e-08', EG2='0.24', EG='0.24', time_epoch_completed='1677230614.95', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.13', dlogl='-1.05e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1772' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb 24 01:23:34 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 627187: <4FGL_J0958.4+5042_daily_bin1772> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1772> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Feb 24 01:15:16 2023
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb 24 01:15:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb 24 01:15:17 2023
Terminated at Fri Feb 24 01:23:36 2023
Results reported at Fri Feb 24 01:23:36 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1772 149.606 50.7 698630401 698889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0958.4+5042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   430.00 sec.
    Max Memory :                                 1000 MB
    Average Memory :                             242.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   498 sec.
    Turnaround time :                            500 sec.

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

