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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin987
RA = 129.963, Dec = 1.0877
tmin = 495158401, tmax = 495417601
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='605102', job_status='RUN', time_executed='2021-08-30 03:05:08.133471', time_epoch_executed='1630317908.13' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='987'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605102/ft1_4FGL_J0839.8+0105_daily_bin987.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605102/ft1_4FGL_J0839.8+0105_daily_bin987.fits outfile=/scratch/kocevski/605102/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin987.fits ra=129.963 dec=1.0877 rad=12.0 tmin=495158401.0 tmax=495417601.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.06
user 3.83
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.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/605102/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin987.fits evtable="EVENTS" outfile="/scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits" evtable="EVENTS" scfile=/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits sctable="SC_DATA" outfile=/scratch/kocevski/605102/ltcube_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.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/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits
.....................!
real 11.63
user 11.28
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits evtable="EVENTS" scfile=/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits sctable="SC_DATA" expcube=/scratch/kocevski/605102/ltcube_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.fits outfile=/scratch/kocevski/605102/expmap_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.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/605102/ltcube_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.fits
.....................!
real 192.50
user 187.12
sys 4.99

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 152 point sources and 0 extended sources

Setting source of interest to:
4FGL J0839.8+0105 @ 129.963 1.0877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits scfile=/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits outfile=/scratch/kocevski/605102/cmap_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.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=129.963 yref=1.0877 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.65
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits scfile=/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits outfile=/scratch/kocevski/605102/cmap_HighResolution_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.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=129.963 yref=1.0877 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.72
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits evtable="EVENTS" scfile=/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/605102/Model_4FGL_J0839.8+0105_daily_bin987.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/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits.....................!
real 79.55
user 72.40
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits', '/scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits', expMap='/scratch/kocevski/605102/expmap_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.fits', expCube='/scratch/kocevski/605102/ltcube_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/605102/Model_4FGL_J0839.8+0105_daily_bin987.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0839.8+0105'

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.335e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/605102/ft1_filtered_4FGL_J0839.8+0105_daily_bin987.fits
Spacecraft file(s): /scratch/kocevski/605102/ft2_4FGL_J0839.8+0105_daily_bin987.fits
Exposure map: /scratch/kocevski/605102/expmap_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.fits
Exposure cube: /scratch/kocevski/605102/ltcube_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/605102/Model_4FGL_J0839.8+0105_daily_bin987.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) = 6918.21731002

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.8676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13120E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.4475       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.106       1.0000         .10000E-03   10000.    
     7 'norm      '    10.289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10395E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.3362       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.9460       1.0000         .10000E-03   10000.    
    15 'norm      '    20.567       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.2504       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .97916       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6918.202     FROM MIGRAD    STATUS=CONVERGED    364 CALLS     1829 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.8681        6.9197        .98825E-06   -.15271E-03
   2  Prefactor     .10001E-03    18.610       -.21835E-05** at limit **
   3  norm          .10000E-03    11.393        .16705E-06** at limit **
   4  norm          3.4475        2.1985       -.22596E-07   -.11381E-03
   5  norm          .10000E-03    .50471        .23649E-07** at limit **
   6  norm          27.093        21.710        .14981E-05    .15814E-03
   7  norm          10.289        4.9324       -.28701E-07   -.13021E-03
   8  Prefactor     .10000E-03    14.903       -.19049E-05** at limit **
   9  norm          .10000E-03    12.012        .25314E-06** at limit **
  10  Prefactor     .10000E-03    10.041       -.44548E-06** at limit **
  11  norm          2.3366        1.3736       -.16958E-07    .43376E-04
  12  norm          1.9844        4.7614        .48984E-05   -.14679E-03
  13  Prefactor     .10000E-03    11.106        .43375E-06** at limit **
  14  norm          3.9454        4.5764       -.55721E-07   -.38662E-04
  15  norm          20.568        8.2387       -.19990E-08   -.10499E-03
  16  Prefactor     .10000E-03    19.516        .20307E-06** at limit **
  17  Prefactor     5.2510        4.5485        .80299E-06   -.43750E-04
  18  Normalizat    .97897        .19684        .22100E-06   -.64647E-06
  19  Prefactor     1.0862        .14685       -.11045E-05   -.10448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.8681
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 3.44745
  norm       = 0.0001
  norm       = 27.0935
  norm       = 10.2893
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.33656
  norm       = 1.98442
  Prefactor  = 0.0001
  norm       = 3.94542
  norm       = 20.5676
  Prefactor  = 0.0001
  Prefactor  = 5.25098
  Normalizat = 0.978972
  Prefactor  = 1.08622
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.202     FROM HESSE     STATUS=OK           266 CALLS     2095 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.8681        6.9110        .91162E-03   -1.5267    
   2  Prefactor     .10001E-03    18.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.4475        2.1974        .94732E-04   -1.5337    
   5  norm          .10000E-03    .51759        .11526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.093        21.830        .76947E-04   -1.4666    
   7  norm          10.289        4.9325        .12275E-03   -1.5066    
   8  Prefactor     .10000E-03    15.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.3366        1.3676        .69960E-04   -1.5402    
  12  norm          1.9844        4.7666        .13712E-02   -1.5426    
  13  Prefactor     .10000E-03    11.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.9454        4.5710        .18081E-03   -1.5311    
  15  norm          20.568        8.2427        .88319E-04   -1.4801    
  16  Prefactor     .10000E-03    19.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.2510        4.5454        .79308E-03   -1.5250    
  18  Normalizat    .97897        .22755        .30174E-03   -.93738    
  19  Prefactor     1.0862        .16953        .21919E-03   -.89908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56217e-10
