/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 147 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 = 7493
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin193
RA = 129.963, Dec = 1.0877
tmin = 289353601, tmax = 289612801
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='598462', job_status='RUN', time_executed='2021-08-30 02:48:53.867545', time_epoch_executed='1630316933.87' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='193'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598462/ft1_4FGL_J0839.8+0105_daily_bin193.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598462/ft2_4FGL_J0839.8+0105_daily_bin193.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598462/ft1_4FGL_J0839.8+0105_daily_bin193.fits outfile=/scratch/kocevski/598462/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin193.fits ra=129.963 dec=1.0877 rad=12.0 tmin=289353601.0 tmax=289612801.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.26
user 3.31
sys 0.67

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598462/ft1_filtered_4FGL_J0839.8+0105_daily_bin193.fits" evtable="EVENTS" scfile=/scratch/kocevski/598462/ft2_4FGL_J0839.8+0105_daily_bin193.fits sctable="SC_DATA" outfile=/scratch/kocevski/598462/ltcube_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.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/598462/ft2_4FGL_J0839.8+0105_daily_bin193.fits
.....................!
real 13.29
user 11.48
sys 0.92

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598462/ft1_filtered_4FGL_J0839.8+0105_daily_bin193.fits evtable="EVENTS" scfile=/scratch/kocevski/598462/ft2_4FGL_J0839.8+0105_daily_bin193.fits sctable="SC_DATA" expcube=/scratch/kocevski/598462/ltcube_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.fits outfile=/scratch/kocevski/598462/expmap_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.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/598462/ltcube_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.fits
.....................!
real 195.83
user 187.65
sys 5.21

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/598462/ft1_filtered_4FGL_J0839.8+0105_daily_bin193.fits scfile=/scratch/kocevski/598462/ft2_4FGL_J0839.8+0105_daily_bin193.fits outfile=/scratch/kocevski/598462/cmap_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.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.07
user 0.36
sys 0.70

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598462/ft1_filtered_4FGL_J0839.8+0105_daily_bin193.fits scfile=/scratch/kocevski/598462/ft2_4FGL_J0839.8+0105_daily_bin193.fits outfile=/scratch/kocevski/598462/cmap_HighResolution_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.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.08
user 0.37
sys 0.70

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .75307E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10446E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5489       1.0000         .10000E-03   10000.    
     6 'norm      '    8.1778       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.626       1.0000         .10000E-03   10000.    
     9 'norm      '    .10667E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6207       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0765       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4333       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.7506       1.0000         .10000E-03   10000.    
    15 'norm      '    6.4504       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2330       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .83928       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1428       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=   7683.418     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2211 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3317        5.2897        .69957E-06    .37627E-03
   2  Prefactor     .15291E-03    30.003       -.23731E-05** at limit **
   3  norm          .10000E-03    3.5286       -.10537E-06** at limit **
   4  norm          .10000E-03    .94032       -.11239E-06** at limit **
   5  norm          4.5488        1.6258        .29504E-07    .29291E-03
   6  norm          8.1358        21.354       -.39948E-05   -.30542E-04
   7  norm          4.6475        3.0601       -.66324E-07    .13845E-05
   8  Prefactor     43.636        37.788        .11232E-05    .91064E-05
   9  norm          .10000E-03    24.528       -.11712E-06** at limit **
  10  Prefactor     1.6258        41.264        .20175E-05    .72681E-04
  11  norm          2.0766        .86623        .27963E-07    .17644E-03
  12  norm          6.4345        5.6997        .51764E-07    .78636E-06
  13  Prefactor     .10000E-03    18.461       -.23190E-06** at limit **
  14  norm          3.7519        4.7714        .47324E-06    .15609E-03
  15  norm          6.4514        5.7573        .13690E-06    .77828E-04
  16  Prefactor     6.3828        18.847        .39247E-06    .41143E-04
  17  Prefactor     1.2335        3.1650        .11647E-05    .33453E-03
  18  Normalizat    .83908        .19238       -.14107E-05    .11821E-03
  19  Prefactor     1.1429        .14213        .66496E-06    .10579E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.33165
  Prefactor  = 0.000152906
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.5488
  norm       = 8.13579
  norm       = 4.64755
  Prefactor  = 43.6362
  norm       = 0.0001
  Prefactor  = 1.6258
  norm       = 2.07662
  norm       = 6.43447
  Prefactor  = 0.0001
  norm       = 3.75189
  norm       = 6.45136
  Prefactor  = 6.38282
  Prefactor  = 1.23346
  Normalizat = 0.839079
  Prefactor  = 1.14289
 **********
 **   18 **HESSE 
 **********

 FCN=   7683.418     FROM HESSE     STATUS=OK           286 CALLS     2497 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3317        5.2428        .79759E-03   -1.5205    
   2  Prefactor     .15291E-03    34.082        .11362       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.5543        .16077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.3850        .16106E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5488        1.5992        .63125E-04   -1.5281    
   6  norm          8.1358        22.914        .14020E-03   -1.5137    
   7  norm          4.6475        3.0606        .12003E-03   -1.5277    
   8  Prefactor     43.636        37.406        .60697E-04   -1.4386    
   9  norm          .10000E-03    24.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.6258        40.487        .33245E-03   -1.5453    
  11  norm          2.0766        .86738        .50776E-04   -1.5420    
  12  norm          6.4345        5.6976        .15824E-03   -1.5201    
  13  Prefactor     .10000E-03    18.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.7519        4.7457        .19864E-03   -1.5321    
  15  norm          6.4514        5.7478        .15803E-03   -1.5200    
  16  Prefactor     6.3828        18.814        .15890E-03   -1.5203    
  17  Prefactor     1.2335        3.1077        .23731E-03   -1.5486    
  18  Normalizat    .83908        .22328        .30562E-03   -.98635    
  19  Prefactor     1.1429        .16527        .20716E-03   -.88107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.54694e-09
