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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1763
RA = 149.606, Dec = 50.7
tmin = 696297601, tmax = 696556801
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='276340', job_status='RUN', time_executed='2023-01-28 00:42:21.180722', time_epoch_executed='1674895341.18' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276340/ft1_4FGL_J0958.4+5042_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276340/ft2_4FGL_J0958.4+5042_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276340/ft1_4FGL_J0958.4+5042_daily_bin1763.fits outfile=/scratch/kocevski/276340/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1763.fits ra=149.606 dec=50.7 rad=12.0 tmin=696297601.0 tmax=696556801.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.69
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/276340/ft2_4FGL_J0958.4+5042_daily_bin1763.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/276340/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/276340/ft1_filtered_4FGL_J0958.4+5042_daily_bin1763.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 565

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276340/ft1_filtered_4FGL_J0958.4+5042_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/276340/ft2_4FGL_J0958.4+5042_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/276340/ltcube_696297601_696556801_4FGL_J0958.4+5042_daily_bin1763.fits outfile=/scratch/kocevski/276340/expmap_696297601_696556801_4FGL_J0958.4+5042_daily_bin1763.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/276340/ltcube_696297601_696556801_4FGL_J0958.4+5042_daily_bin1763.fits
.....................!
real 192.78
user 186.13
sys 5.62

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/276340/ft1_filtered_4FGL_J0958.4+5042_daily_bin1763.fits scfile=/scratch/kocevski/276340/ft2_4FGL_J0958.4+5042_daily_bin1763.fits outfile=/scratch/kocevski/276340/cmap_696297601_696556801_4FGL_J0958.4+5042_daily_bin1763.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.56
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276340/ft1_filtered_4FGL_J0958.4+5042_daily_bin1763.fits scfile=/scratch/kocevski/276340/ft2_4FGL_J0958.4+5042_daily_bin1763.fits outfile=/scratch/kocevski/276340/cmap_HighResolution_696297601_696556801_4FGL_J0958.4+5042_daily_bin1763.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.57
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.859       1.0000          .0000       .10000E+07
     2 'norm      '    .16712       1.0000          .0000       .10000E+07
     3 'norm      '    .56265E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    21.913       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11113E-02   1.0000          .0000       .10000E+07
     6 'norm      '    .95720E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15543E-08   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15288E-06   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.6514       1.0000          .0000       .10000E+07
    10 'Prefactor '    3.6570       1.0000          .0000       .10000E+07
    11 'Prefactor '    .51126E-03   1.0000          .0000       .10000E+07
    12 'norm      '    .37632E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    .64508E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .27200E-08   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.9263       1.0000          .0000       .10000E+07
    16 'norm      '    .26645E-08   1.0000          .0000       .10000E+07
    17 'Prefactor '    28.796       1.0000          .0000       .10000E+07
    18 'Prefactor '    27.212       1.0000          .0000       .10000E+07
    19 'norm      '    1.2608       1.0000          .0000       .10000E+07
    20 'norm      '    .97667E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .96867E-07   1.0000          .0000       .10000E+07
    22 'norm      '    4.5045       1.0000          .0000       .10000E+07
    23 'Prefactor '    33.870       1.0000          .0000       .10000E+07
    24 'norm      '    .92648E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .59275E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .61003E-02   1.0000          .0000       .10000E+07
    27 'norm      '    3.6635       1.0000          .0000       .10000E+07
    28 'norm      '    .67718E-06   1.0000          .0000       .10000E+07
    29 'Prefactor '    .14026E-04   1.0000          .0000       .10000E+07
    30 'norm      '    1.1152       1.0000          .0000       .10000E+07
    31 'Prefactor '    .25141       1.0000          .0000       .10000E+07
    32 'Prefactor '    .49921E-04   1.0000          .0000       .10000E+07
    33 'Prefactor '    .97259E-02   1.0000          .0000       .10000E+07
    34 'Normalizat'    .76102       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.2474       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=   6298.299     FROM MIGRAD    STATUS=CONVERGED    218 CALLS     2115 TOTAL
                     EDM=   .48E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.759        9.5621       -.27065E-07   -.47553E-02
   2  norm          .16472        22.062       -.25371E-06** at limit **
   3  norm          .21871E-07    3.8615       -.10243E-06** at limit **
   4  Prefactor     22.021        2.8253       -.75419E-08    .21909E-02
   5  Prefactor     .11990E-07    10.307       -.66107E-07** at limit **
   6  norm          .95395E-01    .34234        .90205E-10** at limit **
   7  Prefactor      .0000        2.3900        .46309E-07** at limit **
   8  Prefactor      .0000        1.0622        .48904E-07** at limit **
   9  Prefactor     3.6039        6.0116        .17769E-07    .25107E-04
  10  Prefactor     3.6561        3.2472        .38692E-08    .81168E-04
  11  Prefactor     .35139E-07    9.2081       -.13001E-06** at limit **
  12  norm          .55511E-10    8.0072        .56444E-07** at limit **
  13  Prefactor     .33307E-09    20.999       -.67922E-07** at limit **
  14  Prefactor      .0000        3.5072        .81856E-08** at limit **
  15  Prefactor     4.9090        5.7480        .32416E-07    .20725E-04
  16  norm           .0000        2.4976       -.23319E-07** at limit **
  17  Prefactor     27.147        13.945        .27242E-07    .38351E-01
  18  Prefactor     26.740        2.8747       -.31030E-08    .14795E-02
  19  norm          1.2603        .51095       -.63699E-08    .39828E-03
  20  norm          .16653E-09    5.0229        .87896E-07** at limit **
  21  Prefactor      .0000        1.7120       -.11281E-07** at limit **
  22  norm          4.5016        2.7047        .27054E-08    .91398E-04
  23  Prefactor     34.077        2.1435        .41051E-08    .78066E-02
  24  norm           .0000        3.6501       -.18475E-07** at limit **
  25  Prefactor     .16653E-09    5.6087       -.14378E-07** at limit **
  26  Prefactor     .37859E-07    1.2124       -.26405E-07** at limit **
  27  norm          3.6615        1.8977        .13839E-07   -.12362E-03
  28  norm           .0000        .90369        .20136E-07** at limit **
  29  Prefactor     .76605E-08    33.145       -.13337E-06** at limit **
  30  norm          1.1146        1.2259       -.12311E-07    .10072E-03
  31  Prefactor     .12212E-08    4.2872        .13079E-08** at limit **
  32  Prefactor     .46574E-07    5.1453       -.10854E-06** at limit **
  33  Prefactor     .72103E-06    56.891        .18195E-06** at limit **
  34  Normalizat    .76270        .18163       -.64531E-06    .74253E-05
  35  Prefactor     1.2469        .23083       -.10765E-06    .69320E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7593
  norm       = 0.164717
  norm       = 2.18714e-08
  Prefactor  = 22.0209
  Prefactor  = 1.19904e-08
  norm       = 0.0953951
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.60389
  Prefactor  = 3.65609
  Prefactor  = 3.51386e-08
  norm       = 5.55112e-11
  Prefactor  = 3.33067e-10
  Prefactor  = 0
  Prefactor  = 4.90901
  norm       = 0
  Prefactor  = 27.1471
  Prefactor  = 26.7395
  norm       = 1.26034
  norm       = 1.66533e-10
  Prefactor  = 0
  norm       = 4.50161
  Prefactor  = 34.0767
  norm       = 0
  Prefactor  = 1.66533e-10
  Prefactor  = 3.78586e-08
  norm       = 3.66153
  norm       = 0
  Prefactor  = 7.66054e-09
  norm       = 1.11463
  Prefactor  = 1.22125e-09
  Prefactor  = 4.65739e-08
  Prefactor  = 7.21034e-07
  Normalizat = 0.762699
  Prefactor  = 1.24694
 **********
 **   18 **HESSE 
 **********

 FCN=   6298.299     FROM HESSE     STATUS=OK           846 CALLS     2961 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.759        10.726        .25957E-03   -1.5631    
   2  norm          .16472        2.4599        .71189E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .21871E-07    14.281        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.021        14.554        .21368E-03   -1.5614    
   5  Prefactor     .11990E-07    15.606        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .95395E-01    .30196        .14046E-02   -1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.3563        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        1.0565        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.6039        6.0361        .52840E-03   -1.5670    
  10  Prefactor     3.6561        3.2609        .52798E-03   -1.5670    
  11  Prefactor     .35139E-07    13.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    8.0463        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .33307E-09    21.730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        3.5034        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9090        5.7771        .45291E-03   -1.5664    
  16  norm           .0000        2.5056        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.147        38.641        .18638E-03   -1.5604    
  18  Prefactor     26.740        27.125        .19173E-03   -1.5605    
  19  norm          1.2603        .51810        .78852E-03   -1.5686    
  20  norm          .16653E-09    5.1844        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        1.7116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.5016        2.7144        .47414E-03   -1.5666    
  23  Prefactor     34.077        28.762        .17185E-03   -1.5591    
  24  norm           .0000        3.6553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .16653E-09    5.6235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .37859E-07    2.8201        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6615        1.8975        .52749E-03   -1.5670    
  28  norm           .0000        .88666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .76605E-08    33.847        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          1.1146        1.2275        .11150E-02   -1.5687    
  31  Prefactor     .12212E-08    33.083        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .46574E-07    14.196        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .72103E-06    64.555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .76270        .15969        .43099E-01   -1.0147    
  35  Prefactor     1.2469        .19522        .58302E-01   -.84899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05157e-07
