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


Performing analysis on: 4FGL_J0958.4+5042_daily_bin1771
RA = 149.606, Dec = 50.7
tmin = 698371201, tmax = 698630401
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='543308', job_status='RUN', time_executed='2023-02-21 00:37:03.872575', time_epoch_executed='1676968623.87' WHERE source_name='4FGL J0958.4+5042' and cadence='daily' and bin_id='1771'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543308

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543308/ft1_4FGL_J0958.4+5042_daily_bin1771.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543308/ft2_4FGL_J0958.4+5042_daily_bin1771.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543308/ft1_4FGL_J0958.4+5042_daily_bin1771.fits outfile=/scratch/kocevski/543308/ft1_filteredMKT_4FGL_J0958.4+5042_daily_bin1771.fits ra=149.606 dec=50.7 rad=12.0 tmin=698371201.0 tmax=698630401.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.07
user 2.86
sys 0.20

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

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

Number of photons that the gtmktime cut: 54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543308/ft1_filtered_4FGL_J0958.4+5042_daily_bin1771.fits" evtable="EVENTS" scfile=/scratch/kocevski/543308/ft2_4FGL_J0958.4+5042_daily_bin1771.fits sctable="SC_DATA" outfile=/scratch/kocevski/543308/ltcube_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.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/543308/ft2_4FGL_J0958.4+5042_daily_bin1771.fits
.....................!
real 12.68
user 12.18
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543308/ft1_filtered_4FGL_J0958.4+5042_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/543308/ft2_4FGL_J0958.4+5042_daily_bin1771.fits sctable="SC_DATA" expcube=/scratch/kocevski/543308/ltcube_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.fits outfile=/scratch/kocevski/543308/expmap_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.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/543308/ltcube_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.fits
.....................!
real 189.97
user 185.54
sys 4.10

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/543308/ft1_filtered_4FGL_J0958.4+5042_daily_bin1771.fits scfile=/scratch/kocevski/543308/ft2_4FGL_J0958.4+5042_daily_bin1771.fits outfile=/scratch/kocevski/543308/cmap_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543308/ft1_filtered_4FGL_J0958.4+5042_daily_bin1771.fits scfile=/scratch/kocevski/543308/ft2_4FGL_J0958.4+5042_daily_bin1771.fits outfile=/scratch/kocevski/543308/cmap_HighResolution_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.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/543308/ft1_filtered_4FGL_J0958.4+5042_daily_bin1771.fits evtable="EVENTS" scfile=/scratch/kocevski/543308/ft2_4FGL_J0958.4+5042_daily_bin1771.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/543308/Model_4FGL_J0958.4+5042_daily_bin1771.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/543308/ft1_filtered_4FGL_J0958.4+5042_daily_bin1771.fits...........................!
real 19.95
user 17.87
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21128E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .82823E-04   1.0000          .0000       .10000E+07
     3 'norm      '    .21557E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    36.405       1.0000          .0000       .10000E+07
     5 'Prefactor '    27.494       1.0000          .0000       .10000E+07
     6 'norm      '    1.6774       1.0000          .0000       .10000E+07
     7 'Prefactor '    1.2591       1.0000          .0000       .10000E+07
     8 'Prefactor '    .40167E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24994E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .20536E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    85.679       1.0000          .0000       .10000E+07
    12 'norm      '    .16340       1.0000          .0000       .10000E+07
    13 'Prefactor '    .15938       1.0000          .0000       .10000E+07
    14 'Prefactor '    .46166E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    29.950       1.0000          .0000       .10000E+07
    16 'norm      '    .25688E-05   1.0000          .0000       .10000E+07
    17 'Prefactor '    469.26       1.0000          .0000       .10000E+07
    18 'Prefactor '    16.715       1.0000          .0000       .10000E+07
    19 'norm      '    .91891       1.0000          .0000       .10000E+07
    20 'norm      '    .25355E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .21753E-03   1.0000          .0000       .10000E+07
    22 'norm      '    45.148       1.0000          .0000       .10000E+07
    23 'Prefactor '    .67193E-03   1.0000          .0000       .10000E+07
    24 'norm      '    .99461E+06   1.0000          .0000       .10000E+07
    25 'Prefactor '    .54458E-04   1.0000          .0000       .10000E+07
    26 'Prefactor '    .99586E+06   1.0000          .0000       .10000E+07
    27 'norm      '    .45424E-02   1.0000          .0000       .10000E+07
    28 'norm      '    8.9706       1.0000          .0000       .10000E+07
    29 'Prefactor '    .21360       1.0000          .0000       .10000E+07
    30 'norm      '    .36073E-01   1.0000          .0000       .10000E+07
    31 'Prefactor '    .36031E+06   1.0000          .0000       .10000E+07
    32 'Prefactor '    .52802       1.0000          .0000       .10000E+07
    33 'Prefactor '    .99908E+06   1.0000          .0000       .10000E+07
    34 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    35 'Prefactor '    .57931       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=   632.2655     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     5058 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        20.505        .20908E-06** at limit **
   2  norm           .0000        4.9626       -.15947E-06** at limit **
   3  norm           .0000        6.6059        .30311E-08** at limit **
   4  Prefactor     36.043        23.510       -.32858E-07    .44021E-02
   5  Prefactor     27.200        60.225       -.29642E-06    .23904E-02
   6  norm          1.7831        2.8090       -.86480E-07   -.21837E-02
   7  Prefactor     .21760E-07    195.17        .56438E-05** at limit **
   8  Prefactor     .77716E-09    50.127        .20355E-06** at limit **
   9  Prefactor      .0000        13.740        .34310E-06** at limit **
  10  Prefactor      .0000        6.0912       -.37788E-08** at limit **
  11  Prefactor     80.246        108.17       -.44704E-06    .18725E-03
  12  norm           .0000        122.75       -.65185E-06** at limit **
  13  Prefactor     .86597E-08    527.32       -.47063E-05** at limit **
  14  Prefactor      .0000        12.335       -.21180E-07** at limit **
  15  Prefactor     30.882        35.060        .41376E-06    .41858E-03
  16  norm           .0000        17.423        .11612E-06** at limit **
  17  Prefactor     597.19        1065.9        .30488E-05    .60576E-02
  18  Prefactor     15.198        46.572        .32280E-06   -.12453E-02
  19  norm          .91864        1.1401        .34751E-07    .15255E-03
  20  norm           .0000        74.074       -.44312E-07** at limit **
  21  Prefactor      .0000        31.616       -.27018E-06** at limit **
  22  norm          45.061        3.0215        .20596E-07   -.60933E-02
  23  Prefactor     .16653E-09    56.720       -.93194E-06** at limit **
  24  norm          .99462E+06    12.440        .11919E-07   -.11813    
  25  Prefactor      .0000        21.065        .46037E-06** at limit **
  26  Prefactor     .99586E+06    42.594        .46667E-07   -.35599    
  27  norm           .0000        8.3754        .79264E-07** at limit **
  28  norm          8.8533        9.9566        .79496E-07    .88544E-04
  29  Prefactor     .10603E-06    2592.7        .23639E-05** at limit **
  30  norm           .0000        31.902       -.84308E-07** at limit **
  31  Prefactor     .36031E+06    1.6850       -.19918E-09    .80229E-01
  32  Prefactor     .49682E-07    314.83        .60135E-05** at limit **
  33  Prefactor     .99908E+06    8.9700        .20738E-07   -.35111E-01
  34  Normalizat    .10000E-01    .23119       -.63446E-05** at limit **
  35  Prefactor     .58367        .26986       -.55235E-05   -.18825E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  norm       = 0
  Prefactor  = 36.0428
  Prefactor  = 27.1999
  norm       = 1.7831
  Prefactor  = 2.17604e-08
  Prefactor  = 7.77156e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 80.2456
  norm       = 0
  Prefactor  = 8.65974e-09
  Prefactor  = 0
  Prefactor  = 30.8816
  norm       = 0
  Prefactor  = 597.194
  Prefactor  = 15.1981
  norm       = 0.918635
  norm       = 0
  Prefactor  = 0
  norm       = 45.0608
  Prefactor  = 1.66533e-10
  norm       = 994615
  Prefactor  = 0
  Prefactor  = 995863
  norm       = 0
  norm       = 8.85334
  Prefactor  = 1.06026e-07
  norm       = 0
  Prefactor  = 360308
  Prefactor  = 4.96825e-08
  Prefactor  = 999085
  Normalizat = 0.01
  Prefactor  = 0.583672
 **********
 **   18 **HESSE 
 **********

 FCN=   632.2655     FROM HESSE     STATUS=OK           838 CALLS     5896 TOTAL
                     EDM=   .66E-01    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        20.358        .16964E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        4.9468        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        6.6282        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     36.043        41.563        .16576E-03   -1.5588    
   5  Prefactor     27.200        61.641        .19075E-03   -1.5604    
   6  norm          1.7831        3.7193        .81324E-03   -1.5681    
   7  Prefactor     .21760E-07    42.950        .78252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .77716E-09    49.836        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        13.717        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        6.1020        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.246        107.79        .10804E-03   -1.5529    
  12  norm           .0000        119.72        .12467E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .86597E-08    542.73        .12549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        12.305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.882        35.049        .18275E-03   -1.5597    
  16  norm           .0000        17.411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     597.19        1100.8        .46174E-04   -1.5219    
  18  Prefactor     15.198        47.052        .24471E-03   -1.5630    
  19  norm          .91864        1.1454        .44461E-03   -1.5689    
  20  norm           .0000        73.009        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        31.254        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          45.061        44.886        .14884E-03   -1.5574    
  23  Prefactor     .16653E-09    56.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .99462E+06    .67205E+06    .13662E-03    1.4239    
  25  Prefactor      .0000        21.046        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .99586E+06    87089.        .15569E-04    1.4421    
  27  norm           .0000        8.3177        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          8.8533        9.9806        .33440E-03   -1.5648    
  29  Prefactor     .10603E-06    2611.6        .11539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm           .0000        31.915        .16146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .36031E+06    .16491E+06    .20829E-04   -.28315    
  32  Prefactor     .49682E-07    315.08        .75939E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .99908E+06    .70066E+06    .33051E-04    1.5103    
  34  Normalizat    .10000E-01    .21977        .16820       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Prefactor     .58367        .30808        .40771E-01   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.0662604