Minuit parameter uncertainties:
  1  6.9121
  2  0.000630904
  3  5.47923e-05
  4  2.19748
  5  1.27224e-06
  6  21.8369
  7  4.93271
  8  0.00018764
  9  1.68572e-06
  10  8.49055e-07
  11  1.3676
  12  4.76754
  13  4.51656e-06
  14  4.57144
  15  8.24317
  16  0.00016931
  17  4.54573
  18  0.227771
  19  0.169619
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.984e+00  4.768e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.086e+00  1.696e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  9.790e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.23
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 6.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605102/likelihoodResults_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.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) = 6918.17332928
delta logL = 0.0282100153418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6918.17246093
delta logL = 0.0290783561531

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1729       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8683       1.0000          .0000       5.0000    
     3 'Normalizat'    .98169       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0846       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6918.172     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      205 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1729        7.2800        .69836E-02    .12429E-02
   2  alpha         1.8681        1.7860        .42949       -.33925E-05
   3  Normalizat    .98167        .19095        .68126E-01    .29616E-03
   4  Prefactor     1.0846        .14639        .38203E-01    .96561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17287
  alpha      = 1.86814
  Normalizat = 0.981675
  Prefactor  = 1.08462
 **********
 **   18 **HESSE 
 **********

 FCN=   6918.172     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1729        4.7768        .26321E-03   -1.5413    
   2  alpha         1.8681        1.3704        .44326E-01   -.25551    
   3  Normalizat    .98167        .21951        .30136E-03   -.93647    
   4  Prefactor     1.0846        .16833        .21932E-03   -.89960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.33304e-10
Minuit parameter uncertainties:
  1  4.77766
  2  1.45686
  3  0.219708
  4  0.16841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605102': 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) = 6918.17246093
delta logL = 0.0290783653118

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.173e+00  4.778e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.868e+00  1.457e+00  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.085e+00  1.684e-01  0.000e+00  1.000e+01 ( 1.000e+00)
499        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
500        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
497   Normalization:  9.817e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.23
Ra Dec: 129.963 1.088

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/605102/cmap_HighResolution_495158401_495417601_4FGL_J0839.8+0105_daily_bin987.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='6.58e-08', time_completed='2021-08-30 03:14:48.257360', job_id='605102', GAL2='1.08', fit_tolerance='1e-08', EG2='0.98', EG='0.98', time_epoch_completed='1630318488.26', return_code2='0', ts='0.23', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.91e-02', ts2='0.29', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='987' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 605102: <4FGL_J0839.8+0105_daily_bin987> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin987> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:55 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 03:00:56 2021
Terminated at Mon Aug 30 03:14:48 2021
Results reported at Mon Aug 30 03:14:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin987 129.963 1.0877 495158401 495417601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0839.8+0105 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   563.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            833 sec.

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

