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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin1405
RA = 128.667, Dec = 44.05
tmin = 603504001, tmax = 603763201
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='579946', job_status='RUN', time_executed='2021-08-30 01:55:26.243715', time_epoch_executed='1630313726.24' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='1405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/579946

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/579946/ft1_4FGL_J0834.6+4402_daily_bin1405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/579946/ft1_4FGL_J0834.6+4402_daily_bin1405.fits outfile=/scratch/kocevski/579946/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1405.fits ra=128.667 dec=44.05 rad=12.0 tmin=603504001.0 tmax=603763201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.77
user 2.53
sys 3.14

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/579946/ft1_filtered_4FGL_J0834.6+4402_daily_bin1405.fits" evtable="EVENTS" scfile=/scratch/kocevski/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits sctable="SC_DATA" outfile=/scratch/kocevski/579946/ltcube_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.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/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits
.....................!
real 16.08
user 12.35
sys 3.66

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/579946/ft1_filtered_4FGL_J0834.6+4402_daily_bin1405.fits evtable="EVENTS" scfile=/scratch/kocevski/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits sctable="SC_DATA" expcube=/scratch/kocevski/579946/ltcube_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.fits outfile=/scratch/kocevski/579946/expmap_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.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/579946/ltcube_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.fits
.....................!
real 194.91
user 185.86
sys 8.47

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/579946/ft1_filtered_4FGL_J0834.6+4402_daily_bin1405.fits scfile=/scratch/kocevski/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits outfile=/scratch/kocevski/579946/cmap_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.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 3.53
user 0.36
sys 3.06

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/579946/ft1_filtered_4FGL_J0834.6+4402_daily_bin1405.fits scfile=/scratch/kocevski/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits outfile=/scratch/kocevski/579946/cmap_HighResolution_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.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 3.54
user 0.38
sys 3.05

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/579946/ft1_filtered_4FGL_J0834.6+4402_daily_bin1405.fits', '/scratch/kocevski/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits', expMap='/scratch/kocevski/579946/expmap_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.fits', expCube='/scratch/kocevski/579946/ltcube_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/579946/Model_4FGL_J0834.6+4402_daily_bin1405.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/579946/ft1_filtered_4FGL_J0834.6+4402_daily_bin1405.fits
Spacecraft file(s): /scratch/kocevski/579946/ft2_4FGL_J0834.6+4402_daily_bin1405.fits
Exposure map: /scratch/kocevski/579946/expmap_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.fits
Exposure cube: /scratch/kocevski/579946/ltcube_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/579946/Model_4FGL_J0834.6+4402_daily_bin1405.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 140.828015569

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 139.047184052

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36917E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7113       1.0000         .10000E-03   10000.    
     3 'norm      '    .24380E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.570       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6610       1.0000         .10000E-03   10000.    
     6 'Prefactor '    130.45       1.0000         .10000E-03   10000.    
     7 'norm      '    .14779E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .15966E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    .10525E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1428       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4137       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26594E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1890       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7187       1.0000         .10000E-03   10000.    
    16 'norm      '    6.0853       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3932       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8731       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0710       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8932       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1642       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.9597       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4222       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.2153       1.0000         .10000E-03   10000.    
    25 'norm      '    1.1236       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1658       1.0000         .10000E-03   10000.    
    27 'norm      '    3.3766       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0663       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.7142       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .74649E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .52419       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=   134.7937     FROM MIGRAD    STATUS=CONVERGED    900 CALLS     1328 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.634        .18995E-05** at limit **
   2  Prefactor     .10001E-03    105.03       -.17346E-04** at limit **
   3  norm          .10000E-03    7.8854        .11020E-05** at limit **
   4  Prefactor     .10001E-03    191.05        .37620E-04** at limit **
   5  Prefactor     .10000E-03    680.73       -.14878E-04** at limit **
   6  Prefactor     21.763        139.45        .14567E-04    .16694E-05
   7  norm          .10000E-03    64.226       -.14350E-05** at limit **
   8  norm          .10000E-03    28.775        .18665E-05** at limit **
   9  norm          .10000E-03    11.313       -.40381E-05** at limit **
  10  Prefactor     .10000E-03    278.17       -.61957E-06** at limit **
  11  Prefactor    10000.0        7199.6       -.22753E-04** at limit **
  12  Prefactor     .10000E-03    87.546        .34779E-05** at limit **
  13  Prefactor     .45923E-02    38.060        .30394E-05   -.20477E-03
  14  Prefactor    10000.0        6509.6       -.41150E-04** at limit **
  15  Prefactor    10000.0        9989.0        .18903E-03** at limit **
  16  norm         10000.0        9467.0       -.68564E-04** at limit **
  17  norm         10000.0        9920.4        .18725E-03** at limit **
  18  Prefactor     1.7511        3.7371       -.24104E-05    .34940E-03
  19  Prefactor    10000.0        9273.4        .17500E-04** at limit **
  20  Prefactor     .96004E-02    .59103        .86405E-06   -.37675E-04
  21  Prefactor     5.6506        1.4238        .25060E-06   -.50059E-04
  22  Prefactor     5.9597        1.0036         .0000         .0000    
  23  Prefactor     1.4222        1.0811         .0000         .0000    
  24  Prefactor     7.2153        1.0024         .0000         .0000    
  25  norm          1.1236        1.1721         .0000         .0000    
  26  Prefactor     1.1658        1.1493         .0000         .0000    
  27  norm          3.3766        1.0114         .0000         .0000    
  28  Prefactor     1.0663        1.2185         .0000         .0000    
  29  Prefactor     .10000E-03    717.59        .17446E-04** at limit **
  30  Normalizat    .10000E-01    1.3153       -.39066E-04** at limit **
  31  Prefactor     .48592        .34046       -.29916E-05    .20783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100001
  Prefactor  = 21.7633
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0045923
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 1.75113
  Prefactor  = 10000
  Prefactor  = 0.00960044
  Prefactor  = 5.65061
  Prefactor  = 5.95967
  Prefactor  = 1.42219
  Prefactor  = 7.21531
  norm       = 1.12355
  Prefactor  = 1.16584
  norm       = 3.37659
  Prefactor  = 1.06631
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.485915
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   134.7937     FROM HESSE     STATUS=FAILED        95 CALLS     1423 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.564        .92060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    100.24        .80332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.5979        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    189.27        .21078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    657.92        .38870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.763        96.652        .88131E-03   -1.6641    
   7  norm          .10000E-03    62.030        .90967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    27.959        .91026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    11.289        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    268.49        .10861E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor    10000.0        7332.1        .54737E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    85.067        .91552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .45923E-02    9588.9        .33439E-02   -1.5721    
  14  Prefactor    10000.0        6528.3        .69546E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        9999.6        .61750E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        9431.5        .40689E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        9909.7        .39685E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.7511        9333.4        .51259E-02   -1.5443    
  19  Prefactor    10000.0        9313.8        .11729E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .96004E-02    5969.7        .75595E-02   -1.5727    
  21  Prefactor     5.6506        2295.9        .49378E-02   -1.5233    
  22  Prefactor     522.34        516.34         .0000       -1.5220    
  23  Prefactor     1.4222        1.0811         .0000       -1.5469    
  24  Prefactor     7.2153        1.0024         .0000       -1.5171    
  25  norm          1.1236        1.1721         .0000       -1.5496    
  26  Prefactor     1.1658        1.1493         .0000       -1.5492    
  27  norm          3.3766        1.0114         .0000       -1.5340    
  28  Prefactor     1.0663        1.2185         .0000       -1.5501    
  29  Prefactor     .10000E-03    .53667E-01    .17446E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .27207       -.39066E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .48592        .83749       -.29916E-05   -2.0153    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.72672e-10