Minuit parameter uncertainties:
  1  1.93001e-05
  2  2.53709e-06
  3  2.82245e-06
  4  41.5631
  5  61.6426
  6  3.71935
  7  0.00193423
  8  0.000394718
  9  9.63902e-06
  10  1.76173e-06
  11  107.793
  12  8.75131e-05
  13  0.00434058
  14  1.33763e-06
  15  35.0489
  16  7.63284e-06
  17  1101.21
  18  47.0531
  19  1.14541
  20  1.09641e-05
  21  4.59104e-06
  22  44.8864
  23  0.000190655
  24  81828.7
  25  1.70023e-05
  26  38622.8
  27  7.81948e-07
  28  9.98057
  29  0.0332989
  30  3.73541e-07
  31  168337
  32  0.00791301
  33  39715.9
  34  1.08461e-07
  35  0.308976
Done.

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

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  0.000e+00  4.591e-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:  5.837e-01  3.090e-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.000e-02  1.085e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/543308/likelihoodResults_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.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): 0
logL (Free Index) = 632.28090929
delta logL = -0.0153954813442

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 632.26551398
delta logL = -1.71395527104e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12977E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.4404       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58361       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=   632.2655     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      195 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37192E-08    27.793        .17373E-05** at limit **
   2  Index         2.1294        5.0331        .98609E-04   -.14059E-09
   3  Normalizat    .10000E-01    .22882       -.45298E-04** at limit **
   4  Prefactor     .58367        .22723        .23861E-05   -.33152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.71925e-09
  Index      = 2.12937
  Normalizat = 0.01
  Prefactor  = 0.583671
 **********
 **   18 **HESSE 
 **********

 FCN=   632.2655     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      232 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37192E-08    5.4161        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1294        5.1777        .50000       -.61154    
   3  Normalizat    .10000E-01    .72648E-04    .16820       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .58367        .45000E-02    .40830E-01   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43506e-11
