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 10 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0834.6+4402_monthly_bin168
RA = 128.667, Dec = 44.05
tmin = 672451201, tmax = 675043201
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='625839', job_status='RUN', time_executed='2022-05-24 02:38:16.098472', time_epoch_executed='1653385096.1' WHERE source_name='4FGL J0834.6+4402' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625839

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625839/ft1_4FGL_J0834.6+4402_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625839/ft1_4FGL_J0834.6+4402_monthly_bin168.fits outfile=/scratch/kocevski/625839/ft1_filteredMKT_4FGL_J0834.6+4402_monthly_bin168.fits ra=128.667 dec=44.05 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.04
user 28.18
sys 0.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.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/625839/ft1_filteredMKT_4FGL_J0834.6+4402_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/625839/ft1_filtered_4FGL_J0834.6+4402_monthly_bin168.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.88
user 0.68
sys 0.19

Number of photons that the gtmktime cut: 8266

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625839/ft1_filtered_4FGL_J0834.6+4402_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/625839/ltcube_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.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/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits
.....................!
real 142.78
user 140.60
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625839/ft1_filtered_4FGL_J0834.6+4402_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/625839/ltcube_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.fits outfile=/scratch/kocevski/625839/expmap_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.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/625839/ltcube_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.fits
.....................!
real 195.52
user 187.79
sys 5.28

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/625839/ft1_filtered_4FGL_J0834.6+4402_monthly_bin168.fits scfile=/scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits outfile=/scratch/kocevski/625839/cmap_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.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.82
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/625839/ft1_filtered_4FGL_J0834.6+4402_monthly_bin168.fits scfile=/scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits outfile=/scratch/kocevski/625839/cmap_HighResolution_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.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.80
user 0.62
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/625839/ft1_filtered_4FGL_J0834.6+4402_monthly_bin168.fits', '/scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits', expMap='/scratch/kocevski/625839/expmap_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.fits', expCube='/scratch/kocevski/625839/ltcube_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/625839/Model_4FGL_J0834.6+4402_monthly_bin168.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  1.000e-04  1.000e+04 ( 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/625839/ft1_filtered_4FGL_J0834.6+4402_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/625839/ft2_4FGL_J0834.6+4402_monthly_bin168.fits
Exposure map: /scratch/kocevski/625839/expmap_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.fits
Exposure cube: /scratch/kocevski/625839/ltcube_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/625839/Model_4FGL_J0834.6+4402_monthly_bin168.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) = 90464.1363446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4175       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2805       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29538       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.4820       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3593       1.0000         .10000E-03   10000.    
     7 'norm      '    .55219       1.0000         .10000E-03   10000.    
     8 'norm      '    2.4140       1.0000         .10000E-03   10000.    
     9 'norm      '    1.1468       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2180       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50161       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.789       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .92021       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .97879       1.0000         .10000E-03   10000.    
    16 'norm      '    3.4997       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2872       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7636       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.1057       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .23384E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .36894       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.6552       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1629       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.2944       1.0000         .10000E-03   10000.    
    25 'norm      '    .11724       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .81542       1.0000         .10000E-03   10000.    
    27 'norm      '    3.4440       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .25336       1.0000         .10000E-03   10000.    
    29 'Prefactor '    7.5834       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .97751       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1001       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   90463.31     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     3704 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4176        2.8973         .0000        .29033E-02
   2  Prefactor     .10000E-03    1.1366         .0000    ** at limit **
   3  norm          1.2805        .54503         .0000        .43096E-02
   4  Prefactor     .29238        .74317         .0000        .72783E-02
   5  Prefactor     4.4789        8.2420         .0000        .53800E-02
   6  Prefactor     2.3595        1.1713         .0000        .74139E-02
   7  norm          .55247        .56362         .0000        .10642E-01
   8  norm          2.4140        .44120         .0000        .15957E-03
   9  norm          1.1468        .17182         .0000        .36981E-02
  10  Prefactor     .10000E-03    .71193         .0000    ** at limit **
  11  Prefactor     1.2190        1.9253         .0000        .28679    
  12  Prefactor     .50163        .47228         .0000        .13446E-01
  13  Prefactor     24.788        7.1669         .0000        .26170E-02
  14  Prefactor     .92008        1.1677         .0000        .70160E-02
  15  Prefactor     .97882        .87651         .0000        .21382E-02
  16  norm          3.4996        1.3082         .0000        .34763E-02
  17  norm          3.2867        1.5011         .0000        .59502E-02
  18  Prefactor     2.7638        2.3134         .0000        .12694E-02
  19  Prefactor     1.1057        .60683         .0000        .12041E-01
  20  Prefactor     .33246E-01    1.1097         .0000        .86852E-03
  21  Prefactor     .37186        2.7108         .0000        .33553E-02
  22  Prefactor     8.6630        8.2130         .0000       -.30337E-03
  23  Prefactor     1.1629        .71005         .0000        .11289E-01
  24  Prefactor     2.2923        4.0029         .0000        .39399E-01
  25  norm          .11726        .14301         .0000        .28707E-01
  26  Prefactor     .81521        1.1146         .0000        .19219E-01
  27  norm          3.4443        2.0507         .0000        .34879E-02
  28  Prefactor     .25338        .44691         .0000        .31687E-01
  29  Prefactor     7.5832        2.3098         .0000        .17643E-01
  30  Normalizat    .97750        .53420E-01     .0000        .19708E-03
  31  Prefactor     1.1001        .42338E-01     .0000       -.10737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.41759
  Prefactor  = 0.0001
  norm       = 1.28047
  Prefactor  = 0.292384
  Prefactor  = 4.47887
  Prefactor  = 2.35947
  norm       = 0.552471
  norm       = 2.41396
  norm       = 1.1468
  Prefactor  = 0.0001
  Prefactor  = 1.21897
  Prefactor  = 0.501626
  Prefactor  = 24.7885
  Prefactor  = 0.92008
  Prefactor  = 0.978821
  norm       = 3.49964
  norm       = 3.28673
  Prefactor  = 2.76383
  Prefactor  = 1.1057
  Prefactor  = 0.0332458
  Prefactor  = 0.371863
  Prefactor  = 8.66297
  Prefactor  = 1.16293
  Prefactor  = 2.29227
  norm       = 0.117262
  Prefactor  = 0.815213
  norm       = 3.44431
  Prefactor  = 0.253377
  Prefactor  = 7.58318
  Normalizat = 0.977497
  Prefactor  = 1.1001
 **********
 **   18 **HESSE 
 **********

 FCN=   90463.31     FROM HESSE     STATUS=OK           674 CALLS     4378 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4176        2.8649        .26326E-03   -1.5397    
   2  Prefactor     .10000E-03    1.1524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2805        .53696        .13673E-03   -1.5482    
   4  Prefactor     .29238        2.2469        .37401E-02   -1.5600    
   5  Prefactor     4.4789        8.1113        .95094E-03   -1.5285    
   6  Prefactor     2.3595        1.1493        .21227E-03   -1.5401    
   7  norm          .55247        .54483        .21287E-03   -1.5559    
   8  norm          2.4140        .43529        .81116E-04   -1.5397    
   9  norm          1.1468        .16762        .44744E-04   -1.5494    
  10  Prefactor     .10000E-03    5.4255        .45150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.2190        1.9091        .20450E-02   -1.5487    
  12  Prefactor     .50163        .52391        .17844E-02   -1.5566    
  13  Prefactor     24.788        6.9694        .80456E-04   -1.4712    
  14  Prefactor     .92008        1.2005        .34060E-02   -1.5516    
  15  Prefactor     .97882        .87554        .25758E-03   -1.5510    
  16  norm          3.4996        1.3016        .19950E-03   -1.5334    
  17  norm          3.2867        1.4912        .22332E-03   -1.5345    
  18  Prefactor     2.7638        2.3084        .24484E-03   -1.5375    
  19  Prefactor     1.1057        .58919        .16113E-03   -1.5498    
  20  Prefactor     .33246E-01    1.4212        .91427E-01   -1.5672    
  21  Prefactor     .37186        2.7625        .17677       -1.5586    
  22  Prefactor     8.6630        8.1488        .13625E-03   -1.5119    
  23  Prefactor     1.1629        .68393        .17988E-03   -1.5492    
  24  Prefactor     2.2923        3.9124        .13548E-02   -1.5405    
  25  norm          .11726        .98776E-01    .68145E-03   -1.5640    
  26  Prefactor     .81521        .82064        .19398E-03   -1.5527    
  27  norm          3.4443        2.0124        .21794E-03   -1.5337    
  28  Prefactor     .25338        .42497        .24197E-03   -1.5607    
  29  Prefactor     7.5832        2.3096        .72814E-03   -1.5157    
  30  Normalizat    .97750        .59080E-01    .26755E-03   -.93788    
  31  Prefactor     1.1001        .48116E-01    .22498E-03   -.89463    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6846e-07
