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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin1779
RA = 128.667, Dec = 44.05
tmin = 700444801, tmax = 700704001
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='13848', job_status='RUN', time_executed='2023-03-17 00:56:29.690040', time_epoch_executed='1679039789.69' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='1779'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/13848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/13848/ft1_4FGL_J0834.6+4402_daily_bin1779.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/13848/ft1_4FGL_J0834.6+4402_daily_bin1779.fits outfile=/scratch/kocevski/13848/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1779.fits ra=128.667 dec=44.05 rad=12.0 tmin=700444801.0 tmax=700704001.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.26
user 5.00
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.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/13848/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1779.fits evtable="EVENTS" outfile="/scratch/kocevski/13848/ft1_filtered_4FGL_J0834.6+4402_daily_bin1779.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.48
user 0.34
sys 0.13

Number of photons that the gtmktime cut: 642

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/13848/ft1_filtered_4FGL_J0834.6+4402_daily_bin1779.fits" evtable="EVENTS" scfile=/scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits sctable="SC_DATA" outfile=/scratch/kocevski/13848/ltcube_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.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/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits
.....................!
real 11.63
user 11.28
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/13848/ft1_filtered_4FGL_J0834.6+4402_daily_bin1779.fits evtable="EVENTS" scfile=/scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits sctable="SC_DATA" expcube=/scratch/kocevski/13848/ltcube_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.fits outfile=/scratch/kocevski/13848/expmap_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.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/13848/ltcube_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.fits
.....................!
real 191.56
user 186.37
sys 4.86

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/13848/ft1_filtered_4FGL_J0834.6+4402_daily_bin1779.fits scfile=/scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits outfile=/scratch/kocevski/13848/cmap_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/13848/ft1_filtered_4FGL_J0834.6+4402_daily_bin1779.fits scfile=/scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits outfile=/scratch/kocevski/13848/cmap_HighResolution_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.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.53
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/13848/ft1_filtered_4FGL_J0834.6+4402_daily_bin1779.fits', '/scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits', expMap='/scratch/kocevski/13848/expmap_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.fits', expCube='/scratch/kocevski/13848/ltcube_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/13848/Model_4FGL_J0834.6+4402_daily_bin1779.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/13848/ft1_filtered_4FGL_J0834.6+4402_daily_bin1779.fits
Spacecraft file(s): /scratch/kocevski/13848/ft2_4FGL_J0834.6+4402_daily_bin1779.fits
Exposure map: /scratch/kocevski/13848/expmap_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.fits
Exposure cube: /scratch/kocevski/13848/ltcube_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/13848/Model_4FGL_J0834.6+4402_daily_bin1779.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) = 6903.94216819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29313E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .37998E-04   1.0000          .0000       .10000E+07
     3 'norm      '    1.8762       1.0000          .0000       .10000E+07
     4 'Prefactor '    8.3523       1.0000          .0000       .10000E+07
     5 'Prefactor '    .27670E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    14.023       1.0000          .0000       .10000E+07
     7 'norm      '    .23656E-02   1.0000          .0000       .10000E+07
     8 'norm      '    2.2667       1.0000          .0000       .10000E+07
     9 'norm      '    .97468       1.0000          .0000       .10000E+07
    10 'Prefactor '    5.6393       1.0000          .0000       .10000E+07
    11 'Prefactor '    13.568       1.0000          .0000       .10000E+07
    12 'Prefactor '    .45546       1.0000          .0000       .10000E+07
    13 'Prefactor '    3.3822       1.0000          .0000       .10000E+07
    14 'Prefactor '    7.2912       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.8262       1.0000          .0000       .10000E+07
    16 'norm      '    2.0106       1.0000          .0000       .10000E+07
    17 'norm      '    .30126E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    9.2331       1.0000          .0000       .10000E+07
    19 'Prefactor '    .28439E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .21482E-01   1.0000          .0000       .10000E+07
    21 'Prefactor '    .27767E-06   1.0000          .0000       .10000E+07
    22 'Prefactor '    .25631E-02   1.0000          .0000       .10000E+07
    23 'norm      '    .71609E-08   1.0000          .0000       .10000E+07
    24 'Prefactor '    .11391E-06   1.0000          .0000       .10000E+07
    25 'norm      '    .85015E-03   1.0000          .0000       .10000E+07
    26 'Prefactor '    3.1744       1.0000          .0000       .10000E+07
    27 'Prefactor '    .19336E-05   1.0000          .0000       .10000E+07
    28 'Normalizat'    1.2239       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .76107       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=   6902.349     FROM MIGRAD    STATUS=CONVERGED    211 CALLS     1629 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10818E-05    36.773        .62308E-06** at limit **
   2  Prefactor     .44964E-08    4.8557        .85484E-08** at limit **
   3  norm          1.8765        1.6692       -.33471E-07    .63455E-03
   4  Prefactor     8.4231        7.6484        .77052E-08   -.27614E-02
   5  Prefactor     .14401E-05    26.884       -.10079E-05** at limit **
   6  Prefactor     13.993        6.8766       -.52611E-07   -.32475E-02
   7  norm          .63151E-05    34.426       -.17213E-05** at limit **
   8  norm          2.2651        1.5739        .96397E-08    .36113E-03
   9  norm          .97663        .63803        .22758E-07   -.20695E-02
  10  Prefactor     6.0367        10.655        .35711E-06    .26657E-02
  11  Prefactor     13.654        6.2905        .12905E-06   -.40501E-01
  12  Prefactor     .45405        1.7362       -.46383E-08   -.30878E-03
  13  Prefactor     .56377E-06    436.30        .16552E-05** at limit **
  14  Prefactor     8.3545        14.072        .31109E-06    .28159E-02
  15  Prefactor     1.8265        3.0712        .70547E-07   -.19265E-05
  16  norm          2.0096        3.1662       -.14071E-07   -.27557E-04
  17  norm          .17042E-07    3.1288        .18477E-06** at limit **
  18  Prefactor     9.2820        3.8810       -.63379E-07   -.18403E-01
  19  Prefactor      .0000        17.203        .32620E-07** at limit **
  20  Prefactor      .0000        32.625        .56086E-06** at limit **
  21  Prefactor     .15987E-07    3.4699        .79604E-07** at limit **
  22  Prefactor     .64448E-07    21.946       -.66227E-06** at limit **
  23  norm           .0000        .93360E-01    .11997E-07** at limit **
  24  Prefactor      .0000        .61858       -.60072E-07** at limit **
  25  norm          .10547E-08    5.5112       -.22608E-07** at limit **
  26  Prefactor     3.1745        2.6686        .39347E-07   -.33923E-03
  27  Prefactor      .0000        2.8081        .22910E-06** at limit **
  28  Normalizat    1.2248        .19218       -.11990E-05    .11695E-04
  29  Prefactor     .76031        .15645       -.28278E-06    .17289E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0818e-06
  Prefactor  = 4.4964e-09
  norm       = 1.87653
  Prefactor  = 8.42308
  Prefactor  = 1.44013e-06
  Prefactor  = 13.9925
  norm       = 6.31512e-06
  norm       = 2.26506
  norm       = 0.97663
  Prefactor  = 6.03666
  Prefactor  = 13.6539
  Prefactor  = 0.454054
  Prefactor  = 5.63771e-07
  Prefactor  = 8.35448
  Prefactor  = 1.82655
  norm       = 2.00955
  norm       = 1.70419e-08
  Prefactor  = 9.28196
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 1.59872e-08
  Prefactor  = 6.44484e-08
  norm       = 0
  Prefactor  = 0
  norm       = 1.05471e-09
  Prefactor  = 3.17448
  Prefactor  = 0
  Normalizat = 1.22485
  Prefactor  = 0.760311
 **********
 **   18 **HESSE 
 **********

 FCN=   6902.349     FROM HESSE     STATUS=OK           621 CALLS     2250 TOTAL
                     EDM=   .98E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10818E-05    44.062        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .44964E-08    5.0395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8765        1.6874        .75988E-03   -1.5681    
   4  Prefactor     8.4231        7.6961        .34664E-03   -1.5650    
   5  Prefactor     .14401E-05    37.393        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.993        6.9398        .26722E-03   -1.5633    
   7  norm          .63151E-05    2.9527        .49508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.2651        1.6107        .68193E-03   -1.5678    
   9  norm          .97663        .64284        .42867E-03   -1.5688    
  10  Prefactor     6.0367        11.235        .42278E-03   -1.5659    
  11  Prefactor     13.654        9.6880        .27167E-03   -1.5634    
  12  Prefactor     .45405        1.7841        .83323E-03   -1.5694    
  13  Prefactor     .56377E-06    423.99        .54993E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3545        14.183        .37122E-03   -1.5650    
  15  Prefactor     1.8265        3.1147        .77218E-03   -1.5681    
  16  norm          2.0096        3.1900        .72983E-03   -1.5680    
  17  norm          .17042E-07    3.9518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     9.2820        11.040        .32959E-03   -1.5647    
  19  Prefactor      .0000        16.866        .16534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        32.503        .16941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .15987E-07    4.0140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .64448E-07    22.405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        .93197E-01    .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        .61946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10547E-08    5.7462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.1745        2.6718        .56855E-03   -1.5672    
  27  Prefactor      .0000        2.8243        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2248        .16873        .53980E-01   -.85838    
  29  Prefactor     .76031        .13758        .43208E-01   -1.0121    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.76468e-08
