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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin609
RA = 128.667, Dec = 44.05
tmin = 397180801, tmax = 397440001
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='573766', job_status='RUN', time_executed='2021-08-30 01:32:11.360311', time_epoch_executed='1630312331.36' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/573766

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/573766/ft1_4FGL_J0834.6+4402_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/573766/ft2_4FGL_J0834.6+4402_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/573766/ft1_4FGL_J0834.6+4402_daily_bin609.fits outfile=/scratch/kocevski/573766/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin609.fits ra=128.667 dec=44.05 rad=12.0 tmin=397180801.0 tmax=397440001.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.30
user 3.73
sys 0.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/573766/ft1_filtered_4FGL_J0834.6+4402_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/573766/ft2_4FGL_J0834.6+4402_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/573766/ltcube_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.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/573766/ft2_4FGL_J0834.6+4402_daily_bin609.fits
.....................!
real 11.09
user 10.19
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/573766/ft1_filtered_4FGL_J0834.6+4402_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/573766/ft2_4FGL_J0834.6+4402_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/573766/ltcube_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.fits outfile=/scratch/kocevski/573766/expmap_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.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/573766/ltcube_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.fits
.....................!
real 198.02
user 192.07
sys 4.60

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/573766/ft1_filtered_4FGL_J0834.6+4402_daily_bin609.fits scfile=/scratch/kocevski/573766/ft2_4FGL_J0834.6+4402_daily_bin609.fits outfile=/scratch/kocevski/573766/cmap_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.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.76
user 0.36
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/573766/ft1_filtered_4FGL_J0834.6+4402_daily_bin609.fits scfile=/scratch/kocevski/573766/ft2_4FGL_J0834.6+4402_daily_bin609.fits outfile=/scratch/kocevski/573766/cmap_HighResolution_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.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.74
user 0.39
sys 0.35

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0307       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3875       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2752       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.2418       1.0000         .10000E-03   10000.    
     7 'norm      '    4.7938       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.1838       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8150       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .88238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.9897       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9265       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    43.710       1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.059       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2006       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .65792       1.0000         .10000E-03   10000.    
    21 'Prefactor '    120.07       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .88972       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .15190       1.0000         .10000E-03   10000.    
    27 'norm      '    .75378E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    3.6208       1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.299       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95408       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .75250       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=   4750.459     FROM MIGRAD    STATUS=CONVERGED   1481 CALLS     4843 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0313        8.9410        .16350E-03   -.10708E-04
   2  Prefactor     .10000E-03    12.638        .18142E-02** at limit **
   3  norm          2.3876        2.0032        .86494E-04   -.16956E-04
   4  Prefactor     5.2757        5.6185        .16117E-03    .27721E-04
   5  Prefactor     24.239        39.585        .81381E-04    .58673E-05
   6  Prefactor     3.2423        3.6815        .13507E-03   -.78277E-05
   7  norm          4.7942        3.3786        .10330E-03    .27513E-05
   8  norm          .10000E-03    .49703        .47338E-03** at limit **
   9  norm          1.1839        .59197        .35952E-04    .43006E-04
  10  Prefactor     .10000E-03    4.2836        .13918E-02** at limit **
  11  Prefactor     9.8159        8.8394        .12791E-03    .13066E-04
  12  Prefactor     .88263        2.1356        .15402E-03   -.74553E-04
  13  Prefactor     .10000E-03    9.4731        .18142E-02** at limit **
  14  Prefactor     8.9923        9.7640        .13368E-03    .19816E-04
  15  Prefactor     5.9259        6.6141        .16495E-03    .33772E-04
  16  norm          .10000E-03    3.2762        .12150E-02** at limit **
  17  norm          43.703        12.026        .60639E-04    .20518E-03
  18  Prefactor     24.056        20.331        .81665E-04    .61949E-04
  19  Prefactor     3.2005        2.2946        .84936E-04    .26382E-03
  20  Prefactor     .57174        14.794        .22105        .33414E-04
  21  Prefactor     119.97        95.506        .18363E-03    .36651E-04
  22  Prefactor     .10000E-03    26.224        .18142E-02** at limit **
  23  Prefactor     .88593        4.9791        .25541E-03    .14760E-03
  24  Prefactor     .10000E-03    43.382        .18142E-02** at limit **
  25  norm          .10000E-03    .45153        .67034E-03** at limit **
  26  Prefactor     .15699        12.608        .15986E-02    .31481E-03
  27  norm          .10002E-03    34.242        .38757E-02** at limit **
  28  Prefactor     3.6174        3.9933        .59570E-03    .58765E-03
  29  Prefactor     10.298        11.830        .12485E-03    .61554E-04
  30  Normalizat    .95383        .23488        .24709E-03    .30402E-03
  31  Prefactor     .75261        .18339        .23323E-03    .40340E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.03135
  Prefactor  = 0.0001
  norm       = 2.3876
  Prefactor  = 5.27566
  Prefactor  = 24.239
  Prefactor  = 3.24234
  norm       = 4.79417
  norm       = 0.0001
  norm       = 1.18389
  Prefactor  = 0.0001
  Prefactor  = 9.81586
  Prefactor  = 0.882631
  Prefactor  = 0.0001
  Prefactor  = 8.9923
  Prefactor  = 5.92589
  norm       = 0.0001
  norm       = 43.7033
  Prefactor  = 24.0558
  Prefactor  = 3.20047
  Prefactor  = 0.57174
  Prefactor  = 119.966
  Prefactor  = 0.0001
  Prefactor  = 0.885927
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.156994
  norm       = 0.000100023
  Prefactor  = 3.6174
  Prefactor  = 10.2978
  Normalizat = 0.953831
  Prefactor  = 0.752605
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.459     FROM HESSE     STATUS=OK           596 CALLS     5439 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0313        8.9413        .65400E-05   -1.5217    
   2  Prefactor     .10000E-03    12.640        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3876        2.0032        .34598E-05   -1.5399    
   4  Prefactor     5.2757        5.6182        .64469E-05   -1.5249    
   5  Prefactor     24.239        39.576        .32552E-05   -1.4723    
   6  Prefactor     3.2423        3.6816        .54028E-05   -1.5348    
   7  norm          4.7942        3.3787        .41322E-05   -1.5270    
   8  norm          .10000E-03    .49703        .94675E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.1839        .59197        .14381E-05   -1.5490    
  10  Prefactor     .10000E-03    4.2837        .27836E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8159        8.8393        .51163E-05   -1.5081    
  12  Prefactor     .88263        2.1356        .61606E-05   -1.5520    
  13  Prefactor     .10000E-03    9.4733        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.9923        9.7651        .53471E-05   -1.5108    
  15  Prefactor     5.9259        6.6151        .65981E-05   -1.5221    
  16  norm          .10000E-03    3.2765        .24301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          43.703        12.191        .12128E-04   -1.4385    
  18  Prefactor     24.056        20.360        .16333E-04   -1.4727    
  19  Prefactor     3.2005        2.2942        .33974E-05   -1.5350    
  20  Prefactor     .57174        534.54        .47615E-02   -1.5557    
  21  Prefactor     119.97        100.52        .73452E-05   -1.3513    
  22  Prefactor     .10000E-03    26.225        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .88593        4.9621        .10217E-04   -1.5520    
  24  Prefactor     .10000E-03    43.400        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .45158        .13407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .15699        12.315        .63946E-04   -1.5629    
  27  norm          .10002E-03    34.604        .77515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.6174        3.9720        .23828E-04   -1.5328    
  29  Prefactor     10.298        11.830        .49942E-05   -1.5066    
  30  Normalizat    .95383        .23475        .49419E-04   -.94594    
  31  Prefactor     .75261        .18320        .46645E-04   -1.0150    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.35921e-09
