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


Performing analysis on: 4FGL_J0834.6+4402_daily_bin1450
RA = 128.667, Dec = 44.05
tmin = 615168001, tmax = 615427201
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='580011', job_status='RUN', time_executed='2021-08-30 01:50:49.332512', time_epoch_executed='1630313449.33' WHERE source_name='4FGL J0834.6+4402' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580011/ft1_4FGL_J0834.6+4402_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580011/ft2_4FGL_J0834.6+4402_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580011/ft1_4FGL_J0834.6+4402_daily_bin1450.fits outfile=/scratch/kocevski/580011/ft1_filteredMKT_4FGL_J0834.6+4402_daily_bin1450.fits ra=128.667 dec=44.05 rad=12.0 tmin=615168001.0 tmax=615427201.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 3.54
user 3.33
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/580011/ft1_filtered_4FGL_J0834.6+4402_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/580011/ft2_4FGL_J0834.6+4402_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/580011/ltcube_615168001_615427201_4FGL_J0834.6+4402_daily_bin1450.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/580011/ft2_4FGL_J0834.6+4402_daily_bin1450.fits
.....................!
real 12.22
user 11.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580011/ft1_filtered_4FGL_J0834.6+4402_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/580011/ft2_4FGL_J0834.6+4402_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/580011/ltcube_615168001_615427201_4FGL_J0834.6+4402_daily_bin1450.fits outfile=/scratch/kocevski/580011/expmap_615168001_615427201_4FGL_J0834.6+4402_daily_bin1450.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/580011/ltcube_615168001_615427201_4FGL_J0834.6+4402_daily_bin1450.fits
.....................!
real 191.52
user 185.50
sys 4.44

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/580011/ft1_filtered_4FGL_J0834.6+4402_daily_bin1450.fits scfile=/scratch/kocevski/580011/ft2_4FGL_J0834.6+4402_daily_bin1450.fits outfile=/scratch/kocevski/580011/cmap_615168001_615427201_4FGL_J0834.6+4402_daily_bin1450.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.92
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580011/ft1_filtered_4FGL_J0834.6+4402_daily_bin1450.fits scfile=/scratch/kocevski/580011/ft2_4FGL_J0834.6+4402_daily_bin1450.fits outfile=/scratch/kocevski/580011/cmap_HighResolution_615168001_615427201_4FGL_J0834.6+4402_daily_bin1450.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.88
user 0.39
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8492       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13586E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.367       1.0000         .10000E-03   10000.    
     7 'norm      '    14.093       1.0000         .10000E-03   10000.    
     8 'norm      '    .71848       1.0000         .10000E-03   10000.    
     9 'norm      '    2.0708       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8998       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6752       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    17.026       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.5156       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4033       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0845       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    35.422       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39466E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.3857       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.480       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .80747       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.3166       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7918.010     FROM MIGRAD    STATUS=CONVERGED    156 CALLS     3475 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    525.87       -.32300E-04** at limit **
   2  Prefactor     .10000E-03    4.3082        .18596E-05** at limit **
   3  norm          2.4743        2.6689        .67652E-06    .34187E-03
   4  Prefactor     4.8447        2.7795       -.23540E-06    .59689E-02
   5  Prefactor     .10002E-03    85.949       -.84139E-06** at limit **
   6  Prefactor     12.365        1.2487       -.58803E-07    .23421E-02
   7  norm          14.092        1.5131       -.55214E-07    .44826E-02
   8  norm          .71979        1.1634       -.10091E-06   -.10859E-03
   9  norm          2.0704        .71166       -.30383E-07   -.27195E-03
  10  Prefactor     .10000E-03    3.5512        .10399E-05** at limit **
  11  Prefactor     4.8985        1.0358       -.39238E-07    .22335E-03
  12  Prefactor     2.6750        2.7704       -.31511E-06   -.90091E-04
  13  Prefactor     .10001E-03    21.064        .15545E-05** at limit **
  14  Prefactor     17.023        1.0261       -.24987E-07    .13913E-04
  15  Prefactor     .10000E-03    3.3905        .33801E-06** at limit **
  16  norm          1.5156        3.1005        .26929E-06   -.47127E-04
  17  norm          4.4033        3.9041        .19730E-06    .34799E-02
  18  Prefactor     .10005E-03    15.590       -.44431E-06** at limit **
  19  Prefactor     3.0844        2.3485       -.12599E-06   -.43609E-04
  20  Prefactor     .10000E-03    10.719        .13430E-05** at limit **
  21  Prefactor     35.422        1.0524       -.16478E-07    .83766E-03
  22  Prefactor     .10001E-03    36.600        .70095E-06** at limit **
  23  Prefactor     .10001E-03    9.3589       -.50748E-06** at limit **
  24  Prefactor     .10000E-03    5.6330       -.42688E-08** at limit **
  25  norm          1.3857        .53500        .80099E-08    .51892E-04
  26  Prefactor     .10000E-03    1.8297       -.60239E-06** at limit **
  27  norm          10.480        1.0763       -.28488E-08   -.11021E-03
  28  Prefactor     10.231        3.6959        .72354E-07    .96272E-03
  29  Prefactor     .10002E-03    14.387       -.35907E-06** at limit **
  30  Normalizat    .80754        .21446       -.40948E-08   -.29259E-04
  31  Prefactor     1.3166        .18580       -.17500E-06   -.36077E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 2.47434
  Prefactor  = 4.84466
  Prefactor  = 0.000100016
  Prefactor  = 12.3648
  norm       = 14.0917
  norm       = 0.719794
  norm       = 2.07043
  Prefactor  = 0.0001
  Prefactor  = 4.89846
  Prefactor  = 2.67498
  Prefactor  = 0.000100013
  Prefactor  = 17.0233
  Prefactor  = 0.0001
  norm       = 1.51564
  norm       = 4.40328
  Prefactor  = 0.000100049
  Prefactor  = 3.08443
  Prefactor  = 0.000100001
  Prefactor  = 35.4222
  Prefactor  = 0.000100005
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 1.38572
  Prefactor  = 0.0001
  norm       = 10.48
  Prefactor  = 10.2312
  Prefactor  = 0.000100023
  Normalizat = 0.807538
  Prefactor  = 1.31659
 **********
 **   18 **HESSE 
 **********

 FCN=   7918.010     FROM HESSE     STATUS=OK           704 CALLS     4179 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    8.9023        .98787E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.3112        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4743        2.8352        .65125E-02   -1.5393    
   4  Prefactor     4.8447        5.6093        .45669E-02   -1.5268    
   5  Prefactor     .10002E-03    85.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.365        6.1083        .28477E-02   -1.5005    
   7  norm          14.092        5.7309        .26674E-02   -1.4957    
   8  norm          .71979        1.5165        .28400E-01   -1.5538    
   9  norm          2.0704        .72348        .71767E-02   -1.5420    
  10  Prefactor     .10000E-03    3.5575        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.8985        9.3923        .45427E-02   -1.5265    
  12  Prefactor     2.6750        2.8018        .62288E-02   -1.5381    
  13  Prefactor     .10001E-03    21.312        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     17.023        11.072        .24266E-02   -1.4883    
  15  Prefactor     .10000E-03    3.3730        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.5156        3.1530        .86810E-02   -1.5462    
  17  norm          4.4033        4.1757        .47981E-02   -1.5288    
  18  Prefactor     .10005E-03    16.629        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.0844        2.3606        .57733E-02   -1.5357    
  20  Prefactor     .10000E-03    10.718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     35.422        48.481        .16834E-02   -1.4517    
  22  Prefactor     .10001E-03    36.764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    1.7364        .67075E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.6254        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.3857        .54153        .87238E-02   -1.5473    
  26  Prefactor     .10000E-03    1.8049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.480        8.9622        .30942E-02   -1.5060    
  28  Prefactor     10.231        4.0513        .31323E-02   -1.5068    
  29  Prefactor     .10002E-03    14.611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .80754        .19181        .75645E-01   -.99790    
  31  Prefactor     1.3166        .16032        .53464E-01   -.82815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58089e-08
