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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1754
RA = 149.606, Dec = 50.7
tmin = 693964801, tmax = 694224001
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='640573', job_status='RUN', time_executed='2023-01-01 01:02:21.380177', time_epoch_executed='1672563741.38' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640573

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640573/ft1_4FGL_J0958.4+5042_daily_bin1754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640573/ft2_4FGL_J0958.4+5042_daily_bin1754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640573/ft1_4FGL_J0958.4+5042_daily_bin1754.fits outfile=/scratch/kocevski/640573/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1754.fits ra=149.606 dec=50.7 rad=12.0 tmin=693964801.0 tmax=694224001.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.95
user 3.66
sys 0.24

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

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

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

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

Number of photons that the gtmktime cut: 233

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640573/ft1_filtered_4FGL_J0958.4+5042_daily_bin1754.fits evtable="EVENTS" scfile=/scratch/kocevski/640573/ft2_4FGL_J0958.4+5042_daily_bin1754.fits sctable="SC_DATA" expcube=/scratch/kocevski/640573/ltcube_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.fits outfile=/scratch/kocevski/640573/expmap_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.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/640573/ltcube_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.fits
.....................!
real 193.78
user 187.94
sys 5.38

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/640573/ft1_filtered_4FGL_J0958.4+5042_daily_bin1754.fits scfile=/scratch/kocevski/640573/ft2_4FGL_J0958.4+5042_daily_bin1754.fits outfile=/scratch/kocevski/640573/cmap_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640573/ft1_filtered_4FGL_J0958.4+5042_daily_bin1754.fits scfile=/scratch/kocevski/640573/ft2_4FGL_J0958.4+5042_daily_bin1754.fits outfile=/scratch/kocevski/640573/cmap_HighResolution_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.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.56
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640573/ft1_filtered_4FGL_J0958.4+5042_daily_bin1754.fits', '/scratch/kocevski/640573/ft2_4FGL_J0958.4+5042_daily_bin1754.fits', expMap='/scratch/kocevski/640573/expmap_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.fits', expCube='/scratch/kocevski/640573/ltcube_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640573/Model_4FGL_J0958.4+5042_daily_bin1754.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/640573/ft1_filtered_4FGL_J0958.4+5042_daily_bin1754.fits
Spacecraft file(s): /scratch/kocevski/640573/ft2_4FGL_J0958.4+5042_daily_bin1754.fits
Exposure map: /scratch/kocevski/640573/expmap_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.fits
Exposure cube: /scratch/kocevski/640573/ltcube_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640573/Model_4FGL_J0958.4+5042_daily_bin1754.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2513.01876154

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.536       1.0000          .0000       .10000E+07
     2 'norm      '    .17452E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .27189E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    9.0386       1.0000          .0000       .10000E+07
     5 'Prefactor '    .98406       1.0000          .0000       .10000E+07
     6 'norm      '    .88818E-09   1.0000          .0000       .10000E+07
     7 'Prefactor '    7.1617       1.0000          .0000       .10000E+07
     8 'Prefactor '    1.2353       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.7187       1.0000          .0000       .10000E+07
    10 'Prefactor '    .79936E-08   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.2097       1.0000          .0000       .10000E+07
    12 'norm      '    .19036E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    8.9443       1.0000          .0000       .10000E+07
    14 'Prefactor '    .60518E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    18.977       1.0000          .0000       .10000E+07
    16 'norm      '    .22697E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .28085       1.0000          .0000       .10000E+07
    18 'Prefactor '    .44057E-03   1.0000          .0000       .10000E+07
    19 'norm      '    1.7975       1.0000          .0000       .10000E+07
    20 'norm      '    .10060E-02   1.0000          .0000       .10000E+07
    21 'Prefactor '    .65629E-03   1.0000          .0000       .10000E+07
    22 'norm      '    3.9736       1.0000          .0000       .10000E+07
    23 'Prefactor '    .15185E-01   1.0000          .0000       .10000E+07
    24 'norm      '    .41857E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .53920E-01   1.0000          .0000       .10000E+07
    26 'Prefactor '    8.9846       1.0000          .0000       .10000E+07
    27 'norm      '    8.8607       1.0000          .0000       .10000E+07
    28 'norm      '    .66946E-07   1.0000          .0000       .10000E+07
    29 'Prefactor '    .32501E-01   1.0000          .0000       .10000E+07
    30 'norm      '    .66057       1.0000          .0000       .10000E+07
    31 'Prefactor '    .16799E-01   1.0000          .0000       .10000E+07
    32 'Prefactor '    6.5870       1.0000          .0000       .10000E+07
    33 'Prefactor '    .69460E-01   1.0000          .0000       .10000E+07
    34 'Normalizat'    1.0277       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .61548       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=   2513.003     FROM MIGRAD    STATUS=CONVERGED    215 CALLS     3783 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.486        1.7231        .16335E-07   -.12623E-01
   2  norm          .11102E-09    2.9038        .25322E-06** at limit **
   3  norm           .0000        2.6359        .83018E-07** at limit **
   4  Prefactor     9.0229        1.0678        .15642E-07   -.28817E-02
   5  Prefactor     .86307        27.674       -.22180E-05    .71933E-01
   6  norm           .0000        .47217       -.38376E-07** at limit **
   7  Prefactor     7.1532        4.7516       -.47241E-07   -.12604E-02
   8  Prefactor     1.2300        3.3990       -.29137E-07   -.14941E-03
   9  Prefactor     6.6848        1.5101        .56519E-07    .66712E-02
  10  Prefactor     .46074E-08    3.1292        .11116E-06** at limit **
  11  Prefactor     4.1945        1.3690        .46695E-07    .41389E-02
  12  norm          .67141E-06    8.3270       -.39936E-06** at limit **
  13  Prefactor     9.6671        22.440        .17869E-05    .41642E-01
  14  Prefactor     .22859E-06    16.042       -.76511E-07** at limit **
  15  Prefactor     18.912        3.5582        .39005E-07    .51276E-01
  16  norm          .29809E-07    6.5871        .32633E-06** at limit **
  17  Prefactor     .25947E-04    214.24       -.41110E-05** at limit **
  18  Prefactor     .20295E-06    5.2979        .16079E-06** at limit **
  19  norm          1.7979        .86063        .11225E-07    .95562E-04
  20  norm          .83267E-08    6.5714       -.11089E-06** at limit **
  21  Prefactor     .37192E-08    3.1747        .30759E-06** at limit **
  22  norm          3.9731        2.9282       -.28877E-07   -.18647E-03
  23  Prefactor      .0000        37.886        .16520E-06** at limit **
  24  norm          .22859E-06    5.4734        .18296E-06** at limit **
  25  Prefactor     .59437E-05    27.757       -.90922E-06** at limit **
  26  Prefactor     9.0559        9.0958       -.17727E-06   -.28348E-01
  27  norm          8.8790        4.4144        .78709E-07    .72282E-03
  28  norm           .0000        1.0531        .89408E-07** at limit **
  29  Prefactor     .20333E-05    65.613        .13851E-05** at limit **
  30  norm          .67499        2.2398       -.26841E-06   -.15153E-02
  31  Prefactor     .14095E-05    13.356       -.11229E-05** at limit **
  32  Prefactor     5.6054        45.711       -.35651E-05   -.17646E-01
  33  Prefactor     .12204E-05    8.6932       -.55945E-06** at limit **
  34  Normalizat    1.0278        .26888        .59271E-05    .24422E-04
  35  Prefactor     .61575        .31146       -.42625E-05    .64572E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.4856
  norm       = 1.11022e-10
  norm       = 0
  Prefactor  = 9.02295
  Prefactor  = 0.86307
  norm       = 0
  Prefactor  = 7.15317
  Prefactor  = 1.22997
  Prefactor  = 6.6848
  Prefactor  = 4.60743e-09
  Prefactor  = 4.19446
  norm       = 6.71407e-07
  Prefactor  = 9.66708
  Prefactor  = 2.28595e-07
  Prefactor  = 18.9118
  norm       = 2.98095e-08
  Prefactor  = 2.5947e-05
  Prefactor  = 2.02949e-07
  norm       = 1.79792
  norm       = 8.32667e-09
  Prefactor  = 3.71925e-09
  norm       = 3.97306
  Prefactor  = 0
  norm       = 2.28595e-07
  Prefactor  = 5.94375e-06
  Prefactor  = 9.05595
  norm       = 8.87904
  norm       = 0
  Prefactor  = 2.03332e-06
  norm       = 0.674988
  Prefactor  = 1.40954e-06
  Prefactor  = 5.60537
  Prefactor  = 1.22036e-06
  Normalizat = 1.02782
  Prefactor  = 0.615748
 **********
 **   18 **HESSE 
 **********

 FCN=   2513.003     FROM HESSE     STATUS=OK           848 CALLS     4631 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.486        11.140        .28267E-03   -1.5637    
   2  norm          .11102E-09    2.9018        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        2.6361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0229        13.604        .33313E-03   -1.5648    
   5  Prefactor     .86307        295.92        .43201E-03   -1.5689    
   6  norm           .0000        .47145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1532        4.7955        .37459E-03   -1.5654    
   8  Prefactor     1.2300        3.4907        .10100E-02   -1.5686    
   9  Prefactor     6.6848        16.769        .38688E-03   -1.5656    
  10  Prefactor     .46074E-08    3.1312        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1945        44.993        .49092E-03   -1.5667    
  12  norm          .67141E-06    9.9082        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.6671        45.297        .33490E-03   -1.5646    
  14  Prefactor     .22859E-06    15.947        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.912        11.696        .22964E-03   -1.5621    
  16  norm          .29809E-07    8.1234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .25947E-04    219.19        .10484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .20295E-06    11.132        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7979        .86085        .70444E-03   -1.5681    
  20  norm          .83267E-08    7.3913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .37192E-08    3.1749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.9731        2.9239        .50574E-03   -1.5668    
  23  Prefactor      .0000        37.579        .17377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .22859E-06    11.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .59437E-05    36.817        .86885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.0559        9.1822        .33414E-03   -1.5648    
  27  norm          8.8790        4.8682        .33648E-03   -1.5648    
  28  norm           .0000        1.0523        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .20333E-05    70.578        .16321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .67499        2.3049        .63968E-03   -1.5692    
  31  Prefactor     .14095E-05    69.913        .17257E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     5.6054        72.879        .39077E-03   -1.5661    
  33  Prefactor     .12204E-05    83.059        .14836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    1.0278        .24717        .42397E-01   -.92104    
  35  Prefactor     .61575        .27298        .70235E-01   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90519e-06
