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


Performing analysis on: 4FGL_J0834.6+4402_weekly_bin754
RA = 128.667, Dec = 44.05
tmin = 695001601, tmax = 695606401
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='948475', job_status='RUN', time_executed='2023-01-17 00:47:47.398800', time_epoch_executed='1673945267.4' WHERE source_name='4FGL J0834.6+4402' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/948475

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/948475/ft1_4FGL_J0834.6+4402_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/948475/ft1_4FGL_J0834.6+4402_weekly_bin754.fits outfile=/scratch/kocevski/948475/ft1_filteredMKT_4FGL_J0834.6+4402_weekly_bin754.fits ra=128.667 dec=44.05 rad=12.0 tmin=695001601.0 tmax=695606401.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 5.70
user 5.37
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.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/948475/ft1_filteredMKT_4FGL_J0834.6+4402_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.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.56
user 0.40
sys 0.15

Number of photons that the gtmktime cut: 135

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/948475/ltcube_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.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/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits
.....................!
real 36.20
user 35.47
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/948475/ltcube_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.fits outfile=/scratch/kocevski/948475/expmap_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.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/948475/ltcube_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.fits
.....................!
real 191.76
user 186.50
sys 4.47

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

Setting source of interest to:
4FGL J0834.6+4402 @ 128.667 44.05

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits scfile=/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits outfile=/scratch/kocevski/948475/cmap_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.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=128.667 yref=44.05 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits scfile=/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits outfile=/scratch/kocevski/948475/cmap_HighResolution_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.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=128.667 yref=44.05 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.58
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/948475/Model_4FGL_J0834.6+4402_weekly_bin754.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/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits.......................!
real 26.82
user 25.41
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits', '/scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits', expMap='/scratch/kocevski/948475/expmap_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.fits', expCube='/scratch/kocevski/948475/ltcube_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/948475/Model_4FGL_J0834.6+4402_weekly_bin754.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0834.6+4402'

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.700e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
341        Index:  2.246e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.361e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/948475/ft1_filtered_4FGL_J0834.6+4402_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/948475/ft2_4FGL_J0834.6+4402_weekly_bin754.fits
Exposure map: /scratch/kocevski/948475/expmap_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.fits
Exposure cube: /scratch/kocevski/948475/ltcube_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/948475/Model_4FGL_J0834.6+4402_weekly_bin754.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) = 1681.94781444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    66.475       1.0000          .0000       .10000E+07
     2 'Prefactor '    .60459E-03   1.0000          .0000       .10000E+07
     3 'norm      '    34.897       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87599E-01   1.0000          .0000       .10000E+07
     5 'Prefactor '    .74791E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20147E-01   1.0000          .0000       .10000E+07
     7 'norm      '    .41078E-08   1.0000          .0000       .10000E+07
     8 'norm      '    .17149E-03   1.0000          .0000       .10000E+07
     9 'norm      '    .77331E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .38064E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    .33978E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    22.900       1.0000          .0000       .10000E+07
    13 'Prefactor '    .55380E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .97644E-07   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.4540       1.0000          .0000       .10000E+07
    16 'norm      '    .10160E-05   1.0000          .0000       .10000E+07
    17 'norm      '    20.693       1.0000          .0000       .10000E+07
    18 'Prefactor '    .86519E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    15.635       1.0000          .0000       .10000E+07
    20 'Prefactor '    .34311E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    30.884       1.0000          .0000       .10000E+07
    22 'Prefactor '    23.403       1.0000          .0000       .10000E+07
    23 'norm      '    .58149       1.0000          .0000       .10000E+07
    24 'Prefactor '    3.3305       1.0000          .0000       .10000E+07
    25 'norm      '    .39900E-05   1.0000          .0000       .10000E+07
    26 'Prefactor '    1.9070       1.0000          .0000       .10000E+07
    27 'Prefactor '    12.577       1.0000          .0000       .10000E+07
    28 'Normalizat'    .55033       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1681.906     FROM MIGRAD    STATUS=CONVERGED    282 CALLS     2885 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     88.476        312.49        .12818E-05   -.41674E-02
   2  Prefactor     .60563E-07    560.34        .30259E-04** at limit **
   3  norm          33.205        33.408       -.22612E-05   -.29355E-01
   4  Prefactor     .11657E-08    99.969       -.72084E-05** at limit **
   5  Prefactor      .0000        338.50        .31309E-04** at limit **
   6  Prefactor      .0000        75.126       -.28967E-06** at limit **
   7  norm          .19651E-07    18.142       -.44136E-05** at limit **
   8  norm           .0000        3.1530       -.68107E-07** at limit **
   9  norm           .0000        6.3992       -.66659E-06** at limit **
  10  Prefactor     .11102E-09    82.921        .13760E-05** at limit **
  11  Prefactor      .0000        8.8156        .82908E-07** at limit **
  12  Prefactor     22.965        4.6070       -.92123E-07   -.31498E-01
  13  Prefactor     .12768E-08    45.373       -.15093E-06** at limit **
  14  Prefactor      .0000        11.834       -.91274E-06** at limit **
  15  Prefactor     3.4309        13.049        .72483E-06    .14699E-03
  16  norm          .55511E-10    13.466        .43801E-06** at limit **
  17  norm          20.532        16.799       -.44786E-07   -.40175E-02
  18  Prefactor     .66613E-09    22.751       -.16810E-05** at limit **
  19  Prefactor     15.729        37.100       -.98766E-05    .81956E-02
  20  Prefactor     .55511E-10    36.943        .20188E-06** at limit **
  21  Prefactor     30.845        11.412       -.31224E-06   -.15894E-02
  22  Prefactor     23.460        27.729       -.42397E-06    .19066E-01
  23  norm          .57405        1.2193       -.43322E-06    .15985E-02
  24  Prefactor     3.4225        8.5107        .27107E-06    .16040E-02
  25  norm          .11102E-09    17.118       -.36134E-05** at limit **
  26  Prefactor     1.9186        4.2573        .98678E-07   -.58935E-03
  27  Prefactor     12.600        10.345        .19659E-06    .19027E-03
  28  Normalizat    .54488        .44461        .24891E-04    .44756E-04
  29  Prefactor     .65600        .38032        .16899E-04    .27879E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 88.476
  Prefactor  = 6.05627e-08
  norm       = 33.2052
  Prefactor  = 1.16573e-09
  Prefactor  = 0
  Prefactor  = 0
  norm       = 1.96509e-08
  norm       = 0
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 0
  Prefactor  = 22.9655
  Prefactor  = 1.27676e-09
  Prefactor  = 0
  Prefactor  = 3.43091
  norm       = 5.55112e-11
  norm       = 20.532
  Prefactor  = 6.66134e-10
  Prefactor  = 15.7286
  Prefactor  = 5.55112e-11
  Prefactor  = 30.8447
  Prefactor  = 23.4598
  norm       = 0.574048
  Prefactor  = 3.42251
  norm       = 1.11022e-10
  Prefactor  = 1.9186
  Prefactor  = 12.5997
  Normalizat = 0.544882
  Prefactor  = 0.655995
 **********
 **   18 **HESSE 
 **********

 FCN=   1681.906     FROM HESSE     STATUS=OK           611 CALLS     3496 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     88.476        310.65        .12266E-03   -1.5520    
   2  Prefactor     .60563E-07    556.81        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          33.205        41.402        .16930E-03   -1.5593    
   4  Prefactor     .11657E-08    99.786        .14275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        338.38        .14663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        74.689        .17027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .19651E-07    18.394        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm           .0000        3.1123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        6.1595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .11102E-09    82.716        .16052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        8.7637        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.965        20.042        .20902E-03   -1.5612    
  13  Prefactor     .12768E-08    45.355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        11.824        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.4309        13.173        .54392E-03   -1.5671    
  16  norm          .55511E-10    13.458        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.532        17.049        .21990E-03   -1.5617    
  18  Prefactor     .66613E-09    22.755        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.729        37.898        .25304E-03   -1.5629    
  20  Prefactor     .55511E-10    36.895        .16231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.845        11.610        .17997E-03   -1.5597    
  22  Prefactor     23.460        35.384        .20676E-03   -1.5611    
  23  norm          .57405        1.2916        .70903E-03   -1.5693    
  24  Prefactor     3.4225        8.6915        .55439E-03   -1.5671    
  25  norm          .11102E-09    17.145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.9186        4.3349        .75263E-03   -1.5680    
  27  Prefactor     12.600        10.346        .28220E-03   -1.5637    
  28  Normalizat    .54488        .38209        .71721E-01   -1.1038    
  29  Prefactor     .65600        .32683        .63959E-01   -1.0528    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13427e-08
