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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin1508
RA = 128.667, Dec = 44.05
tmin = 630201601, tmax = 630460801
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='580096', job_status='RUN', time_executed='2021-08-30 01:54:12.141320', time_epoch_executed='1630313652.14' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580096

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580096/ft1_4FGL_J0834.6+4402_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580096/ft2_4FGL_J0834.6+4402_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580096/ft1_4FGL_J0834.6+4402_daily_bin1508.fits outfile=/scratch/kocevski/580096/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1508.fits ra=128.667 dec=44.05 rad=12.0 tmin=630201601.0 tmax=630460801.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.95
user 3.43
sys 1.36

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580096/ft2_4FGL_J0834.6+4402_daily_bin1508.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/580096/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1508.fits evtable="EVENTS" outfile="/scratch/kocevski/580096/ft1_filtered_4FGL_J0834.6+4402_daily_bin1508.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 1.71
user 0.32
sys 1.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580096/ft1_filtered_4FGL_J0834.6+4402_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/580096/ft2_4FGL_J0834.6+4402_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/580096/ltcube_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.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/580096/ft2_4FGL_J0834.6+4402_daily_bin1508.fits
.....................!
real 13.88
user 12.20
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580096/ft1_filtered_4FGL_J0834.6+4402_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/580096/ft2_4FGL_J0834.6+4402_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/580096/ltcube_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.fits outfile=/scratch/kocevski/580096/expmap_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.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/580096/ltcube_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.fits
.....................!
real 196.74
user 185.82
sys 6.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/580096/ft1_filtered_4FGL_J0834.6+4402_daily_bin1508.fits scfile=/scratch/kocevski/580096/ft2_4FGL_J0834.6+4402_daily_bin1508.fits outfile=/scratch/kocevski/580096/cmap_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.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 1.87
user 0.38
sys 1.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580096/ft1_filtered_4FGL_J0834.6+4402_daily_bin1508.fits scfile=/scratch/kocevski/580096/ft2_4FGL_J0834.6+4402_daily_bin1508.fits outfile=/scratch/kocevski/580096/cmap_HighResolution_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.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 1.73
user 0.38
sys 1.26

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.988       1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.0836       1.0000         .10000E-03   10000.    
     7 'norm      '    .11573E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.369       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.7565       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.972       1.0000         .10000E-03   10000.    
    16 'norm      '    18.145       1.0000         .10000E-03   10000.    
    17 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.3570       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .85992E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.110       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .24915E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.282       1.0000         .10000E-03   10000.    
    27 'norm      '    1.6137       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10911E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.5776       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=   2095.852     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     3493 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4675        .40593E-07** at limit **
   2  Prefactor     17.988        1.0026        .32622E-07    .10386E-04
   3  norm          .10000E-03    2.0103        .29274E-06** at limit **
   4  Prefactor     .10000E-03    4.0342       -.64999E-06** at limit **
   5  Prefactor     .10010E-03    23.047        .19335E-04** at limit **
   6  Prefactor     9.0866        1.0400       -.14896E-06   -.70234E-03
   7  norm          .10001E-03    16.312       -.12579E-04** at limit **
   8  norm          .10000E-03    1.3887        .34159E-06** at limit **
   9  norm          .10000E-03    .95842        .11867E-06** at limit **
  10  Prefactor     .10001E-03    12.470       -.17260E-04** at limit **
  11  Prefactor     12.383        1.2432        .38686E-06   -.23440E-03
  12  Prefactor     7.7565        1.6343       -.23602E-05   -.40704E-02
  13  Prefactor     .10054E-03    17.383        .25369E-05** at limit **
  14  Prefactor     .10013E-03    28.503        .39157E-05** at limit **
  15  Prefactor     18.971        1.0607        .18834E-06    .76482E-04
  16  norm          18.144        1.0312        .23053E-07    .38439E-04
  17  norm          .10000E-03    6.5891        .41655E-06** at limit **
  18  Prefactor     .10001E-03    12.706        .23999E-04** at limit **
  19  Prefactor     2.3561        4.1801       -.29137E-06   -.41243E-04
  20  Prefactor     .10511E-03    200.76       -.57560E-04** at limit **
  21  Prefactor     .10006E-03    32.459        .78432E-05** at limit **
  22  Prefactor     25.163        11.493        .73951E-05   -.78589E-02
  23  Prefactor     .10000E-03    1.5911       -.17515E-07** at limit **
  24  Prefactor     .10002E-03    .84737       -.99267E-06** at limit **
  25  norm          .10000E-03    .78356       -.40571E-07** at limit **
  26  Prefactor     10.292        4.7722        .15891E-06   -.13708E-03
  27  norm          1.6186        1.1464       -.11637E-05    .12373E-03
  28  Prefactor     .10000E-03    1.9952       -.20574E-06** at limit **
  29  Prefactor     .10025E-03    23.878       -.17532E-04** at limit **
  30  Normalizat    .10000E-01    1.4852       -.54738E-04** at limit **
  31  Prefactor     1.5775        .14732        .17786E-05    .70546E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.9884
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 9.08664
  norm       = 0.00010001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 12.3834
  Prefactor  = 7.75654
  Prefactor  = 0.000100542
  Prefactor  = 0.000100127
  Prefactor  = 18.9706
  norm       = 18.1442
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 2.35608
  Prefactor  = 0.000105115
  Prefactor  = 0.000100065
  Prefactor  = 25.1634
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 0.0001
  Prefactor  = 10.2921
  norm       = 1.61861
  Prefactor  = 0.0001
  Prefactor  = 0.000100254
  Normalizat = 0.01
  Prefactor  = 1.57748
 **********
 **   18 **HESSE 
 **********

 FCN=   2095.852     FROM HESSE     STATUS=OK           700 CALLS     4193 TOTAL
                     EDM=   .92E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.988        20.064        .23609E-02   -1.4859    
   3  norm          .10000E-03    1.9960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.0335        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10010E-03    25.206        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.0866        8.9763        .33245E-02   -1.5105    
   7  norm          .10001E-03    8.4154        .42804E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.3834        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .63164        .18252E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    12.747        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.383        15.357        .28475E-02   -1.5004    
  12  Prefactor     7.7565        5.6630        .35995E-02   -1.5151    
  13  Prefactor     .10054E-03    32.630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10013E-03    58.883        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.971        16.573        .22988E-02   -1.4837    
  16  norm          18.144        13.016        .23506E-02   -1.4856    
  17  norm          .10000E-03    6.5892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    13.287        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.3561        4.2854        .66740E-02   -1.5401    
  20  Prefactor     .10511E-03    200.71        .91753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10006E-03    63.323        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.163        58.258        .19985E-02   -1.4704    
  23  Prefactor     .10000E-03    1.5894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    29.500        .10733E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .66426        .16714E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.292        5.3440        .31239E-02   -1.5066    
  27  norm          1.6186        13.664        .83341E-02   -1.5454    
  28  Prefactor     .10000E-03    1.9423        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10025E-03    39.341        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .47965        .20618       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.5775        .22027        .28980E-01   -.75392    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21394e-07
