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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin715
RA = 129.963, Dec = 1.0877
tmin = 424656001, tmax = 424915201
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='603205', job_status='RUN', time_executed='2021-08-30 02:59:53.580965', time_epoch_executed='1630317593.58' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603205/ft1_4FGL_J0839.8+0105_daily_bin715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603205/ft1_4FGL_J0839.8+0105_daily_bin715.fits outfile=/scratch/kocevski/603205/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin715.fits ra=129.963 dec=1.0877 rad=12.0 tmin=424656001.0 tmax=424915201.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.78
user 4.42
sys 1.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603205/ft1_filtered_4FGL_J0839.8+0105_daily_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/603205/ltcube_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.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/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits
.....................!
real 13.21
user 11.61
sys 1.53

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603205/ft1_filtered_4FGL_J0839.8+0105_daily_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/603205/ltcube_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.fits outfile=/scratch/kocevski/603205/expmap_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.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/603205/ltcube_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.fits
.....................!
real 191.31
user 185.16
sys 5.73

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/603205/ft1_filtered_4FGL_J0839.8+0105_daily_bin715.fits scfile=/scratch/kocevski/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits outfile=/scratch/kocevski/603205/cmap_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.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 1.65
user 0.36
sys 1.21

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603205/ft1_filtered_4FGL_J0839.8+0105_daily_bin715.fits scfile=/scratch/kocevski/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits outfile=/scratch/kocevski/603205/cmap_HighResolution_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.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 1.64
user 0.39
sys 1.20

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/603205/ft1_filtered_4FGL_J0839.8+0105_daily_bin715.fits', '/scratch/kocevski/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits', expMap='/scratch/kocevski/603205/expmap_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.fits', expCube='/scratch/kocevski/603205/ltcube_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/603205/Model_4FGL_J0839.8+0105_daily_bin715.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/603205/ft1_filtered_4FGL_J0839.8+0105_daily_bin715.fits
Spacecraft file(s): /scratch/kocevski/603205/ft2_4FGL_J0839.8+0105_daily_bin715.fits
Exposure map: /scratch/kocevski/603205/expmap_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.fits
Exposure cube: /scratch/kocevski/603205/ltcube_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/603205/Model_4FGL_J0839.8+0105_daily_bin715.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) = 4238.43826227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.461       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17689E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0816       1.0000         .10000E-03   10000.    
     6 'norm      '    37.864       1.0000         .10000E-03   10000.    
     7 'norm      '    9.2851       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    20.692       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.812       1.0000         .10000E-03   10000.    
    11 'norm      '    .92932       1.0000         .10000E-03   10000.    
    12 'norm      '    13.918       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9734       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2276       1.0000         .10000E-03   10000.    
    15 'norm      '    8.3768       1.0000         .10000E-03   10000.    
    16 'Prefactor '    46.005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .84901       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0664       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=   4238.424     FROM MIGRAD    STATUS=CONVERGED    368 CALLS     1872 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.460        13.036        .88530E-06   -.52457E-04
   2  Prefactor     .10000E-03    109.23        .82658E-05** at limit **
   3  norm          .10000E-03    5.2863        .91065E-07** at limit **
   4  norm          .10000E-03    1.2944        .40760E-07** at limit **
   5  norm          1.0815        1.8044        .11594E-06   -.73177E-03
   6  norm          37.855        30.687       -.75079E-06   -.77173E-04
   7  norm          9.2845        5.3278       -.31943E-07   -.73201E-04
   8  Prefactor     .10000E-03    37.592        .21917E-06** at limit **
   9  norm          20.693        27.746       -.71011E-07   -.18863E-04
  10  Prefactor     29.814        18.894        .15879E-05   -.37606E-04
  11  norm          .92927        .84407        .21083E-06    .11089E-03
  12  norm          13.917        11.746       -.37285E-06   -.88722E-04
  13  Prefactor     9.0232        56.781        .10551E-03   -.33292E-05
  14  norm          3.2275        4.8749        .21526E-05   -.35034E-03
  15  norm          8.3768        6.0359       -.16832E-05   -.19932E-04
  16  Prefactor     46.003        28.653        .55590E-07   -.25145E-04
  17  Prefactor     .10000E-03    2.0229        .87945E-07** at limit **
  18  Normalizat    .84905        .24540       -.59342E-05   -.16363E-03
  19  Prefactor     1.0663        .18515       -.41818E-05   -.11253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.4596
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.0815
  norm       = 37.8554
  norm       = 9.28449
  Prefactor  = 0.0001
  norm       = 20.6925
  Prefactor  = 29.8136
  norm       = 0.929267
  norm       = 13.917
  Prefactor  = 9.02319
  norm       = 3.2275
  norm       = 8.37682
  Prefactor  = 46.0032
  Prefactor  = 0.0001
  Normalizat = 0.849047
  Prefactor  = 1.06632
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.424     FROM HESSE     STATUS=OK           270 CALLS     2142 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.460        13.025        .95849E-04   -1.4872    
   2  Prefactor     .10000E-03    110.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.2916        .14617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3007        .72265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0815        1.7616        .10761E-03   -1.5500    
   6  norm          37.855        30.674        .65134E-04   -1.4477    
   7  norm          9.2845        5.3269        .10968E-03   -1.5098    
   8  Prefactor     .10000E-03    37.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          20.693        27.753        .88051E-04   -1.4798    
  10  Prefactor     29.814        18.924        .73379E-04   -1.4615    
  11  norm          .92927        .83998        .55153E-04   -1.5515    
  12  norm          13.917        11.747        .10736E-03   -1.4962    
  13  Prefactor     9.0232        56.471        .13380E-03   -1.5107    
  14  norm          3.2275        4.8642        .16711E-03   -1.5349    
  15  norm          8.3768        6.0346        .13156E-03   -1.5129    
  16  Prefactor     46.003        28.664        .59114E-04   -1.4350    
  17  Prefactor     .10000E-03    2.0408        .90416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .84905        .28439        .30466E-03   -.98274    
  19  Prefactor     1.0663        .21524        .21106E-03   -.90550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84761e-10