Minuit parameter uncertainties:
  1  0.000585161
  2  5.56474e-05
  3  2.83539
  4  5.60992
  5  0.00232646
  6  6.10865
  7  5.7311
  8  1.51659
  9  0.72348
  10  3.07894e-05
  11  9.39509
  12  2.80195
  13  0.00103324
  14  11.0729
  15  4.05397e-06
  16  3.1533
  17  4.17595
  18  0.00179908
  19  2.36068
  20  0.000160462
  21  48.5345
  22  0.000897552
  23  0.000234489
  24  1.3046e-05
  25  0.541533
  26  1.13208e-05
  27  8.96336
  28  4.05145
  29  0.0011648
  30  0.191971
  31  0.160379
Done.

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

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.702e+01  1.107e+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:  1.317e+00  1.604e-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:  8.075e-01  1.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.05
Ra Dec: 128.667 44.050
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 3.13e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.30e-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) = 7918.00478602
delta logL = 0.00526596375948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7918.00195652
delta logL = 0.0080954592604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.100       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3126       1.0000          .0000       10.000    
     3 'Normalizat'    .80404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3181       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=   7918.002     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      254 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.105        13.477        .99816E-04    .46356E-04
   2  Index         2.3124        .55221        .69214E-02    .58252E-03
   3  Normalizat    .80399        .20912        .33547E-03   -.76487E-04
   4  Prefactor     1.3182        .18256        .23624E-03   -.14093E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.1047
  Index      = 2.31241
  Normalizat = 0.803991
  Prefactor  = 1.31816
 **********
 **   18 **HESSE 
 **********

 FCN=   7918.002     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.105        12.898        .39927E-05   -1.4905    
   2  Index         2.3124        .52837        .13843E-02   -.56749    
   3  Normalizat    .80399        .20912        .13419E-04   -.99921    
   4  Prefactor     1.3182        .18262        .47248E-04   -.82769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32555e-11