Minuit parameter uncertainties:
  1  310.709
  2  0.011616
  3  41.4027
  4  0.000684101
  5  2.72173e-05
  6  3.75862e-06
  7  0.00120249
  8  2.84887e-07
  9  1.04521e-05
  10  0.000172485
  11  1.28105e-05
  12  20.042
  13  0.000479208
  14  1.63663e-05
  15  13.1732
  16  4.27679e-05
  17  17.0487
  18  0.000242226
  19  37.8985
  20  6.45601e-05
  21  11.6099
  22  35.3841
  23  1.2916
  24  8.69157
  25  9.59459e-05
  26  4.33486
  27  10.3464
  28  0.38395
  29  0.327782
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  0.000e+00  1.637e-05  0.000e+00  1.000e+06 ( 1.000e-13)
341        Index:  2.246e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
342        Scale:  1.361e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  6.560e-01  3.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  5.449e-01  3.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 128.667 44.050
Photon Flux Upper Limit: 1.74e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.33e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/948475/likelihoodResults_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.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) = 1681.94681583
delta logL = -0.0403219271798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1681.9064975
delta logL = -3.60172907676e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1681.906     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      194 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.059        .65749E-06** at limit **
   2  Index         1.9480        5.9181       -.27354E-04     .0000    
   3  Normalizat    .54488        .36014        .64446E-06    .21789E-04
   4  Prefactor     .65600        .35183       -.72282E-06    .82061E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.94805
  Normalizat = 0.544881
  Prefactor  = 0.655995
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1681.906     FROM HESSE     STATUS=FAILED        11 CALLS      205 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .40300        1.8406       -.27354E-04   -.65655    
   3  Normalizat    .54488        .87929        .64446E-06   -1.1038    
   4  Prefactor     .65600        1.0056       -.72282E-06   -1.0528    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.49588e-12