Minuit parameter uncertainties:
  1  0.0138082
  2  0.000300907
  3  1.68737
  4  7.69612
  5  0.0146765
  6  6.93979
  7  0.00863628
  8  1.61073
  9  0.642837
  10  11.2347
  11  9.68804
  12  1.78407
  13  0.0309236
  14  14.1827
  15  3.11471
  16  3.19002
  17  0.000519322
  18  11.0401
  19  1.16019e-05
  20  2.41925e-05
  21  0.000506964
  22  0.00240298
  23  7.73035e-08
  24  1.68351e-06
  25  0.000155529
  26  2.67177
  27  1.3678e-05
  28  0.168806
  29  0.137644
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  8.354e+00  1.418e+01  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:  7.603e-01  1.376e-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:  1.225e+00  1.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.40
Ra Dec: 128.667 44.050
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/13848/likelihoodResults_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.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) = 6900.83063902
delta logL = 1.5178783203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 1
logL (Free Index) = 6900.0797157
delta logL = 2.26880164396

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6902.547     FROM MIGRAD    STATUS=FAILED       147 CALLS      758 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39968E-08    .59680E-02    .67449E-03** at limit **
   2  Index         1.5581        .93492E-01    4.5530        .15146E-01
   3  Normalizat    1.2444        .11056E-03    .23712E-03    .86258E-03
   4  Prefactor     .75907        .93660E-04    .24937E-03   -.14030E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6900.290     FROM SIMPLEX   STATUS=PROGRESS     456 CALLS     1214 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20928E-05    .59680E-02    .39931E-07** at limit **
   2  Index         9.2941        .93492E-01    .38433E-02    .15146E-01
   3  Normalizat    1.2445        .11056E-03    .16125E-06    .86258E-03
   4  Prefactor     .72582        .93660E-04    .35317E-04   -.14030E-02
                               ERR DEF=  .500    
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6900.290     FROM MIGRAD    STATUS=FAILED        38 CALLS     1252 TOTAL
                     EDM=   .63E+03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20928E-05    .90300E-06     .0000    ** at limit **
   2  Index         9.2941        7.1520         .0000       -14.592    
   3  Normalizat    1.2445        .43219E-02     .0000        5.5998    
   4  Prefactor     .72582        .36039E-02     .0000        5.7037    
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09277e-06
  Index      = 9.2941
  Normalizat = 1.24453
  Prefactor  = 0.72582
 **********
 **   18 **HESSE 
 **********

 FCN=   6900.290     FROM HESSE     STATUS=NOT POSDEF    27 CALLS     1279 TOTAL
                     EDM=   .25E+04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20928E-05    .12802E-05    .67449E-03   -2829.0    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.2941        9.0750        4.5530       -.95484E+07
   3  Normalizat    1.2445        .61285E-02    .94848E-05   -13.419    
   4  Prefactor     .72582        .51097E-02    .24473E-04   -102.65    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2521.1
