/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 69 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 = 7450
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin50
RA = 129.963, Dec = 1.0877
tmin = 252288001, tmax = 252547201
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='598251', job_status='RUN', time_executed='2021-08-30 02:48:26.215525', time_epoch_executed='1630316906.22' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598251

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598251/ft1_4FGL_J0839.8+0105_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598251/ft2_4FGL_J0839.8+0105_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598251/ft1_4FGL_J0839.8+0105_daily_bin50.fits outfile=/scratch/kocevski/598251/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin50.fits ra=129.963 dec=1.0877 rad=12.0 tmin=252288001.0 tmax=252547201.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 9.50
user 2.37
sys 6.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598251/ft2_4FGL_J0839.8+0105_daily_bin50.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/598251/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/598251/ft1_filtered_4FGL_J0839.8+0105_daily_bin50.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 7.51
user 0.35
sys 6.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598251/ft1_filtered_4FGL_J0839.8+0105_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/598251/ft2_4FGL_J0839.8+0105_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/598251/ltcube_252288001_252547201_4FGL_J0839.8+0105_daily_bin50.fits outfile=/scratch/kocevski/598251/expmap_252288001_252547201_4FGL_J0839.8+0105_daily_bin50.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/598251/ltcube_252288001_252547201_4FGL_J0839.8+0105_daily_bin50.fits
.....................!
real 198.36
user 184.97
sys 12.82

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/598251/ft1_filtered_4FGL_J0839.8+0105_daily_bin50.fits scfile=/scratch/kocevski/598251/ft2_4FGL_J0839.8+0105_daily_bin50.fits outfile=/scratch/kocevski/598251/cmap_252288001_252547201_4FGL_J0839.8+0105_daily_bin50.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 6.14
user 0.37
sys 5.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598251/ft1_filtered_4FGL_J0839.8+0105_daily_bin50.fits scfile=/scratch/kocevski/598251/ft2_4FGL_J0839.8+0105_daily_bin50.fits outfile=/scratch/kocevski/598251/cmap_HighResolution_252288001_252547201_4FGL_J0839.8+0105_daily_bin50.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 6.18
user 0.38
sys 5.77

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13285E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.497       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .54977       1.0000         .10000E-03   10000.    
     5 'norm      '    .22620E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.749       1.0000         .10000E-03   10000.    
     7 'norm      '    .90508E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9449       1.0000         .10000E-03   10000.    
     9 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1173       1.0000         .10000E-03   10000.    
    12 'norm      '    5.9476       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.5920       1.0000         .10000E-03   10000.    
    15 'norm      '    46.250       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10201       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .33738       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .76552       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0095       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8591.729     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     1740 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.700       -.36442E-05** at limit **
   2  Prefactor     60.478        3.2680        .17774E-05    .31040E-02
   3  norm          .10000E-03    1.7978        .13672E-06** at limit **
   4  norm          .55094        1.4662       -.86959E-07    .14912E-03
   5  norm          .10000E-03    2.7147       -.22118E-06** at limit **
   6  norm          15.761        14.635        .19328E-04    .11088E-02
   7  norm          .99060E-01    9.3577       -.24477E-05    .10079E-03
   8  Prefactor     4.8873        11.704        .25580E-04   -.11329E-02
   9  norm          .10000E-03    12.411       -.68809E-05** at limit **
  10  Prefactor     .10000E-03    6.1669        .70472E-06** at limit **
  11  norm          1.1171        .70991       -.62507E-07    .40582E-03
  12  norm          5.9486        5.3572       -.52455E-05   -.20312E-03
  13  Prefactor     .10000E-03    14.339        .74624E-05** at limit **
  14  norm          7.5907        3.8563       -.71510E-06   -.24535E-02
  15  norm          46.238        1.6045       -.22510E-06   -.44394E-02
  16  Prefactor     .20749        154.77        .12430E-04   -.13184E-03
  17  Prefactor     .34633        3.9094       -.86818E-06   -.66123E-03
  18  Normalizat    .76604        .18176       -.43857E-05   -.52802E-03
  19  Prefactor     1.0090        .13951        .15403E-05   -.56697E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 60.4783
  norm       = 0.0001
  norm       = 0.550938
  norm       = 0.0001
  norm       = 15.7611
  norm       = 0.0990602
  Prefactor  = 4.88734
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.11712
  norm       = 5.94862
  Prefactor  = 0.000100002
  norm       = 7.59071
  norm       = 46.2378
  Prefactor  = 0.207489
  Prefactor  = 0.34633
  Normalizat = 0.766037
  Prefactor  = 1.00904
 **********
 **   18 **HESSE 
 **********

 FCN=   8591.729     FROM HESSE     STATUS=OK           334 CALLS     2074 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6994        .63542E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.478        36.275        .12896E-02   -1.4151    
   3  norm          .10000E-03    1.7930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55094        1.5012        .11472E-01   -1.5560    
   5  norm          .10000E-03    .50059        .22062E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.761        22.440        .25231E-02   -1.4914    
   7  norm          .99060E-01    1.1831        .55570E-01   -1.5645    
   8  Prefactor     4.8873        38.934        .45216E-02   -1.5266    
   9  norm          .10000E-03    12.373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.1237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1171        .71928        .11128E-01   -1.5497    
  12  norm          5.9486        5.3676        .41164E-02   -1.5220    
  13  Prefactor     .10000E-03    14.199        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.5907        3.8839        .36386E-02   -1.5157    
  15  norm          46.238        9.3331        .14739E-02   -1.4347    
  16  Prefactor     .20749        10.708        .95208E-01   -1.5617    
  17  Prefactor     .34633        1.8548        .40097E-01   -1.5590    
  18  Normalizat    .76604        .15844        .66183E-01   -1.0134    
  19  Prefactor     1.0090        .11855        .43405E-01   -.92429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45132e-08