Minuit parameter uncertainties:
  1  4.05813e-05
  2  20.0715
  3  1.59392e-06
  4  5.16959e-06
  5  0.00315542
  6  8.97764
  7  0.000583993
  8  1.07024e-06
  9  1.57758e-07
  10  0.000588193
  11  15.3614
  12  5.66338
  13  0.00841752
  14  0.0054742
  15  16.5766
  16  13.0178
  17  5.37156e-05
  18  0.000884727
  19  4.286
  20  0.0642978
  21  0.00405886
  22  58.3902
  23  4.15373e-06
  24  0.00170927
  25  1.61537e-07
  26  5.34421
  27  9.40814
  28  8.25859e-07
  29  0.00632961
  30  1.53656e-07
  31  0.220403
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.001e-04  5.474e-03  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.577e+00  2.204e-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  1.537e-07  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.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580096/likelihoodResults_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.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) = 2095.85176376
delta logL = -8.16344863779e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2095.85168414
delta logL = -2.02244427783e-06

Fit tolerance = 1e-08

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

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

 FCN=   2095.220     FROM MIGRAD    STATUS=CONVERGED    157 CALLS      369 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34233E-01    2.3110        .20626E-02   -.21463E-02
   2  Index         5.2048        7.3526        .89982E-01    .92760E-04
   3  Normalizat    .10000E-01    .13233        .25947    ** at limit **
   4  Prefactor     1.5497        .15969        .28984E-01   -.21301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.034233
  Index      = 5.20481
  Normalizat = 0.01
  Prefactor  = 1.54969
 **********
 **   18 **HESSE 
 **********

 FCN=   2095.220     FROM HESSE     STATUS=OK            33 CALLS      402 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34233E-01    2.9267        .93386E-04   -1.5745    
   2  Index         5.2048        7.5904        .35564E-02    .40973E-01
   3  Normalizat    .10000E-01    .36474        .91695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.5497        .14720        .17794E-03   -.76157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3146e-10
Minuit parameter uncertainties:
  1  0.632158
  2  7.56251
  3  4.06099e-07
  4  0.147244
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580096': 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) = 2095.21965805
delta logL = 0.632024068657

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  3.423e-02  6.322e-01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  5.205e+00  7.563e+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:  1.550e+00  1.472e-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  4.061e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 128.667 44.050
Photon Index (Free Index): 5.20 +/- 7.56
Photon Flux (Free Index): 6.54e-08 +/- 2.36e-06
Energy Flux (Free Index): 8.55e-06 +/- 3.05e-04

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/580096/cmap_HighResolution_630201601_630460801_4FGL_J0834.6+4402_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', energy_flux2='8.55e-06', dlogl='6.32e-01', photon_flux2='6.54e-08', job_status='DONE', time_completed='2021-08-30 02:03:32.906308', photon_index_error2='7.56', photon_index2='5.20', ts='-0.00', fit_tolerance='1e-08', GAL='1.58', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='3.05e-04', EG='0.01', time_epoch_completed='1630314212.91', return_code='0', job_id='580096', GAL2='1.55', EG2='0.01', return_code2='0', photon_flux_error2='2.36e-06', ts2='1.27', photon_index='2.25' WHERE bin_id='1508' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:03:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 580096: <4FGL_J0834.6+4402_daily_bin1508> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin1508> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 01:50:33 2021
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:50:35 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:50:35 2021
Terminated at Mon Aug 30 02:03:33 2021
Results reported at Mon Aug 30 02:03:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin1508 128.667 44.05 630201601 630460801 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 :                                   566.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