Minuit parameter uncertainties:
  1  2.86504
  2  1.05064e-07
  3  0.536961
  4  1.62086
  5  8.11324
  6  1.14936
  7  0.544835
  8  0.435287
  9  0.167619
  10  1.03637e-05
  11  1.90917
  12  0.523916
  13  6.9696
  14  1.20055
  15  0.875549
  16  1.30157
  17  1.49123
  18  2.30849
  19  0.589196
  20  0.4341
  21  2.02693
  22  8.1498
  23  0.683939
  24  3.91279
  25  0.0987763
  26  0.820651
  27  2.01244
  28  0.424974
  29  2.3096
  30  0.0590844
  31  0.0481175
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  9.201e-01  1.201e+00  1.000e-04  1.000e+04 ( 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:  1.100e+00  4.812e-02  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:  9.775e-01  5.908e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 128.667 44.050
Photon Flux Upper Limit: 1.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.87e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625839/likelihoodResults_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.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) = 90463.0685298
delta logL = 0.238086762256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 90463.0576928
delta logL = 0.248923752064

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0967       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7343       1.0000          .0000       10.000    
     3 'Normalizat'    .97876       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0996       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   90463.06     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      264 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0984        1.2768        .40096E-02    .90001E-03
   2  Index         1.7340        .66743        .20153E-01   -.39815E-03
   3  Normalizat    .97875        .52003E-01    .26740E-03    .76188E-05
   4  Prefactor     1.0996        .46322E-01    .22502E-03    .25867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.09841
  Index      = 1.73401
  Normalizat = 0.978749
  Prefactor  = 1.09959
 **********
 **   18 **HESSE 
 **********

 FCN=   90463.06     FROM HESSE     STATUS=OK            27 CALLS      291 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0984        1.2756        .16039E-03   -1.5498    
   2  Index         1.7340        .66980        .40305E-02   -.71180    
   3  Normalizat    .97875        .52036E-01    .53480E-04   -.93746    
   4  Prefactor     1.0996        .46354E-01    .45005E-04   -.89480    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.58544e-12
