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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin1510
RA = 128.667, Dec = 44.05
tmin = 630720001, tmax = 630979201
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='580099', job_status='RUN', time_executed='2021-08-30 01:54:47.688494', time_epoch_executed='1630313687.69' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='1510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580099/ft1_4FGL_J0834.6+4402_daily_bin1510.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580099/ft2_4FGL_J0834.6+4402_daily_bin1510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580099/ft1_4FGL_J0834.6+4402_daily_bin1510.fits outfile=/scratch/kocevski/580099/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1510.fits ra=128.667 dec=44.05 rad=12.0 tmin=630720001.0 tmax=630979201.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.71
sys 3.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580099/ft1_filtered_4FGL_J0834.6+4402_daily_bin1510.fits" evtable="EVENTS" scfile=/scratch/kocevski/580099/ft2_4FGL_J0834.6+4402_daily_bin1510.fits sctable="SC_DATA" outfile=/scratch/kocevski/580099/ltcube_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.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/580099/ft2_4FGL_J0834.6+4402_daily_bin1510.fits
.....................!
real 15.29
user 11.78
sys 3.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580099/ft1_filtered_4FGL_J0834.6+4402_daily_bin1510.fits evtable="EVENTS" scfile=/scratch/kocevski/580099/ft2_4FGL_J0834.6+4402_daily_bin1510.fits sctable="SC_DATA" expcube=/scratch/kocevski/580099/ltcube_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.fits outfile=/scratch/kocevski/580099/expmap_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.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/580099/ltcube_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.fits
.....................!
real 192.87
user 184.77
sys 7.70

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/580099/ft1_filtered_4FGL_J0834.6+4402_daily_bin1510.fits scfile=/scratch/kocevski/580099/ft2_4FGL_J0834.6+4402_daily_bin1510.fits outfile=/scratch/kocevski/580099/cmap_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.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.46
user 0.37
sys 2.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580099/ft1_filtered_4FGL_J0834.6+4402_daily_bin1510.fits scfile=/scratch/kocevski/580099/ft2_4FGL_J0834.6+4402_daily_bin1510.fits outfile=/scratch/kocevski/580099/cmap_HighResolution_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.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.60
user 0.39
sys 2.90

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11687E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12056E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10852E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19660E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.547       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.144       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.666       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.782       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    21.845       1.0000         .10000E-03   10000.    
    17 'norm      '    9.3838       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.339       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7668       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .74915       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.7326       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.7207       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .49920       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .64806       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=   1062.183     FROM MIGRAD    STATUS=CONVERGED    807 CALLS     4130 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1273.5       -.10709E-05** at limit **
   2  Prefactor     .10000E-03    596.24       -.43090E-06** at limit **
   3  norm          .10000E-03    57.835        .77158E-08** at limit **
   4  Prefactor     .10000E-03    86.643       -.44241E-08** at limit **
   5  Prefactor     .10000E-03    189.43        .20002E-06** at limit **
   6  Prefactor     .10000E-03    279.50        .12744E-05** at limit **
   7  norm          .10000E-03    37.353       -.38143E-08** at limit **
   8  norm          18.547        18.619       -.39699E-06    .20293E-04
   9  norm          .10000E-03    1.6449       -.51803E-07** at limit **
  10  Prefactor     61.137        87.746        .54142E-06   -.94420E-05
  11  Prefactor     15.670        63.645       -.57168E-07    .66583E-05
  12  Prefactor     21.780        25.540        .30080E-06   -.25957E-04
  13  Prefactor     .10000E-03    92.833       -.12629E-06** at limit **
  14  Prefactor     .10000E-03    15.025       -.24017E-07** at limit **
  15  Prefactor     .10000E-03    37.377       -.44063E-06** at limit **
  16  norm          21.845        25.495       -.10313E-05    .18910E-05
  17  norm          9.3828        21.251        .23955E-05   -.40641E-04
  18  Prefactor     35.328        62.245       -.18815E-05    .16775E-04
  19  Prefactor     8.7663        6.7843        .19492E-06   -.14768E-04
  20  Prefactor     .10000E-03    18.846       -.13277E-06** at limit **
  21  Prefactor     .10000E-03    46.701        .50889E-08** at limit **
  22  Prefactor     .10000E-03    98.250       -.48090E-07** at limit **
  23  Prefactor     .10000E-03    7.3836       -.11394E-06** at limit **
  24  Prefactor     .10000E-03    20.439       -.10638E-07** at limit **
  25  norm          .74858        .73440        .33536E-06    .10119E-04
  26  Prefactor     .10005E-03    5.0830       -.23040E-06** at limit **
  27  norm          4.7329        8.4156        .11850E-06   -.13083E-04
  28  Prefactor     9.7216        4.8838        .78451E-07   -.23345E-04
  29  Prefactor     .10000E-03    4.9221       -.48000E-08** at limit **
  30  Normalizat    .49924        .38965        .10808E-05   -.33736E-05
  31  Prefactor     .64806        .35079       -.58743E-06    .61444E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.5473
  norm       = 0.0001
  Prefactor  = 61.1374
  Prefactor  = 15.6699
  Prefactor  = 21.7805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 21.8449
  norm       = 9.38275
  Prefactor  = 35.328
  Prefactor  = 8.76633
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.748584
  Prefactor  = 0.000100047
  norm       = 4.73293
  Prefactor  = 9.72158
  Prefactor  = 0.0001
  Normalizat = 0.499236
  Prefactor  = 0.648064
 **********
 **   18 **HESSE 
 **********

 FCN=   1062.183     FROM HESSE     STATUS=OK           616 CALLS     4746 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1274.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    596.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    57.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    86.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    189.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    287.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    37.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.547        18.567        .46500E-03   -1.4846    
   9  norm          .10000E-03    1.6482        .40750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     61.137        87.530        .51313E-04   -1.4143    
  11  Prefactor     15.670        63.378        .10119E-03   -1.4916    
  12  Prefactor     21.780        25.478        .85822E-04   -1.4774    
  13  Prefactor     .10000E-03    92.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.027        .12343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          21.845        25.250        .85699E-04   -1.4773    
  17  norm          9.3828        20.295        .65413E-03   -1.5095    
  18  Prefactor     35.328        61.608        .67413E-04   -1.4519    
  19  Prefactor     8.7663        6.8104        .66603E-04   -1.5116    
  20  Prefactor     .10000E-03    18.857        .13821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    98.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6170        .17244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.471        .14392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .74858        .71910        .24907E-04   -1.5535    
  26  Prefactor     .10005E-03    15.648        .13251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.7329        8.3997        .11937E-03   -1.5273    
  28  Prefactor     9.7216        4.9101        .46231E-04   -1.5084    
  29  Prefactor     .10000E-03    4.9338        .70626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .49924        .42808        .28621E-03   -1.1245    
  31  Prefactor     .64806        .38763        .25274E-03   -1.0560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00392e-09