Minuit parameter uncertainties:
  1  3.20694e-06
  2  1.75748
  3  0.903397
  4  1.03549
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/948475': 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) = 1681.9064939
delta logL = 5.45696821064e-12

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  0.000e+00  3.207e-06  0.000e+00  1.000e+06 ( 1.000e-13)
341        Index:  1.948e+00  1.757e+00  0.000e+00  1.000e+01 (-1.000e+00)
342        Scale:  1.361e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  6.560e-01  1.035e+00  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  5.449e-01  9.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 128.667 44.050

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/948475/cmap_HighResolution_695001601_695606401_4FGL_J0834.6+4402_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2023-01-17 00:55:58.323453', job_id='948475', GAL2='0.66', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1673945758.32', return_code2='101', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='5.46e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='754' AND source_name='4FGL J0834.6+4402' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 00:55:58 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 948475: <4FGL_J0834.6+4402_weekly_bin754> in cluster <slac> Done

Job <4FGL_J0834.6+4402_weekly_bin754> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jan 17 00:45:24 2023
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:46:53 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:46:53 2023
Terminated at Tue Jan 17 00:55:59 2023
Results reported at Tue Jan 17 00:55:59 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_weekly_bin754 128.667 44.05 695001601 695606401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0834.6+4402 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   490.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            635 sec.

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