Minuit parameter uncertainties:
  1  1.27562
  2  0.673347
  3  0.0520388
  4  0.0463559
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625839': 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): 0
logL (Free Index) = 90463.0576916
delta logL = 0.248924911517

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.098e+00  1.276e+00  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  1.734e+00  6.733e-01  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:  1.100e+00  4.636e-02  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:  9.787e-01  5.204e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.47
Ra Dec: 128.667 44.050
Photon Index (Free Index): 1.73 +/- 0.67
Photon Flux (Free Index): 1.38e-09 +/- 2.23e-09
Energy Flux (Free Index): 2.02e-06 +/- 2.96e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/625839/cmap_HighResolution_672451201_675043201_4FGL_J0834.6+4402_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.87e-04', comment='SUCCESS', energy_flux2='2.02e-06', dlogl='2.49e-01', photon_flux2='1.38e-09', job_status='DONE', time_completed='2022-05-24 05:28:22.919579', photon_index_error2='0.67', photon_index2='1.73', ts='0.97', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.16e-08', energy_flux_error2='2.96e-06', EG='0.98', time_epoch_completed='1653395302.92', return_code='0', job_id='625839', GAL2='1.10', EG2='0.98', return_code2='0', photon_flux_error2='2.23e-09', ts2='1.47', photon_index='2.25' WHERE bin_id='168' AND source_name='4FGL J0834.6+4402' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 05:28:22 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 625839: <4FGL_J0834.6+4402_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0834.6+4402_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:35:34 2022
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:37:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:37:55 2022
Terminated at Tue May 24 05:28:24 2022
Results reported at Tue May 24 05:28:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_monthly_bin168 128.667 44.05 672451201 675043201 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 :                                   10049.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             440.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10228 sec.
    Turnaround time :                            10370 sec.

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