Minuit parameter uncertainties:
  1  1.28022e-06
  2  7.65689
  3  0.00612847
  4  0.00510975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/13848': 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): 1
logL (Free Index) = 6900.29004436
delta logL = 2.05847298499

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  2.093e-06  1.280e-06  0.000e+00  1.000e+06 ( 1.000e-13)
341        Index:  9.294e+00  7.657e+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:  7.258e-01  5.110e-03  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:  1.245e+00  6.128e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.53
Ra Dec: 128.667 44.050
Photon Index (Free Index): 9.29 +/- 7.66
Photon Flux (Free Index): 8.95e-08 +/- 1.71e-06
Energy Flux (Free Index): 1.01e-05 +/- 1.94e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/13848/cmap_HighResolution_700444801_700704001_4FGL_J0834.6+4402_daily_bin1779.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.93e-03', comment='SUCCESS', energy_flux2='1.01e-05', dlogl='2.06e+00', photon_flux2='8.95e-08', job_status='DONE', time_completed='2023-03-17 01:09:54.687802', photon_index_error2='7.66', photon_index2='9.29', ts='0.40', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.94e-04', EG='1.22', time_epoch_completed='1679040594.69', return_code='0', job_id='13848', GAL2='0.73', EG2='1.24', return_code2='1', photon_flux_error2='1.71e-06', ts2='4.53', photon_index='2.25' WHERE bin_id='1779' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar 17 01:09:54 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0284>
Subject: Job 13848: <4FGL_J0834.6+4402_daily_bin1779> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin1779> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Mar 17 00:55:15 2023
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar 17 00:55:17 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar 17 00:55:17 2023
Terminated at Fri Mar 17 01:09:55 2023
Results reported at Fri Mar 17 01:09:55 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin1779 128.667 44.05 700444801 700704001 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 :                                   806.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