Minuit parameter uncertainties:
  1  3.4924e-05
  2  36.2881
  3  2.55927e-06
  4  1.5013
  5  2.25726e-05
  6  22.4522
  7  0.684362
  8  27.613
  9  0.000222675
  10  3.20401e-05
  11  0.719291
  12  5.368
  13  0.000308984
  14  3.88399
  15  9.33335
  16  2.98097
  17  1.60281
  18  0.158539
  19  0.118577
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.949e+00  5.368e+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.009e+00  1.186e-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.660e-01  1.585e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.92
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 2.08e-08
Energy Flux (Fixed Index): 8.50e-06 +/- 7.67e-06

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

Saving results to:
/scratch/kocevski/598251/likelihoodResults_252288001_252547201_4FGL_J0839.8+0105_daily_bin50.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) = 8591.52770461
delta logL = 0.200875829227

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8591.51743511
delta logL = 0.21114533069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7322       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8131       1.0000          .0000       5.0000    
     3 'Normalizat'    .77368       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0046       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8591.517     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      238 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7315        5.7483        .15465E-03    .66413E-03
   2  alpha         1.8132        .62945        .21163E-01    .46793E-04
   3  Normalizat    .77368        .17603        .29145E-03    .76842E-03
   4  Prefactor     1.0046        .13785        .20085E-03    .10939E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 6.73154
  alpha      = 1.81316
  Normalizat = 0.773681
  Prefactor  = 1.00459
 **********
 **   18 **HESSE 
 **********

 FCN=   8591.517     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7315        5.7655        .61858E-05   -1.5189    
   2  alpha         1.8132        .63140        .84653E-03   -.27832    
   3  Normalizat    .77368        .17615        .58291E-04   -1.0105    
   4  Prefactor     1.0046        .13795        .40170E-04   -.92577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.31297e-10
Minuit parameter uncertainties:
  1  5.76594
  2  0.638894
  3  0.176276
  4  0.137997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598251': 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) = 8591.51743509
delta logL = 0.211145348056

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.732e+00  5.766e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.813e+00  6.389e-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.005e+00  1.380e-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.737e-01  1.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.34
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.81 +/- 0.64
Photon Flux (Free Index): 1.83e-08 +/- 1.82e-08
Energy Flux (Free Index): 1.11e-05 +/- 1.03e-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/598251/cmap_HighResolution_252288001_252547201_4FGL_J0839.8+0105_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-05', comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='1.11e-05', photon_flux_error='2.08e-08', dlogl='2.11e-01', energy_flux='8.50e-06', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-08-30 03:00:36.506384', photon_index_error2='0.64', photon_index2='1.81', ts='1.92', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='7.13e-08', energy_flux_error2='1.03e-05', EG='0.77', time_epoch_completed='1630317636.51', return_code='0', job_id='598251', GAL2='1.00', EG2='0.77', return_code2='0', energy_flux_error='7.67e-06', photon_flux_error2='1.82e-08', ts2='2.34', photon_index='2.24' WHERE bin_id='50' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:00:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0005>
Subject: Job 598251: <4FGL_J0839.8+0105_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin50 129.963 1.0877 252288001 252547201 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 :                                   817.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             285.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            910 sec.

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

