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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin1050
RA = 128.667, Dec = 44.05
tmin = 511488001, tmax = 511747201
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='577060', job_status='RUN', time_executed='2021-08-30 01:43:11.367691', time_epoch_executed='1630312991.37' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='1050'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577060

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577060/ft1_4FGL_J0834.6+4402_daily_bin1050.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577060/ft2_4FGL_J0834.6+4402_daily_bin1050.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577060/ft1_4FGL_J0834.6+4402_daily_bin1050.fits outfile=/scratch/kocevski/577060/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1050.fits ra=128.667 dec=44.05 rad=12.0 tmin=511488001.0 tmax=511747201.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.20
user 3.29
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577060/ft1_filtered_4FGL_J0834.6+4402_daily_bin1050.fits" evtable="EVENTS" scfile=/scratch/kocevski/577060/ft2_4FGL_J0834.6+4402_daily_bin1050.fits sctable="SC_DATA" outfile=/scratch/kocevski/577060/ltcube_511488001_511747201_4FGL_J0834.6+4402_daily_bin1050.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/577060/ft2_4FGL_J0834.6+4402_daily_bin1050.fits
.....................!
real 12.48
user 11.43
sys 0.96

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577060/ft1_filtered_4FGL_J0834.6+4402_daily_bin1050.fits evtable="EVENTS" scfile=/scratch/kocevski/577060/ft2_4FGL_J0834.6+4402_daily_bin1050.fits sctable="SC_DATA" expcube=/scratch/kocevski/577060/ltcube_511488001_511747201_4FGL_J0834.6+4402_daily_bin1050.fits outfile=/scratch/kocevski/577060/expmap_511488001_511747201_4FGL_J0834.6+4402_daily_bin1050.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/577060/ltcube_511488001_511747201_4FGL_J0834.6+4402_daily_bin1050.fits
.....................!
real 193.49
user 188.19
sys 4.92

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/577060/ft1_filtered_4FGL_J0834.6+4402_daily_bin1050.fits scfile=/scratch/kocevski/577060/ft2_4FGL_J0834.6+4402_daily_bin1050.fits outfile=/scratch/kocevski/577060/cmap_511488001_511747201_4FGL_J0834.6+4402_daily_bin1050.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.15
user 0.37
sys 0.72

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577060/ft1_filtered_4FGL_J0834.6+4402_daily_bin1050.fits scfile=/scratch/kocevski/577060/ft2_4FGL_J0834.6+4402_daily_bin1050.fits outfile=/scratch/kocevski/577060/cmap_HighResolution_511488001_511747201_4FGL_J0834.6+4402_daily_bin1050.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.10
user 0.37
sys 0.73

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.218       1.0000         .10000E-03   10000.    
     3 'norm      '    .10161E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.7124       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .27668       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.479       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6589       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.2549       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7580       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.0028       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3317       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .36898       1.0000         .10000E-03   10000.    
    27 'norm      '    3.4422       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8288       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93138       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0558       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=   6741.014     FROM MIGRAD    STATUS=CONVERGED    789 CALLS     3519 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8989       -.16003E-06** at limit **
   2  Prefactor     13.217        12.328        .70253E-07   -.14513E-05
   3  norm          .10000E-03    1.3952       -.13094E-06** at limit **
   4  Prefactor     .10000E-03    8.2984       -.51297E-06** at limit **
   5  Prefactor     .10000E-03    32.289        .11352E-04** at limit **
   6  Prefactor     .10000E-03    2.5225       -.12586E-06** at limit **
   7  norm          6.7125        3.7677        .46560E-07   -.58433E-05
   8  norm          .10000E-03    .51866       -.11488E-07** at limit **
   9  norm          .27663        .37421       -.16321E-07   -.11027E-03
  10  Prefactor     .10000E-03    3.2009       -.12480E-05** at limit **
  11  Prefactor     .10000E-03    2.3598        .25860E-07** at limit **
  12  Prefactor     1.8176        1.9128       -.45440E-09    .33595E-04
  13  Prefactor     .10000E-03    8.8387       -.22123E-05** at limit **
  14  Prefactor     16.479        10.596       -.29993E-07    .12030E-04
  15  Prefactor     2.6591        4.8575       -.13252E-07   -.47271E-04
  16  norm          .10000E-03    3.1244        .10956E-05** at limit **
  17  norm          3.2545        3.9613       -.11229E-07   -.25187E-04
  18  Prefactor     .10000E-03    5.5521        .14827E-06** at limit **
  19  Prefactor     4.7569        3.0404       -.66815E-06   -.11045E-03
  20  Prefactor     .10000E-03    3.9917        .49346E-06** at limit **
  21  Prefactor     .10000E-03    34.359       -.11552E-04** at limit **
  22  Prefactor     .10000E-03    12.232        .33805E-06** at limit **
  23  Prefactor     2.0028        2.0245        .22249E-06   -.20047E-02
  24  Prefactor     .10000E-03    5.3816       -.28856E-06** at limit **
  25  norm          1.3309        .64925        .11001E-07   -.16819E-03
  26  Prefactor     .37642        2.3560        .10049E-06    .11946E-04
  27  norm          3.4427        5.8577       -.21804E-06   -.85750E-03
  28  Prefactor     1.8285        2.4879       -.25180E-06   -.11871E-03
  29  Prefactor     .10000E-03    7.7493        .23453E-05** at limit **
  30  Normalizat    .93124        .17683        .55536E-06   -.33847E-04
  31  Prefactor     1.0558        .14661       -.27489E-06    .40101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.2174
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.7125
  norm       = 0.0001
  norm       = 0.276634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.81757
  Prefactor  = 0.0001
  Prefactor  = 16.4789
  Prefactor  = 2.65909
  norm       = 0.0001
  norm       = 3.25451
  Prefactor  = 0.0001
  Prefactor  = 4.7569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.00276
  Prefactor  = 0.0001
  norm       = 1.33086
  Prefactor  = 0.376416
  norm       = 3.4427
  Prefactor  = 1.8285
  Prefactor  = 0.0001
  Normalizat = 0.931235
  Prefactor  = 1.05584
 **********
 **   18 **HESSE 
 **********

 FCN=   6741.014     FROM HESSE     STATUS=OK           628 CALLS     4147 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9199        .17743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.217        12.324        .11017E-03   -1.4981    
   3  norm          .10000E-03    5.0678        .18609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.4724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.9404        .24859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.7125        3.7642        .11561E-03   -1.5190    
   8  norm          .10000E-03    .52494        .57691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .27663        .33558        .55920E-03   -1.5603    
  10  Prefactor     .10000E-03    3.2045        .14342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.3653        .12317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8176        1.8983        .11209E-03   -1.5438    
  13  Prefactor     .10000E-03    8.8463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.479        10.602        .98664E-04   -1.4896    
  15  Prefactor     2.6591        4.8395        .23723E-03   -1.5382    
  16  norm          .10000E-03    3.1582        .14176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.2545        3.9538        .17471E-03   -1.5347    
  18  Prefactor     .10000E-03    5.5637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7569        3.0371        .10690E-03   -1.5272    
  20  Prefactor     .10000E-03    3.9928        .16021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    34.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.0028        3.2989        .86793E-03   -1.5425    
  24  Prefactor     .10000E-03    5.3843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3309        .77440        .36047E-04   -1.5477    
  26  Prefactor     .37642        13.794        .18512E-02   -1.5585    
  27  norm          3.4427        6.7238        .10900E-02   -1.5337    
  28  Prefactor     1.8285        2.5495        .14046E-03   -1.5438    
  29  Prefactor     .10000E-03    7.8159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93124        .20473        .26528E-03   -.95371    
  31  Prefactor     1.0558        .16765        .21842E-03   -.90890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37592e-09