Minuit parameter uncertainties:
  1  0.000282965
  2  23338.4
  3  7.05274e-08
  4  0.00450003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543308': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 632.265513809
delta logL = -7.01447788742e-11

Extracting fit parameters...

4FGL J0958.4+5042
   Spectrum: PowerLaw
369    Prefactor:  3.719e-09  2.830e-04  0.000e+00  1.000e+06 ( 1.000e-12)
370        Index:  2.129e+00  2.334e+04  0.000e+00  1.000e+01 (-1.000e+00)
371        Scale:  5.744e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

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

EG_v02
   Spectrum: FileFunction
733   Normalization:  1.000e-02  7.053e-08  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/543308/cmap_HighResolution_698371201_698630401_4FGL_J0958.4+5042_daily_bin1771.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-02', job_status='DONE', photon_flux_upper_limit='6.96e-07', time_completed='2023-02-21 00:44:07.142739', job_id='543308', GAL2='0.58', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1676969047.14', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='-7.01e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1771' AND source_name='4FGL J0958.4+5042' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb 21 00:44:07 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 543308: <4FGL_J0958.4+5042_daily_bin1771> in cluster <slac> Done

Job <4FGL_J0958.4+5042_daily_bin1771> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Feb 21 00:35:14 2023
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb 21 00:35:14 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb 21 00:35:14 2023
Terminated at Tue Feb 21 00:44:08 2023
Results reported at Tue Feb 21 00:44:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0958.4+5042_daily_bin1771 149.606 50.7 698371201 698630401 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 :                                   423.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   533 sec.
    Turnaround time :                            534 sec.

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