Minuit parameter uncertainties:
  1  5.24318
  2  0.0849756
  3  3.59118e-06
  4  2.01594e-05
  5  1.59923
  6  22.9385
  7  3.06067
  8  37.4261
  9  1.48119e-05
  10  16.2382
  11  0.867384
  12  5.69808
  13  1.79381e-05
  14  4.74615
  15  5.74829
  16  18.8313
  17  3.10814
  18  0.22352
  19  0.165346
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.434e+00  5.698e+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.143e+00  1.653e-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.391e-01  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.12
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.50e-08 +/- 2.21e-08
Energy Flux (Fixed Index): 9.20e-06 +/- 8.14e-06

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

Saving results to:
/scratch/kocevski/598462/likelihoodResults_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.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) = 7682.52898742
delta logL = 0.889177058799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7682.3725026
delta logL = 1.04566187631

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9222       1.0000         .10000E-03   10000.    
     2 'alpha     '    .95705       1.0000          .0000       5.0000    
     3 'Normalizat'    .85390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1406       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=   7682.373     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9222        2.9582        .59411E-02    .57048E-03
   2  alpha         .95687        .53632        .50000       -.35224E-04
   3  Normalizat    .85399        .17814        .68519E-01    .22730E-04
   4  Prefactor     1.1406        .13951        .36213E-01    .12676E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92223
  alpha      = 0.956873
  Normalizat = 0.853986
  Prefactor  = 1.14058
 **********
 **   18 **HESSE 
 **********

 FCN=   7682.373     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9222        5.0211        .13987E-03   -1.5366    
   2  alpha         .95687        .88616        .22335E-02   -.66524    
   3  Normalizat    .85399        .20755        .30315E-03   -.98096    
   4  Prefactor     1.1406        .16297        .20735E-03   -.88180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03775e-10
Minuit parameter uncertainties:
  1  5.02182
  2  0.919261
  3  0.207745
  4  0.163041
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598462': 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) = 7682.37250245
delta logL = 1.04566202677

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.922e+00  5.022e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  9.569e-01  9.193e-01  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.141e+00  1.630e-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.540e-01  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.21
Ra Dec: 129.963 1.088
Photon Index (Free Index): 0.96 +/- 0.92
Photon Flux (Free Index): 6.83e-09 +/- 9.55e-09
Energy Flux (Free Index): 1.89e-05 +/- 2.42e-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/598462/cmap_HighResolution_289353601_289612801_4FGL_J0839.8+0105_daily_bin193.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.01e-05', comment='SUCCESS', photon_flux='2.50e-08', energy_flux2='1.89e-05', photon_flux_error='2.21e-08', dlogl='1.05e+00', energy_flux='9.20e-06', photon_flux2='6.83e-09', job_status='DONE', time_completed='2021-08-30 02:59:44.996278', photon_index_error2='0.92', photon_index2='0.96', ts='3.12', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='8.17e-08', energy_flux_error2='2.42e-05', EG='0.84', time_epoch_completed='1630317585.0', return_code='0', job_id='598462', GAL2='1.14', EG2='0.85', return_code2='0', energy_flux_error='8.14e-06', photon_flux_error2='9.55e-09', ts2='5.21', photon_index='2.24' WHERE bin_id='193' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:59:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 598462: <4FGL_J0839.8+0105_daily_bin193> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin193> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:45:44 2021
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:45:45 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:45:45 2021
Terminated at Mon Aug 30 02:59:45 2021
Results reported at Mon Aug 30 02:59:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin193 129.963 1.0877 289353601 289612801 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 :                                   650.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             326.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   840 sec.
    Turnaround time :                            841 sec.

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