Minuit parameter uncertainties:
  1  11.1402
  2  3.11074e-05
  3  3.23585e-06
  4  13.6044
  5  31.9639
  6  7.62871e-08
  7  4.79551
  8  3.49073
  9  16.7696
  10  0.000240113
  11  27.4756
  12  0.00515841
  13  41.8523
  14  0.00381877
  15  11.696
  16  0.00098445
  17  0.150833
  18  0.00300595
  19  0.860847
  20  0.000495909
  21  0.000216762
  22  2.92391
  23  4.71968e-05
  24  0.00319584
  25  0.0295858
  26  9.18222
  27  4.86822
  28  9.77668e-07
  29  0.0239592
  30  2.30487
  31  0.019854
  32  40.4241
  33  0.0201359
  34  0.247451
  35  0.273572
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  3.719e-09  2.168e-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:  6.157e-01  2.736e-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.028e+00  2.475e-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: 9.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640573/likelihoodResults_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.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) = 2513.00457302
delta logL = -0.00132532280622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2513.00324779
delta logL = -9.16088538361e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13822E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.3525       1.0000          .0000       10.000    
     3 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61574       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=   2513.003     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      252 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.1113        .42118E-03** at limit **
   2  Index         3.5879        1.4975        .31871E-04     .0000    
   3  Normalizat    1.0278        1.2430       -.99117E-04    .28157E-03
   4  Prefactor     .61574        .96409        .17641E-03   -.33160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 3.5879
  Normalizat = 1.02783
  Prefactor  = 0.615741
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   2513.003     FROM HESSE     STATUS=FAILED         9 CALLS      261 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.1113        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4261        2.2324        .31871E-04   -.28632    
   3  Normalizat    1.0278        1.2430       -.99117E-04   -.92104    
   4  Prefactor     .61574        .96409        .17641E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 9.3621e-10
Minuit parameter uncertainties:
  1  4.49338e-06
  2  1.52298
  3  1.28107
  4  0.992007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640573': 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) = 2513.0032477
delta logL = 2.07819539355e-10

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  4.493e-06  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  3.588e+00  1.523e+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:  6.157e-01  9.920e-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.028e+00  1.281e+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/640573/cmap_HighResolution_693964801_694224001_4FGL_J0958.4+5042_daily_bin1754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.52e-03', job_status='DONE', photon_flux_upper_limit='9.57e-08', time_completed='2023-01-01 01:12:49.275148', job_id='640573', GAL2='0.62', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1672564369.28', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='2.08e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1754' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jan  1 01:12:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 640573: <4FGL_J0958.4+5042_daily_bin1754> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jan  1 01:00:19 2023
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jan  1 01:01:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jan  1 01:01:27 2023
Terminated at Sun Jan  1 01:12:49 2023
Results reported at Sun Jan  1 01:12:49 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1754 149.606 50.7 693964801 694224001 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 :                                   630.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            750 sec.

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

