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_bin1745
RA = 149.606, Dec = 50.7
tmin = 691632001, tmax = 691891201
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='642934', job_status='RUN', time_executed='2022-12-05 00:26:26.480336', time_epoch_executed='1670228786.48' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642934/ft1_4FGL_J0958.4+5042_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642934/ft1_4FGL_J0958.4+5042_daily_bin1745.fits outfile=/scratch/kocevski/642934/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1745.fits ra=149.606 dec=50.7 rad=12.0 tmin=691632001.0 tmax=691891201.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.37
user 2.16
sys 0.18

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

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

Number of photons that the gtmktime cut: 508

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642934/ft1_filtered_4FGL_J0958.4+5042_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/642934/ltcube_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.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/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits
.....................!
real 12.70
user 12.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642934/ft1_filtered_4FGL_J0958.4+5042_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/642934/ltcube_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.fits outfile=/scratch/kocevski/642934/expmap_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.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/642934/ltcube_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.fits
.....................!
real 191.03
user 185.69
sys 4.95

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/642934/ft1_filtered_4FGL_J0958.4+5042_daily_bin1745.fits scfile=/scratch/kocevski/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits outfile=/scratch/kocevski/642934/cmap_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642934/ft1_filtered_4FGL_J0958.4+5042_daily_bin1745.fits scfile=/scratch/kocevski/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits outfile=/scratch/kocevski/642934/cmap_HighResolution_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/642934/ft1_filtered_4FGL_J0958.4+5042_daily_bin1745.fits', '/scratch/kocevski/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits', expMap='/scratch/kocevski/642934/expmap_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.fits', expCube='/scratch/kocevski/642934/ltcube_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/642934/Model_4FGL_J0958.4+5042_daily_bin1745.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/642934/ft1_filtered_4FGL_J0958.4+5042_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/642934/ft2_4FGL_J0958.4+5042_daily_bin1745.fits
Exposure map: /scratch/kocevski/642934/expmap_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.fits
Exposure cube: /scratch/kocevski/642934/ltcube_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/642934/Model_4FGL_J0958.4+5042_daily_bin1745.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) = 5579.03312279

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.873       1.0000          .0000       .10000E+07
     2 'norm      '    .31167E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .69167E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .64115E-07   1.0000          .0000       .10000E+07
     5 'Prefactor '    .11065E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .49183E-07   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.0703       1.0000          .0000       .10000E+07
     8 'Prefactor '    .40135E-07   1.0000          .0000       .10000E+07
     9 'Prefactor '    1.3664       1.0000          .0000       .10000E+07
    10 'Prefactor '    .53248E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    .38846E-05   1.0000          .0000       .10000E+07
    12 'norm      '    .86276E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .85657E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .19775E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    17.484       1.0000          .0000       .10000E+07
    16 'norm      '    .23573E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    39.853       1.0000          .0000       .10000E+07
    18 'Prefactor '    15.704       1.0000          .0000       .10000E+07
    19 'norm      '    2.2105       1.0000          .0000       .10000E+07
    20 'norm      '    24.253       1.0000          .0000       .10000E+07
    21 'Prefactor '    .26363E-03   1.0000          .0000       .10000E+07
    22 'norm      '    2.9740       1.0000          .0000       .10000E+07
    23 'Prefactor '    12.773       1.0000          .0000       .10000E+07
    24 'norm      '    4.9136       1.0000          .0000       .10000E+07
    25 'Prefactor '    .82878E-07   1.0000          .0000       .10000E+07
    26 'Prefactor '    .10497E-05   1.0000          .0000       .10000E+07
    27 'norm      '    2.4184       1.0000          .0000       .10000E+07
    28 'norm      '    .86759       1.0000          .0000       .10000E+07
    29 'Prefactor '    .53835       1.0000          .0000       .10000E+07
    30 'norm      '    3.2647       1.0000          .0000       .10000E+07
    31 'Prefactor '    55.775       1.0000          .0000       .10000E+07
    32 'Prefactor '    25.701       1.0000          .0000       .10000E+07
    33 'Prefactor '    50.642       1.0000          .0000       .10000E+07
    34 'Normalizat'    1.2863       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .56389       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=   5578.876     FROM MIGRAD    STATUS=CONVERGED    302 CALLS     3760 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.917        14.634        .11377E-06    .60075E-02
   2  norm          .11102E-09    5.3902        .79013E-06** at limit **
   3  norm          .55511E-10    4.6808       -.42811E-06** at limit **
   4  Prefactor     .11102E-09    8.3161        .27126E-06** at limit **
   5  Prefactor     .59952E-08    17.519        .19055E-06** at limit **
   6  norm           .0000        1.7084        .24466E-06** at limit **
   7  Prefactor     8.0994        3.8678        .43198E-06    .30805E-03
   8  Prefactor      .0000        1.3510       -.72736E-07** at limit **
   9  Prefactor     1.4002        17.414       -.50362E-05   -.11338E-02
  10  Prefactor      .0000        3.3701       -.19708E-06** at limit **
  11  Prefactor     .57748E-06    42.798        .20946E-05** at limit **
  12  norm          .36637E-08    18.418       -.19647E-06** at limit **
  13  Prefactor     .46174E-06    49.754        .45452E-05** at limit **
  14  Prefactor     .55511E-10    3.0561       -.99480E-07** at limit **
  15  Prefactor     17.616        9.1203       -.38351E-06   -.31287E-02
  16  norm           .0000        3.0378        .57619E-06** at limit **
  17  Prefactor     39.361        25.336       -.10662E-05    .39289E-01
  18  Prefactor     15.478        20.198       -.16050E-05   -.73666E-01
  19  norm          2.2151        .71511        .19796E-07    .58175E-03
  20  norm          24.338        15.833        .32408E-05    .37101E-01
  21  Prefactor     .30087E-07    7.0973       -.40440E-05** at limit **
  22  norm          2.9796        2.3060       -.56424E-07   -.10613E-02
  23  Prefactor     12.513        6.5215        .40703E-06    .50622E-01
  24  norm          5.1350        8.4390        .47041E-06    .18761E-03
  25  Prefactor     .14766E-07    6.7881        .30704E-05** at limit **
  26  Prefactor      .0000        1.9583        .54085E-06** at limit **
  27  norm          2.4232        1.6413       -.13790E-06   -.27551E-02
  28  norm          .86939        .85878        .13334E-06    .12286E-02
  29  Prefactor     .62246E-03    371.46        .31864E-04** at limit **
  30  norm          3.2789        2.1440       -.12765E-06    .38828E-02
  31  Prefactor     57.339        40.366       -.23087E-05   -.13911    
  32  Prefactor     25.221        20.143       -.75965E-06   -.98244E-01
  33  Prefactor     75.331        130.76        .64048E-05   -.28660E-02
  34  Normalizat    1.2846        .22736        .63196E-05    .26788E-04
  35  Prefactor     .56118        .25500       -.24433E-04    .33324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.9173
  norm       = 1.11022e-10
  norm       = 5.55112e-11
  Prefactor  = 1.11022e-10
  Prefactor  = 5.9952e-09
  norm       = 0
  Prefactor  = 8.09938
  Prefactor  = 0
  Prefactor  = 1.4002
  Prefactor  = 0
  Prefactor  = 5.77483e-07
  norm       = 3.66374e-09
  Prefactor  = 4.61742e-07
  Prefactor  = 5.55112e-11
  Prefactor  = 17.616
  norm       = 0
  Prefactor  = 39.3611
  Prefactor  = 15.4779
  norm       = 2.21511
  norm       = 24.3377
  Prefactor  = 3.0087e-08
  norm       = 2.97961
  Prefactor  = 12.513
  norm       = 5.13498
  Prefactor  = 1.4766e-08
  Prefactor  = 0
  norm       = 2.42322
  norm       = 0.869394
  Prefactor  = 0.000622456
  norm       = 3.27886
  Prefactor  = 57.3394
  Prefactor  = 25.2211
  Prefactor  = 75.331
  Normalizat = 1.28462
  Prefactor  = 0.561181
 **********
 **   18 **HESSE 
 **********

 FCN=   5578.876     FROM HESSE     STATUS=OK           850 CALLS     4610 TOTAL
                     EDM=   .40E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.917        14.649        .22439E-03   -1.5619    
   2  norm          .11102E-09    5.3995        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .55511E-10    4.6880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .11102E-09    8.3412        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .59952E-08    17.519        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        .47788        .25610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0994        4.7470        .35269E-03   -1.5651    
   8  Prefactor      .0000        1.3496        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4002        17.562        .93300E-03   -1.5684    
  10  Prefactor      .0000        3.3674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .57748E-06    42.769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .36637E-08    18.356        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .46174E-06    51.527        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    3.0578        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.616        9.1327        .23925E-03   -1.5624    
  16  norm           .0000        3.0414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.361        46.135        .15842E-03   -1.5582    
  18  Prefactor     15.478        38.430        .25247E-03   -1.5629    
  19  norm          2.2151        .72768        .69156E-03   -1.5678    
  20  norm          24.338        15.851        .20310E-03   -1.5609    
  21  Prefactor     .30087E-07    7.0161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.9796        2.3091        .58850E-03   -1.5673    
  23  Prefactor     12.513        31.500        .28002E-03   -1.5637    
  24  norm          5.1350        8.4421        .45351E-03   -1.5663    
  25  Prefactor     .14766E-07    6.8009        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor      .0000        1.9528        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.4232        1.6398        .65792E-03   -1.5677    
  28  norm          .86939        .85549        .48027E-03   -1.5689    
  29  Prefactor     .62246E-03    568.55        .74942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          3.2789        2.2432        .56023E-03   -1.5672    
  31  Prefactor     57.339        54.331        .13391E-03   -1.5557    
  32  Prefactor     25.221        37.396        .19730E-03   -1.5608    
  33  Prefactor     75.331        130.32        .14053E-03   -1.5534    
  34  Normalizat    1.2846        .19939        .49066E-01   -.84027    
  35  Prefactor     .56118        .22236        .84752E-01   -1.0925    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.97798e-06