Minuit parameter uncertainties:
  1  2.53482e-07
  2  12.3261
  3  6.22285e-05
  4  6.08541e-06
  5  3.8504e-05
  6  1.95701e-05
  7  3.76437
  8  2.09498e-07
  9  0.335586
  10  1.4325e-06
  11  3.0217e-07
  12  1.89838
  13  4.15509e-06
  14  10.6036
  15  4.84016
  16  4.93014e-06
  17  3.9541
  18  5.10271e-08
  19  3.03722
  20  1.49713e-06
  21  2.77689e-05
  22  1.14832e-06
  23  3.29917
  24  9.49843e-07
  25  0.774408
  26  4.5578
  27  6.7253
  28  2.54967
  29  8.62269e-07
  30  0.204901
  31  0.167734
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.648e+01  1.060e+01  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.056e+00  1.677e-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:  9.312e-01  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.62
Ra Dec: 128.667 44.050
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.66e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.24e-05

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) = 6740.72786851
delta logL = 0.286456429712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6740.70365737
delta logL = 0.310667569264

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.623       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8207       1.0000          .0000       10.000    
     3 'Normalizat'    .95232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0476       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=   6740.704     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      261 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.624        14.027        .90415E-04   -.78091E-03
   2  Index         1.8207        .53284        .91760E-02   -.21472E-03
   3  Normalizat    .95232        .18563        .26266E-03    .12440E-03
   4  Prefactor     1.0476        .16135        .21922E-03    .17458E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.6238
  Index      = 1.82071
  Normalizat = 0.952316
  Prefactor  = 1.04758
 **********
 **   18 **HESSE 
 **********

 FCN=   6740.704     FROM HESSE     STATUS=OK            23 CALLS      284 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.624        14.058        .18083E-04   -1.4822    
   2  Index         1.8207        .53380        .36704E-03   -.68912    
   3  Normalizat    .95232        .18571        .10506E-04   -.94645    
   4  Prefactor     1.0476        .16146        .43845E-04   -.91160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72972e-09
Minuit parameter uncertainties:
  1  14.0606
  2  0.53552
  3  0.185834
  4  0.161535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577060': 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) = 6740.70365737
delta logL = 0.310667570888

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.962e+01  1.406e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  1.821e+00  5.355e-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.048e+00  1.615e-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:  9.523e-01  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.22
Ra Dec: 128.667 44.050
Photon Index (Free Index): 1.82 +/- 0.54
Photon Flux (Free Index): 2.76e-08 +/- 3.00e-08
Energy Flux (Free Index): 3.11e-05 +/- 3.26e-05

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/577060/cmap_HighResolution_511488001_511747201_4FGL_J0834.6+4402_daily_bin1050.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.66e-08', energy_flux2='3.11e-05', photon_flux_error='2.99e-08', dlogl='3.11e-01', energy_flux='1.93e-05', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-08-30 01:57:13.164814', photon_index_error2='0.54', photon_index2='1.82', ts='10.62', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.26e-05', EG='0.93', time_epoch_completed='1630313833.16', return_code='0', job_id='577060', GAL2='1.05', EG2='0.95', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.00e-08', ts2='11.22', photon_index='2.25' WHERE bin_id='1050' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:57:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 577060: <4FGL_J0834.6+4402_daily_bin1050> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin1050> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 01:40:56 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:40:58 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:58 2021
Terminated at Mon Aug 30 01:57:16 2021
Results reported at Mon Aug 30 01:57:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin1050 128.667 44.05 511488001 511747201 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 :                                   847.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             331.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            980 sec.

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