Minuit parameter uncertainties:
  1  5.47598e-05
  2  0.00186616
  3  1.439e-05
  4  0.00203139
  5  0.00191622
  6  91.9764
  7  3.95836e-05
  8  2.40856e-05
  9  3.8431e-05
  10  0.000417977
  11  0.00991735
  12  0.000139594
  13  17.1489
  14  0.00338757
  15  0.387859
  16  0.429958
  17  1.22619
  18  1151.7
  19  0.323494
  20  70.1132
  21  237.641
  22  1.00356
  23  1.08115
  24  1.00242
  25  1.17211
  26  1.14936
  27  1.01141
  28  1.21855
  29  3.58844e-06
  30  1.26416e-05
  31  0.860263
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 134.793747403

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.000e+04  3.388e-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:  4.859e-01  8.603e-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.264e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.43
Ra Dec: 128.667 44.050
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.83e-05 +/- 9.56e-12
Energy Flux (Fixed Index): 1.17e-02 +/- 3.96e-09

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) = 131.144223723
delta logL = 3.64952368015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 131.133728311
delta logL = 3.66001909206

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3343       1.0000          .0000       10.000    
     3 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .32086       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=   131.1100     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      287 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7165.3        8318.3        .18142E-01   -.17554E-04
   2  Index         3.4940        .77516        .57726E-04   -.32994E-03
   3  Normalizat    .10000E-01    .57561        .51346E-02** at limit **
   4  Prefactor     .32979        .23580        .14523E-03    .37530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7165.31
  Index      = 3.49396
  Normalizat = 0.01
  Prefactor  = 0.329795
 **********
 **   18 **HESSE 
 **********

 FCN=   131.1100     FROM HESSE     STATUS=OK            23 CALLS      310 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7165.3        8253.7        .72570E-03    .44789    
   2  Index         3.4940        .79182        .11545E-04   -.30596    
   3  Normalizat    .10000E-01    .57562        .10269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .32979        .23615        .29047E-04   -1.2056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90968e-09
Minuit parameter uncertainties:
  1  11436
  2  0.795503
  3  3.53125e-06
  4  0.236844
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/579946': 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) = 131.109962536
delta logL = 3.68378486662

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  7.165e+03  1.144e+04  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  3.494e+00  7.955e-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:  3.298e-01  2.368e-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  3.531e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.16
Ra Dec: 128.667 44.050
Photon Index (Free Index): 3.49 +/- 0.80
Photon Flux (Free Index): 2.64e-04 +/- 1.44e-04
Energy Flux (Free Index): 4.39e-02 +/- 2.16e-02

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/579946/cmap_HighResolution_603504001_603763201_4FGL_J0834.6+4402_daily_bin1405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.83e-05', energy_flux2='4.39e-02', photon_flux_error='9.56e-12', dlogl='3.68e+00', energy_flux='1.17e-02', photon_flux2='2.64e-04', job_status='DONE', time_completed='2021-08-30 02:01:45.807518', photon_index_error2='0.80', photon_index2='3.49', ts='4.43', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='2.16e-02', EG='0.01', time_epoch_completed='1630314105.81', return_code='101', job_id='579946', GAL2='0.33', EG2='0.01', return_code2='0', energy_flux_error='3.96e-09', photon_flux_error2='1.44e-04', ts2='12.16', photon_index='2.25' WHERE bin_id='1405' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:01:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 579946: <4FGL_J0834.6+4402_daily_bin1405> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin1405 128.667 44.05 603504001 603763201 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 :                                   420.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             199.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   682 sec.
    Turnaround time :                            684 sec.

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