Minuit parameter uncertainties:
  1  12.9006
  2  0.529762
  3  0.209326
  4  0.182712
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580011': 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) = 7918.00195634
delta logL = 0.00809564398514

Extracting fit parameters...

4FGL J0834.6+4402
   Spectrum: PowerLaw
340    Prefactor:  1.610e+01  1.290e+01  1.000e-04  1.000e+04 ( 1.000e-13)
341        Index:  2.312e+00  5.298e-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:  1.318e+00  1.827e-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:  8.040e-01  2.093e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.05
Ra Dec: 128.667 44.050
Photon Index (Free Index): 2.31 +/- 0.53
Photon Flux (Free Index): 5.14e-08 +/- 4.13e-08
Energy Flux (Free Index): 1.91e-05 +/- 1.36e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/580011/cmap_HighResolution_615168001_615427201_4FGL_J0834.6+4402_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='1.91e-05', photon_flux_error='3.13e-08', dlogl='8.10e-03', energy_flux='1.99e-05', photon_flux2='5.14e-08', job_status='DONE', time_completed='2021-08-30 02:06:25.641125', photon_index_error2='0.53', photon_index2='2.31', ts='7.05', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', energy_flux_error2='1.36e-05', EG='0.81', time_epoch_completed='1630314385.64', return_code='0', job_id='580011', GAL2='1.32', EG2='0.80', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='4.13e-08', ts2='7.05', photon_index='2.25' WHERE bin_id='1450' AND source_name='4FGL J0834.6+4402' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:06:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 580011: <4FGL_J0834.6+4402_daily_bin1450> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0834.6+4402_daily_bin1450 128.667 44.05 615168001 615427201 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 :                                   929.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            960 sec.

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