Minuit parameter uncertainties:
  1  0.0040348
  2  0.00126238
  3  2.69305e-06
  4  5.64571e-05
  5  0.000255906
  6  0.000690503
  7  4.89211e-06
  8  18.5724
  9  1.5252e-06
  10  87.7151
  11  63.1439
  12  25.4911
  13  7.39294e-05
  14  5.96637e-06
  15  6.09539e-05
  16  25.2618
  17  20.3098
  18  61.7193
  19  6.81099
  20  1.54703e-05
  21  1.39424e-05
  22  7.64913e-05
  23  4.07807e-05
  24  1.25955e-05
  25  0.719109
  26  0.0017087
  27  8.40182
  28  4.91028
  29  2.39682e-06
  30  0.430942
  31  0.389246
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  5.966e-06  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:  6.481e-01  3.892e-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:  4.992e-01  4.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 128.667 44.050
Photon Flux Upper Limit: 2.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.77e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/580099/likelihoodResults_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1062.18378839
delta logL = -0.000300069465311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1062.18349037
delta logL = -2.04399520953e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6645       1.0000          .0000       10.000    
     3 'Normalizat'    .49921       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64809       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=   1062.183     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      277 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10467E-03    14.084        .99256E-02** at limit **
   2  Index         2.5584        8.6122        .50000        .26615E-04
   3  Normalizat    .49924        .99395E-02    .28621E-03   -.51439E-05
   4  Prefactor     .64806        .10038E-01    .25274E-03   -.13764E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010467
  Index      = 2.55839
  Normalizat = 0.499236
  Prefactor  = 0.648063
 **********
 **   18 **HESSE 
 **********

 FCN=   1062.183     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10467E-03    151.54        .10404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5584        7.4500        .50000       -.51017    
   3  Normalizat    .49924        .33110E-01    .11448E-04   -1.1245    
   4  Prefactor     .64806        .33439E-01    .10110E-04   -1.0560    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25656e-08
Minuit parameter uncertainties:
  1  0.0533383
  2  424.957
  3  0.0331117
  4  0.0334404
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580099': 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): 102
logL (Free Index) = 1062.18348989
delta logL = -1.57228100761e-06

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.047e-04  5.334e-02  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.558e+00  4.250e+02  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:  6.481e-01  3.344e-02  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:  4.992e-01  3.311e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 128.667 44.050

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/580099/cmap_HighResolution_630720001_630979201_4FGL_J0834.6+4402_daily_bin1510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-02', job_status='DONE', photon_flux_upper_limit='2.31e-07', time_completed='2021-08-30 02:02:46.684853', job_id='580099', GAL2='0.65', fit_tolerance='1e-08', EG2='0.50', EG='0.50', time_epoch_completed='1630314166.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='-1.57e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1510' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:02:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 580099: <4FGL_J0834.6+4402_daily_bin1510> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin1510> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 01:50:34 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:50:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 01:50:35 2021
Terminated at Mon Aug 30 02:02:47 2021
Results reported at Mon Aug 30 02:02:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin1510 128.667 44.05 630720001 630979201 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 :                                   514.03 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             228.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            733 sec.

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