Minuit parameter uncertainties:
  1  14.6491
  2  4.56986e-05
  3  2.63315e-05
  4  5.71122e-05
  5  0.000649204
  6  3.19978e-06
  7  4.74703
  8  3.51893e-06
  9  9.91765
  10  1.44587e-05
  11  0.00993932
  12  0.000518825
  13  0.00975539
  14  2.54854e-05
  15  9.13269
  16  2.87748e-06
  17  46.1353
  18  38.4305
  19  0.72768
  20  15.8514
  21  0.000919173
  22  2.30907
  23  31.5006
  24  8.44209
  25  0.000633392
  26  3.19033e-06
  27  1.63982
  28  0.855491
  29  1.1899
  30  2.24317
  31  54.3311
  32  37.3961
  33  130.321
  34  0.199511
  35  0.222712
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  3.009e-08  9.192e-04  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:  5.612e-01  2.227e-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:  1.285e+00  1.995e-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: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/642934/likelihoodResults_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.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) = 5578.8766893
delta logL = -0.000608573034697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5578.87608094
delta logL = -2.16356966121e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5578.876     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      262 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.2511        .42118E-03** at limit **
   2  Index         3.0693        1.2794       -.87408E-04     .0000    
   3  Normalizat    1.2846        1.0827        .12754E-04    .52466E-03
   4  Prefactor     .56119        .90732       -.69895E-04    .60910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.06929
  Normalizat = 1.28462
  Prefactor  = 0.56119
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   5578.876     FROM HESSE     STATUS=FAILED         9 CALLS      271 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.2511        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0634        2.0816       -.87408E-04   -.39645    
   3  Normalizat    1.2846        1.0827        .12754E-04   -.84027    
   4  Prefactor     .56119        .90732       -.69895E-04   -1.0925    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.27835e-10
Minuit parameter uncertainties:
  1  3.38526e-06
  2  1.29638
  3  1.10274
  4  0.932632
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642934': 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) = 5578.87608072
delta logL = 1.30148691824e-09

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  3.385e-06  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  3.069e+00  1.296e+00  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:  5.612e-01  9.326e-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:  1.285e+00  1.103e+00  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/642934/cmap_HighResolution_691632001_691891201_4FGL_J0958.4+5042_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2022-12-05 00:41:47.973126', job_id='642934', GAL2='0.56', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1670229707.97', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='1.30e-09', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1745' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:41:48 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 642934: <4FGL_J0958.4+5042_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1745> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Mon Dec  5 00:25:19 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:25:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:25:20 2022
Terminated at Mon Dec  5 00:41:49 2022
Results reported at Mon Dec  5 00:41:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1745 149.606 50.7 691632001 691891201 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 :                                   923.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

