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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin711
RA = 128.667, Dec = 44.05
tmin = 423619201, tmax = 423878401
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='575320', job_status='RUN', time_executed='2021-08-30 01:36:36.112605', time_epoch_executed='1630312596.11' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/575320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/575320/ft1_4FGL_J0834.6+4402_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/575320/ft2_4FGL_J0834.6+4402_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/575320/ft1_4FGL_J0834.6+4402_daily_bin711.fits outfile=/scratch/kocevski/575320/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin711.fits ra=128.667 dec=44.05 rad=12.0 tmin=423619201.0 tmax=423878401.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 6.02
user 5.55
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/575320/ft1_filtered_4FGL_J0834.6+4402_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/575320/ft2_4FGL_J0834.6+4402_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/575320/ltcube_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.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/575320/ft2_4FGL_J0834.6+4402_daily_bin711.fits
.....................!
real 12.67
user 12.04
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/575320/ft1_filtered_4FGL_J0834.6+4402_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/575320/ft2_4FGL_J0834.6+4402_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/575320/ltcube_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.fits outfile=/scratch/kocevski/575320/expmap_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.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/575320/ltcube_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.fits
.....................!
real 191.32
user 185.36
sys 5.51

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/575320/ft1_filtered_4FGL_J0834.6+4402_daily_bin711.fits scfile=/scratch/kocevski/575320/ft2_4FGL_J0834.6+4402_daily_bin711.fits outfile=/scratch/kocevski/575320/cmap_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.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.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/575320/ft1_filtered_4FGL_J0834.6+4402_daily_bin711.fits scfile=/scratch/kocevski/575320/ft2_4FGL_J0834.6+4402_daily_bin711.fits outfile=/scratch/kocevski/575320/cmap_HighResolution_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.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.71
user 0.37
sys 0.33

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5296.51008135

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40325E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.993       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0527       1.0000         .10000E-03   10000.    
     7 'norm      '    6.3503       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6670       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11589E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4756       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5498       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.111       1.0000         .10000E-03   10000.    
    17 'norm      '    14.618       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1892       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.761       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.498       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.974       1.0000         .10000E-03   10000.    
    25 'norm      '    .43211       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.6294       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    17.776       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .95061       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91937       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=   5296.477     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     3605 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9145       -.27355E-07** at limit **
   2  Prefactor     .10000E-03    26.992       -.68451E-06** at limit **
   3  norm          .10000E-03    .98756       -.22301E-08** at limit **
   4  Prefactor     .10000E-03    3.1402       -.10834E-06** at limit **
   5  Prefactor     42.984        45.111       -.14371E-05   -.64146E-04
   6  Prefactor     7.0518        4.9844       -.58704E-07   -.28685E-03
   7  norm          6.3503        3.9367        .15817E-06    .16262E-03
   8  norm          1.6670        1.4649       -.57569E-07   -.61498E-04
   9  norm          .10000E-03    .19002       -.18837E-07** at limit **
  10  Prefactor     .10018E-03    14.994        .13684E-05** at limit **
  11  Prefactor     5.4750        7.1324        .28065E-05    .10159E-03
  12  Prefactor     2.5490        4.1839        .55532E-06   -.37892E-03
  13  Prefactor     .10000E-03    26.810       -.64244E-06** at limit **
  14  Prefactor     .10000E-03    9.0569       -.31412E-07** at limit **
  15  Prefactor     .10000E-03    7.4472        .30057E-07** at limit **
  16  norm          12.110        7.0832       -.43787E-07   -.25156E-04
  17  norm          14.617        8.6397       -.67430E-07   -.21887E-04
  18  Prefactor     .10000E-03    11.778        .25146E-07** at limit **
  19  Prefactor     2.1887        2.4900        .42619E-07   -.31900E-04
  20  Prefactor     16.757        20.078       -.28897E-06   -.17327E-04
  21  Prefactor     .10000E-03    22.218        .89637E-06** at limit **
  22  Prefactor     .10000E-03    29.727       -.10029E-05** at limit **
  23  Prefactor     12.499        5.1258        .44230E-06    .14062E-03
  24  Prefactor     11.926        34.885       -.23140E-05   -.13217E-03
  25  norm          .43210        .39356       -.19055E-07   -.30919E-03
  26  Prefactor     .10000E-03    1.5864        .96326E-07** at limit **
  27  norm          2.6430        24.141       -.11205E-05    .45951E-06
  28  Prefactor     .10000E-03    1.5260        .28185E-06** at limit **
  29  Prefactor     17.774        12.650       -.61246E-07   -.10041E-04
  30  Normalizat    .95089        .20462        .68082E-06   -.12753E-03
  31  Prefactor     .91920        .16019       -.62670E-06   -.58998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9836
  Prefactor  = 7.05179
  norm       = 6.35026
  norm       = 1.66704
  norm       = 0.0001
  Prefactor  = 0.000100184
  Prefactor  = 5.47499
  Prefactor  = 2.54899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1103
  norm       = 14.6169
  Prefactor  = 0.0001
  Prefactor  = 2.18874
  Prefactor  = 16.7569
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4986
  Prefactor  = 11.9257
  norm       = 0.432101
  Prefactor  = 0.0001
  norm       = 2.64303
  Prefactor  = 0.0001
  Prefactor  = 17.7738
  Normalizat = 0.950888
  Prefactor  = 0.919197
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.477     FROM HESSE     STATUS=OK           628 CALLS     4233 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.684        .41627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.775        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .99310        .70581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1428        .12587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.984        45.160        .61140E-04   -1.4396    
   6  Prefactor     7.0518        4.9296        .12807E-03   -1.5177    
   7  norm          6.3503        3.9373        .10880E-03   -1.5204    
   8  norm          1.6670        1.4603        .79310E-04   -1.5450    
   9  norm          .10000E-03    .19442        .61777E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10018E-03    52.067        .46017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4750        7.1822        .85856E-03   -1.5240    
  12  Prefactor     2.5490        3.7129        .15679E-03   -1.5389    
  13  Prefactor     .10000E-03    26.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.1391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.110        7.0808        .11511E-03   -1.5012    
  17  norm          14.617        8.6322        .10476E-03   -1.4943    
  18  Prefactor     .10000E-03    11.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1887        2.4750        .11626E-03   -1.5412    
  20  Prefactor     16.757        20.101        .97830E-04   -1.4889    
  21  Prefactor     .10000E-03    22.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.499        5.1358        .97344E-04   -1.5001    
  24  Prefactor     11.926        35.239        .11577E-03   -1.5017    
  25  norm          .43210        .37773        .40602E-04   -1.5577    
  26  Prefactor     .10000E-03    2.5353        .17039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.6430        22.844        .25149E-03   -1.5383    
  28  Prefactor     .10000E-03    1.5922        .17513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     17.774        12.668        .94995E-04   -1.4865    
  30  Normalizat    .95089        .22952        .26698E-03   -.94694    
  31  Prefactor     .91920        .18030        .23142E-03   -.95473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7471e-09