Minuit parameter uncertainties:
  1  13.0275
  2  0.00126317
  3  1.91975e-05
  4  5.0634e-06
  5  1.76173
  6  30.6864
  7  5.32718
  8  0.000203593
  9  27.7706
  10  18.9275
  11  0.839991
  12  11.7489
  13  45.2091
  14  4.86477
  15  6.03505
  16  28.6724
  17  1.16907e-05
  18  0.284889
  19  0.215418
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.392e+01  1.175e+01  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.066e+00  2.154e-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:  8.490e-01  2.849e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.41e-08 +/- 4.56e-08
Energy Flux (Fixed Index): 1.99e-05 +/- 1.68e-05

TS (Fixed Index): 2.20
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603205/likelihoodResults_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.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) = 4237.97234144
delta logL = 0.452095408523

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4237.96684961
delta logL = 0.457587234063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.1731       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2717       1.0000          .0000       5.0000    
     3 'Normalizat'    .77365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1052       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=   4237.967     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      249 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.1661        122.33        .35059E-02    .14408E-03
   2  alpha         3.2744        3.8893        .35260        .32971E-04
   3  Normalizat    .77345        .11444        .71836E-01    .18432E-04
   4  Prefactor     1.1052        .68361E-01    .37394E-01    .52904E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.16607
  alpha      = 3.27438
  Normalizat = 0.773453
  Prefactor  = 1.10523
 **********
 **   18 **HESSE 
 **********

 FCN=   4237.967     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.1661        14.868        .12171E-03   -1.5136    
   2  alpha         3.2744        1.5194        .13779E-01    .31493    
   3  Normalizat    .77345        .29960        .31791E-03   -1.0106    
   4  Prefactor     1.1052        .22239        .20776E-03   -.89299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.45375e-09
Minuit parameter uncertainties:
  1  14.8749
  2  1.64832
  3  0.300242
  4  0.222579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603205': 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) = 4237.96684416
delta logL = 0.457592680039

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.166e+00  1.487e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.274e+00  1.648e+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.105e+00  2.226e-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:  7.735e-01  3.002e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.18
Ra Dec: 129.963 1.088
Photon Index (Free Index): 3.27 +/- 1.65
Photon Flux (Free Index): 1.08e-07 +/- 9.61e-08
Energy Flux (Free Index): 2.13e-05 +/- 1.49e-05

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/603205/cmap_HighResolution_424656001_424915201_4FGL_J0839.8+0105_daily_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-05', comment='SUCCESS', photon_flux='5.41e-08', energy_flux2='2.13e-05', photon_flux_error='4.56e-08', dlogl='4.58e-01', energy_flux='1.99e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-08-30 03:08:13.948495', photon_index_error2='1.65', photon_index2='3.27', ts='2.20', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.49e-05', EG='0.85', time_epoch_completed='1630318093.95', return_code='0', job_id='603205', GAL2='1.11', EG2='0.77', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='9.61e-08', ts2='3.18', photon_index='2.24' WHERE bin_id='715' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 603205: <4FGL_J0839.8+0105_daily_bin715> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin715 129.963 1.0877 424656001 424915201 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 :                                   512.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             228.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   755 sec.
    Turnaround time :                            756 sec.

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