Minuit parameter uncertainties:
  1  8.94329
  2  1.78906e-05
  3  2.0033
  4  5.61877
  5  39.6193
  6  3.68186
  7  3.3788
  8  4.42586e-07
  9  0.591976
  10  4.19726e-06
  11  8.84045
  12  2.1358
  13  4.37163e-06
  14  9.7668
  15  6.61592
  16  1.85715e-06
  17  12.1912
  18  20.3661
  19  2.29421
  20  35.2809
  21  100.668
  22  4.42449e-06
  23  4.19365
  24  4.24331e-05
  25  4.92228e-06
  26  2.78065
  27  0.00180057
  28  3.97227
  29  11.8328
  30  0.235007
  31  0.183351
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  8.992e+00  9.767e+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

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  7.526e-01  1.834e-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.538e-01  2.350e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.79
Ra Dec: 128.667 44.050
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.76e-08
Energy Flux (Fixed Index): 1.05e-05 +/- 1.14e-05

TS (Fixed Index): 1.79
Ra Dec: 128.667 44.050
Photon Flux Upper Limit: 9.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/573766/likelihoodResults_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.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): 0
logL (Free Index) = 4750.3572588
delta logL = 0.102164876344

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4750.32927276
delta logL = 0.130150916781

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8843       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0234       1.0000          .0000       10.000    
     3 'Normalizat'    .91836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77152       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=   4750.329     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      280 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8834        140.54        .11236E-03   -.16803E-02
   2  Index         3.0235        6.3087        .58413E-02   -.27044E-03
   3  Normalizat    .91840        .31371        .25117E-03   -.52144E-04
   4  Prefactor     .77150        .21949        .23068E-03   -.35283E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.8834
  Index      = 3.0235
  Normalizat = 0.918399
  Prefactor  = 0.771501
 **********
 **   18 **HESSE 
 **********

 FCN=   4750.329     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8834        11.810        .44945E-05   -1.5314    
   2  Index         3.0235        1.7760        .23365E-03   -.40639    
   3  Normalizat    .91840        .22322        .10047E-04   -.95817    
   4  Prefactor     .77150        .18292        .46136E-04   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88627e-09
Minuit parameter uncertainties:
  1  11.8168
  2  1.82355
  3  0.223445
  4  0.183061
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/573766': 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) = 4750.32927273
delta logL = 0.130150945458

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  3.883e+00  1.182e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  3.023e+00  1.824e+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:  7.715e-01  1.831e-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.184e-01  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 128.667 44.050
Photon Index (Free Index): 3.02 +/- 1.82
Photon Flux (Free Index): 5.15e-08 +/- 6.61e-08
Energy Flux (Free Index): 1.02e-05 +/- 8.88e-06

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/573766/cmap_HighResolution_397180801_397440001_4FGL_J0834.6+4402_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.55e-03', comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='1.02e-05', photon_flux_error='2.76e-08', dlogl='1.30e-01', energy_flux='1.05e-05', photon_flux2='5.15e-08', job_status='DONE', time_completed='2021-08-30 01:47:06.995743', photon_index_error2='1.82', photon_index2='3.02', ts='1.79', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='9.87e-08', energy_flux_error2='8.88e-06', EG='0.95', time_epoch_completed='1630313227.0', return_code='0', job_id='573766', GAL2='0.77', EG2='0.92', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='6.61e-08', ts2='2.07', photon_index='2.25' WHERE bin_id='609' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:47:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 573766: <4FGL_J0834.6+4402_daily_bin609> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin609 128.667 44.05 397180801 397440001 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 :                                   895.58 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             308.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            997 sec.

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