Minuit parameter uncertainties:
  1  2.42758e-05
  2  1.39203e-05
  3  4.15053e-07
  4  2.54564e-06
  5  45.196
  6  4.92987
  7  3.93744
  8  1.46036
  9  5.28591e-07
  10  0.00619291
  11  7.18338
  12  3.71324
  13  9.09722e-05
  14  1.0422e-05
  15  8.52739e-06
  16  7.08131
  17  8.63296
  18  7.92762e-06
  19  2.47511
  20  20.1091
  21  6.5488e-05
  22  1.13768e-05
  23  5.13597
  24  35.3006
  25  0.377731
  26  2.40008e-05
  27  15.5481
  28  2.89456e-07
  29  12.6696
  30  0.229758
  31  0.18042
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  1.042e-05  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.192e-01  1.804e-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.509e-01  2.298e-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: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/575320/likelihoodResults_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.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) = 5296.47751292
delta logL = -0.000521627410308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5296.4769932
delta logL = -1.91064464161e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11370E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2733       1.0000          .0000       10.000    
     3 'Normalizat'    .95057       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91948       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5296.477     FROM MIGRAD    STATUS=FAILED        89 CALLS      239 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    929.57        .18142E-02** at limit **
   2  Index         2.3025        8.5419        .50000       -.28490E-04
   3  Normalizat    .95089        .55367E-01    .26698E-03    .24783E-04
   4  Prefactor     .91920        .47520E-01    .23142E-03    .13068E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5296.477     FROM SIMPLEX   STATUS=UNCHANGED    172 CALLS      411 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    929.57        .54313E-03** at limit **
   2  Index         2.3025        8.5419        .37129E-05   -.28490E-04
   3  Normalizat    .95089        .55367E-01    .10804E-06    .24783E-04
   4  Prefactor     .91920        .47520E-01    .29601E-07    .13068E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5296.477     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      445 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    50.263        .36285E-03** at limit **
   2  Index         2.3028        5.6105        .50000       -.28506E-04
   3  Normalizat    .95089        .20327        .10679E-04    .21291E-04
   4  Prefactor     .91920        .17454        .92567E-05    .93340E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.30277
  Normalizat = 0.95089
  Prefactor  = 0.919196
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.477     FROM HESSE     STATUS=OK            29 CALLS      474 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    10.103        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3028        6.1510        .50000       -.56978    
   3  Normalizat    .95089        .20298        .21359E-05   -.94694    
   4  Prefactor     .91920        .17432        .18513E-05   -.95474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35964e-09
Minuit parameter uncertainties:
  1  0.000563865
  2  4.28583
  3  0.203142
  4  0.174423
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/575320': 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) = 5296.47699093
delta logL = 3.60184458259e-07

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.000e-04  5.639e-04  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.303e+00  4.286e+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:  9.192e-01  1.744e-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.509e-01  2.031e-01  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/575320/cmap_HighResolution_423619201_423878401_4FGL_J0834.6+4402_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-03', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-08-30 01:51:12.004246', job_id='575320', GAL2='0.92', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630313472.0', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='711' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 01:51:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 575320: <4FGL_J0834.6+4402_daily_bin711> in cluster <slac> Done

Job <4FGL_J0834.6+4402_daily_bin711> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Mon Aug 30 01:35:39 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 01:35:41 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:35:41 2021
Terminated at Mon Aug 30 01:51:12 2021
Results reported at Mon Aug 30 01:51:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin711 128.667 44.05 423619201 423878401 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 :                                   875.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            933 sec.

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

