/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 9 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 = 7387
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0834.6+4402_daily_bin974
RA = 128.667, Dec = 44.05
tmin = 491788801, tmax = 492048001
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='576954', job_status='RUN', time_executed='2021-08-30 01:41:18.032215', time_epoch_executed='1630312878.03' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/576954

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/576954/ft1_4FGL_J0834.6+4402_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/576954/ft2_4FGL_J0834.6+4402_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/576954/ft1_4FGL_J0834.6+4402_daily_bin974.fits outfile=/scratch/kocevski/576954/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin974.fits ra=128.667 dec=44.05 rad=12.0 tmin=491788801.0 tmax=492048001.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 4.40
user 3.99
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/576954/ft2_4FGL_J0834.6+4402_daily_bin974.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/576954/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin974.fits evtable="EVENTS" outfile="/scratch/kocevski/576954/ft1_filtered_4FGL_J0834.6+4402_daily_bin974.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.73
user 0.33
sys 0.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/576954/ft1_filtered_4FGL_J0834.6+4402_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/576954/ft2_4FGL_J0834.6+4402_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/576954/ltcube_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.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/576954/ft2_4FGL_J0834.6+4402_daily_bin974.fits
.....................!
real 12.05
user 11.46
sys 0.55

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/576954/ft1_filtered_4FGL_J0834.6+4402_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/576954/ft2_4FGL_J0834.6+4402_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/576954/ltcube_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.fits outfile=/scratch/kocevski/576954/expmap_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.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/576954/ltcube_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.fits
.....................!
real 191.65
user 186.56
sys 4.20

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/576954/ft1_filtered_4FGL_J0834.6+4402_daily_bin974.fits scfile=/scratch/kocevski/576954/ft2_4FGL_J0834.6+4402_daily_bin974.fits outfile=/scratch/kocevski/576954/cmap_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.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.74
user 0.41
sys 0.29

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/576954/ft1_filtered_4FGL_J0834.6+4402_daily_bin974.fits scfile=/scratch/kocevski/576954/ft2_4FGL_J0834.6+4402_daily_bin974.fits outfile=/scratch/kocevski/576954/cmap_HighResolution_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.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.73
user 0.38
sys 0.33

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.974       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.796       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.306       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.5313       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.556       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0569       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3435       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    678.25       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .76817E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.9380       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.089       1.0000         .10000E-03   10000.    
    27 'norm      '    47.611       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .25198E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5404       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.

 FCN=   1672.405     FROM MIGRAD    STATUS=CONVERGED    823 CALLS     4206 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.014        54.242        .10893E-06    .17810E-04
   2  Prefactor     .10000E-03    32.100        .22446E-06** at limit **
   3  norm          12.974        11.103        .53910E-08    .67931E-05
   4  Prefactor     36.795        28.207        .34077E-06   -.52843E-05
   5  Prefactor     .10000E-03    51.776       -.15555E-06** at limit **
   6  Prefactor     .10000E-03    7.9696       -.11897E-06** at limit **
   7  norm          18.307        19.600       -.60640E-07    .21972E-04
   8  norm          .10000E-03    3.2031        .17587E-07** at limit **
   9  norm          1.5311        1.4244        .13908E-06    .93059E-07
  10  Prefactor     .10000E-03    63.646       -.14960E-05** at limit **
  11  Prefactor     18.559        31.839        .26374E-06    .18392E-04
  12  Prefactor     .10000E-03    8.2496       -.69236E-06** at limit **
  13  Prefactor     7.0872        203.10        .12084E-05   -.46249E-05
  14  Prefactor     .10000E-03    29.151       -.22635E-05** at limit **
  15  Prefactor     .10000E-03    10.637       -.81045E-07** at limit **
  16  norm          .10000E-03    8.6634       -.12145E-06** at limit **
  17  norm          .10000E-03    7.7141       -.61939E-07** at limit **
  18  Prefactor     2.3319        186.13       -.20297E-05    .11680E-04
  19  Prefactor     .10000E-03    4.2568       -.15591E-06** at limit **
  20  Prefactor     .10000E-03    32.187        .33805E-07** at limit **
  21  Prefactor     678.28        376.63       -.12672E-05    .25274E-04
  22  Prefactor     .10000E-03    53.203        .27614E-06** at limit **
  23  Prefactor     .10277E-03    70.067       -.38848E-05** at limit **
  24  Prefactor     .10000E-03    57.950        .18542E-05** at limit **
  25  norm          2.9378        4.3084       -.92006E-06    .21616E-03
  26  Prefactor     11.090        23.190        .81221E-06   -.44709E-04
  27  norm          47.623        32.046       -.97724E-06   -.54805E-04
  28  Prefactor     .10010E-03    109.45        .58406E-05** at limit **
  29  Prefactor     .10000E-03    42.921       -.10535E-05** at limit **
  30  Normalizat    .10000E-01    .19908       -.11196E-04** at limit **
  31  Prefactor     1.5402        .18837        .36797E-05    .77050E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.0144
  Prefactor  = 0.0001
  norm       = 12.9744
  Prefactor  = 36.7955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.3073
  norm       = 0.0001
  norm       = 1.53114
  Prefactor  = 0.0001
  Prefactor  = 18.5587
  Prefactor  = 0.0001
  Prefactor  = 7.08724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.33188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 678.278
  Prefactor  = 0.0001
  Prefactor  = 0.000102771
  Prefactor  = 0.0001
  norm       = 2.93777
  Prefactor  = 11.0897
  norm       = 47.6235
  Prefactor  = 0.000100102
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.5402
 **********
 **   18 **HESSE 
 **********

 FCN=   1672.405     FROM HESSE     STATUS=OK           624 CALLS     4830 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.014        54.271        .54568E-04   -1.4237    
   2  Prefactor     .10000E-03    32.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.974        11.106        .11121E-03   -1.4987    
   4  Prefactor     36.795        28.242        .66069E-04   -1.4494    
   5  Prefactor     .10000E-03    51.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0141        .11275E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.307        19.598        .93611E-04   -1.4852    
   8  norm          .10000E-03    3.2042        .71476E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.5311        1.4196        .44468E-04   -1.5460    
  10  Prefactor     .10000E-03    64.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.559        31.593        .92977E-04   -1.4846    
  12  Prefactor     .10000E-03    8.4402        .11468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0872        202.67        .15101E-03   -1.5175    
  14  Prefactor     .10000E-03    29.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    10.636        .13028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.6652        .11757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.7139        .11095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3319        183.23        .26781E-03   -1.5403    
  19  Prefactor     .10000E-03    4.2583        .82377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    32.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     678.28        375.46        .79540E-04   -1.0438    
  22  Prefactor     .10000E-03    53.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10277E-03    40.087        .39696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    58.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.9378        4.8101        .55624E-04   -1.5365    
  26  Prefactor     11.090        26.038        .12031E-03   -1.5042    
  27  norm          47.623        32.754        .58112E-04   -1.4327    
  28  Prefactor     .10010E-03    123.21        .23237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    42.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .32055        .11101E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.5402        .19853        .19608E-03   -.76420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45634e-09
