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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin684
RA = 128.667, Dec = 44.05
tmin = 416620801, tmax = 416880001
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='573883', job_status='RUN', time_executed='2021-08-30 01:31:16.476383', time_epoch_executed='1630312276.48' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573883

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573883/ft1_4FGL_J0834.6+4402_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573883/ft2_4FGL_J0834.6+4402_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573883/ft1_4FGL_J0834.6+4402_daily_bin684.fits outfile=/scratch/kocevski/573883/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin684.fits ra=128.667 dec=44.05 rad=12.0 tmin=416620801.0 tmax=416880001.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.41
user 4.94
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573883/ft1_filtered_4FGL_J0834.6+4402_daily_bin684.fits" evtable="EVENTS" scfile=/scratch/kocevski/573883/ft2_4FGL_J0834.6+4402_daily_bin684.fits sctable="SC_DATA" outfile=/scratch/kocevski/573883/ltcube_416620801_416880001_4FGL_J0834.6+4402_daily_bin684.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/573883/ft2_4FGL_J0834.6+4402_daily_bin684.fits
.....................!
real 11.99
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573883/ft1_filtered_4FGL_J0834.6+4402_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/573883/ft2_4FGL_J0834.6+4402_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/573883/ltcube_416620801_416880001_4FGL_J0834.6+4402_daily_bin684.fits outfile=/scratch/kocevski/573883/expmap_416620801_416880001_4FGL_J0834.6+4402_daily_bin684.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/573883/ltcube_416620801_416880001_4FGL_J0834.6+4402_daily_bin684.fits
.....................!
real 191.97
user 185.54
sys 5.21

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/573883/ft1_filtered_4FGL_J0834.6+4402_daily_bin684.fits scfile=/scratch/kocevski/573883/ft2_4FGL_J0834.6+4402_daily_bin684.fits outfile=/scratch/kocevski/573883/cmap_416620801_416880001_4FGL_J0834.6+4402_daily_bin684.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573883/ft1_filtered_4FGL_J0834.6+4402_daily_bin684.fits scfile=/scratch/kocevski/573883/ft2_4FGL_J0834.6+4402_daily_bin684.fits outfile=/scratch/kocevski/573883/cmap_HighResolution_416620801_416880001_4FGL_J0834.6+4402_daily_bin684.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.3963       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    66.233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2052       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5407       1.0000         .10000E-03   10000.    
     9 'norm      '    .72209       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0508       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.724       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3144       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0059       1.0000         .10000E-03   10000.    
    17 'norm      '    .25903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.108       1.0000         .10000E-03   10000.    
    25 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .31703       1.0000         .10000E-03   10000.    
    27 'norm      '    2.2753       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .47509       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .75042       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .96962       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=   5064.710     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4259 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1848        .89294E-07** at limit **
   2  Prefactor     .10000E-03    8.1814        .49523E-06** at limit **
   3  norm          4.3960        2.7067        .25458E-07   -.55574E-04
   4  Prefactor     .10000E-03    14.991        .44690E-05** at limit **
   5  Prefactor     66.218        47.391       -.12379E-05   -.13947E-03
   6  Prefactor     .10000E-03    3.0235        .23273E-06** at limit **
   7  norm          3.2047        4.0364        .40777E-07    .50404E-04
   8  norm          1.5406        1.4364        .13116E-07    .35886E-04
   9  norm          .72199        .52776        .98671E-07    .48167E-03
  10  Prefactor     .10000E-03    3.8086        .20576E-07** at limit **
  11  Prefactor     17.476        11.048        .13707E-06    .64685E-04
  12  Prefactor     2.0501        2.2466        .54852E-07   -.24570E-05
  13  Prefactor     .10000E-03    26.772        .15791E-05** at limit **
  14  Prefactor     17.720        11.889        .47353E-06    .73870E-04
  15  Prefactor     8.3296        7.6014        .27731E-06    .21257E-03
  16  norm          8.0333        8.4692        .55958E-06    .40220E-03
  17  norm          .13383        20.506       -.46871E-05    .70090E-03
  18  Prefactor     .10000E-03    6.7596       -.10589E-07** at limit **
  19  Prefactor     .10000E-03    .70326       -.55728E-07** at limit **
  20  Prefactor     .10000E-03    12.461        .28133E-06** at limit **
  21  Prefactor     .10000E-03    33.051       -.14472E-05** at limit **
  22  Prefactor     .10000E-03    58.807       -.36147E-05** at limit **
  23  Prefactor     .10000E-03    1.7681        .90072E-07** at limit **
  24  Prefactor     11.103        19.681       -.17535E-05   -.57454E-04
  25  norm          .10000E-03    .24046       -.50039E-07** at limit **
  26  Prefactor     .31678        1.8136        .38782E-06    .88410E-04
  27  norm          2.2736        9.0402        .22166E-05    .71944E-03
  28  Prefactor     .47453        1.7346       -.18421E-07    .99938E-04
  29  Prefactor     .10000E-03    2.9782       -.30839E-07** at limit **
  30  Normalizat    .75064        .18488       -.14913E-05   -.47215E-04
  31  Prefactor     .96960        .15304        .46886E-06   -.11932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.39596
  Prefactor  = 0.000100002
  Prefactor  = 66.2181
  Prefactor  = 0.0001
  norm       = 3.20473
  norm       = 1.54062
  norm       = 0.721987
  Prefactor  = 0.0001
  Prefactor  = 17.4763
  Prefactor  = 2.05006
  Prefactor  = 0.000100001
  Prefactor  = 17.7201
  Prefactor  = 8.32959
  norm       = 8.03332
  norm       = 0.133832
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 11.103
  norm       = 0.0001
  Prefactor  = 0.316785
  norm       = 2.27365
  Prefactor  = 0.474527
  Prefactor  = 0.0001
  Normalizat = 0.750636
  Prefactor  = 0.969604
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.710     FROM HESSE     STATUS=OK           626 CALLS     4885 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1886        .12403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.3960        2.7061        .88901E-04   -1.5289    
   4  Prefactor     .10000E-03    15.564        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     66.218        48.275        .49315E-04   -1.4079    
   6  Prefactor     .10000E-03    3.1058        .24143E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2047        4.0134        .15130E-03   -1.5350    
   8  norm          1.5406        1.4425        .78913E-04   -1.5460    
   9  norm          .72199        .51454        .42429E-04   -1.5538    
  10  Prefactor     .10000E-03    3.8127        .13561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.476        11.038        .95805E-04   -1.4872    
  12  Prefactor     2.0501        2.2334        .10706E-03   -1.5422    
  13  Prefactor     .10000E-03    26.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.720        11.877        .95135E-04   -1.4866    
  15  Prefactor     8.3296        7.6496        .13903E-03   -1.5131    
  16  norm          8.0333        8.5695        .14170E-03   -1.5141    
  17  norm          .13383        113.26        .28861E-02   -1.5635    
  18  Prefactor     .10000E-03    6.7781        .18071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .70686        .58253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    59.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.8277        .18420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.103        20.020        .12021E-03   -1.5041    
  25  norm          .10000E-03    .51501        .59853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .31678        2.2514        .15914E-02   -1.5595    
  27  norm          2.2736        10.129        .13612E-02   -1.5406    
  28  Prefactor     .47453        1.6675        .16843E-03   -1.5570    
  29  Prefactor     .10000E-03    2.9806        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .75064        .20816        .26276E-03   -1.0193    
  31  Prefactor     .96960        .17328        .20806E-03   -.93750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55399e-08