Minuit parameter uncertainties:
  1  10.7265
  2  1.27308
  3  0.00111829
  4  14.554
  5  0.000864956
  6  0.301958
  7  1.80006e-06
  8  1.39081e-07
  9  6.03611
  10  3.26088
  11  0.00135396
  12  4.25742e-05
  13  0.000175368
  14  3.97067e-06
  15  5.77712
  16  3.00142e-06
  17  38.6413
  18  27.1252
  19  0.518096
  20  5.42932e-05
  21  1.72345e-06
  22  2.71444
  23  28.762
  24  1.12613e-05
  25  5.9692e-05
  26  0.000653458
  27  1.89753
  28  2.52955e-07
  29  0.00101672
  30  1.22747
  31  0.000399974
  32  0.00162612
  33  0.013645
  34  0.159784
  35  0.195332
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  1.723e-06  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.247e+00  1.953e-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:  7.627e-01  1.598e-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: 4.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276340/likelihoodResults_696297601_696556801_4FGL_J0958.4+5042_daily_bin1763.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) = 6298.29923896
delta logL = -0.000521968107023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6298.29871701
delta logL = -1.75868990482e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13156E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.2584       1.0000          .0000       10.000    
     3 'Normalizat'    .76271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2469       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=   6298.299     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      258 TOTAL
                     EDM=   .71E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .20652        .42118E-03** at limit **
   2  Index         4.3639        1.6247        .38638E-05     .0000    
   3  Normalizat    .76270        1.1021        .52264E-05    .51641E-06
   4  Prefactor     1.2469        1.0894       -.47786E-05   -.59780E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 4.36391
  Normalizat = 0.762699
  Prefactor  = 1.24694
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6298.299     FROM HESSE     STATUS=FAILED         9 CALLS      267 TOTAL
                     EDM=   .71E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .20652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0238        2.3752        .38638E-05   -.12756    
   3  Normalizat    .76270        1.1021        .52264E-05   -1.0147    
   4  Prefactor     1.2469        1.0894       -.47786E-05   -.84899    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.14743e-13
Minuit parameter uncertainties:
  1  4.32624e-07
  2  1.6553
  3  1.13705
  4  1.11022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276340': 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) = 6298.29871699
delta logL = 0.0

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  4.326e-07  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  4.364e+00  1.655e+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:  1.247e+00  1.110e+00  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:  7.627e-01  1.137e+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/276340/cmap_HighResolution_696297601_696556801_4FGL_J0958.4+5042_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='4.82e-08', time_completed='2023-01-28 00:56:21.459961', job_id='276340', GAL2='1.25', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1674896181.46', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='0.00e+00', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1763' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 00:56:21 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 276340: <4FGL_J0958.4+5042_daily_bin1763> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1763> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jan 28 00:40:24 2023
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 00:41:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 00:41:21 2023
Terminated at Sat Jan 28 00:56:22 2023
Results reported at Sat Jan 28 00:56:22 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1763 149.606 50.7 696297601 696556801 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 :                                   839.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            958 sec.

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