Minuit parameter uncertainties:
  1  54.3204
  2  4.02731e-05
  3  11.1079
  4  28.252
  5  2.75263e-05
  6  2.12651e-05
  7  19.6053
  8  2.10739e-06
  9  1.41962
  10  0.000215557
  11  31.6211
  12  8.69796e-06
  13  76.0844
  14  8.58084e-05
  15  8.85678e-06
  16  2.19718e-06
  17  5.01086e-06
  18  41.4726
  19  1.23421e-05
  20  0.000108623
  21  376.868
  22  2.24691e-05
  23  0.0210946
  24  0.000125663
  25  4.81074
  26  26.0642
  27  32.7661
  28  0.00710236
  29  0.00017577
  30  7.34368e-06
  31  0.198632
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  8.581e-05  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.540e+00  1.986e-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.000e-02  7.344e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/576954/likelihoodResults_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.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) = 1672.40536526
delta logL = -0.000167386981047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1672.40519909
delta logL = -1.21910579765e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4961       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5400       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.

 FCN=   1672.405     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      293 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10239E-03    10.430        .18142E-01** at limit **
   2  Index         2.4248        8.7069        .50000        .13231E-04
   3  Normalizat    .10000E-01    .29227E-03    .11101E-01** at limit **
   4  Prefactor     1.5402        .53267E-02    .19608E-03    .84069E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102386
  Index      = 2.42479
  Normalizat = 0.01
  Prefactor  = 1.5402
 **********
 **   18 **HESSE 
 **********

 FCN=   1672.405     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      322 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10239E-03    125.54        .19190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4248        5.3218        .50000       -.54106    
   3  Normalizat    .10000E-01    .35360E-02    .22202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5402        .18509E-01    .78433E-05   -.76420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32775e-09
Minuit parameter uncertainties:
  1  0.0346837
  2  251.803
  3  1.44438e-07
  4  0.018509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/576954': 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) = 1672.40519834
delta logL = -4.72032979815e-07

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.024e-04  3.468e-02  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.425e+00  2.518e+02  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.540e+00  1.851e-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:  1.000e-02  1.444e-07  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/576954/cmap_HighResolution_491788801_492048001_4FGL_J0834.6+4402_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.03e-02', job_status='DONE', photon_flux_upper_limit='2.66e-07', time_completed='2021-08-30 01:49:36.583980', job_id='576954', GAL2='1.54', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630313376.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.54', dlogl='-4.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='974' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:49:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 576954: <4FGL_J0834.6+4402_daily_bin974> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin974> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 01:40:49 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:40:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:40:52 2021
Terminated at Mon Aug 30 01:49:36 2021
Results reported at Mon Aug 30 01:49:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin974 128.667 44.05 491788801 492048001 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 :                                   498.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   524 sec.
    Turnaround time :                            527 sec.

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