Minuit parameter uncertainties:
  1  5.68092e-06
  2  3.10695e-05
  3  2.70618
  4  0.000353099
  5  48.3036
  6  8.78326e-06
  7  4.01373
  8  1.44253
  9  0.514545
  10  6.43853e-07
  11  11.0392
  12  2.2335
  13  0.000268321
  14  11.879
  15  7.65049
  16  8.57077
  17  7.79857
  18  2.49909e-06
  19  5.25819e-07
  20  6.31344e-05
  21  0.000269319
  22  0.000855971
  23  7.71169e-06
  24  20.0325
  25  3.31286e-06
  26  1.68885
  27  9.60039
  28  1.66767
  29  3.19362e-08
  30  0.208379
  31  0.173376
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.772e+01  1.188e+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:  9.696e-01  1.734e-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:  7.506e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 128.667 44.050
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 5.01e-08 +/- 3.35e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.39e-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) = 5064.70591303
delta logL = 0.00446151988399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5064.70292262
delta logL = 0.0074519361433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.782       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1670       1.0000          .0000       10.000    
     3 'Normalizat'    .75523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96761       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=   5064.703     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      246 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.777        15.614        .92417E-04    .12055E-03
   2  Index         2.1673        .66228        .71481E-02    .33840E-03
   3  Normalizat    .75553        .19603        .26201E-03    .40701E-04
   4  Prefactor     .96729        .17163        .20828E-03    .11264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.7771
  Index      = 2.16731
  Normalizat = 0.755528
  Prefactor  = 0.967291
 **********
 **   18 **HESSE 
 **********

 FCN=   5064.703     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.777        15.120        .36967E-05   -1.4841    
   2  Index         2.1673        .64067        .14296E-02   -.60230    
   3  Normalizat    .75553        .19582        .10480E-04   -1.0174    
   4  Prefactor     .96729        .17163        .41656E-04   -.93828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93586e-11
Minuit parameter uncertainties:
  1  15.1235
  2  0.643281
  3  0.196005
  4  0.171731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573883': 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) = 5064.70292065
delta logL = 0.00745390335396

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.878e+01  1.512e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.167e+00  6.433e-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:  9.673e-01  1.717e-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:  7.555e-01  1.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.54
Ra Dec: 128.667 44.050
Photon Index (Free Index): 2.17 +/- 0.64
Photon Flux (Free Index): 4.61e-08 +/- 4.50e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.94e-05

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/573883/cmap_HighResolution_416620801_416880001_4FGL_J0834.6+4402_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.01e-08', energy_flux2='2.20e-05', photon_flux_error='3.35e-08', dlogl='7.45e-03', energy_flux='2.07e-05', photon_flux2='4.61e-08', job_status='DONE', time_completed='2021-08-30 01:44:03.302446', photon_index_error2='0.64', photon_index2='2.17', ts='4.54', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='1.94e-05', EG='0.75', time_epoch_completed='1630313043.3', return_code='0', job_id='573883', GAL2='0.97', EG2='0.76', return_code2='0', energy_flux_error='1.39e-05', photon_flux_error2='4.50e-08', ts2='4.54', photon_index='2.25' WHERE bin_id='684' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:44:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 573883: <4FGL_J0834.6+4402_daily_bin684> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin684> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 01:30:38 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:30:40 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:30:40 2021
Terminated at Mon Aug 30 01:44:04 2021
Results reported at Mon Aug 30 01:44:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin684 128.667 44.05 416620801 416880001 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 :                                   763.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

