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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin209
RA = 129.963, Dec = 1.0877
tmin = 293500801, tmax = 293760001
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='598494', job_status='RUN', time_executed='2021-08-30 02:49:53.692935', time_epoch_executed='1630316993.69' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='209'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598494/ft1_4FGL_J0839.8+0105_daily_bin209.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598494/ft2_4FGL_J0839.8+0105_daily_bin209.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598494/ft1_4FGL_J0839.8+0105_daily_bin209.fits outfile=/scratch/kocevski/598494/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin209.fits ra=129.963 dec=1.0877 rad=12.0 tmin=293500801.0 tmax=293760001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.82
user 3.34
sys 0.46

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598494/ft1_filtered_4FGL_J0839.8+0105_daily_bin209.fits evtable="EVENTS" scfile=/scratch/kocevski/598494/ft2_4FGL_J0839.8+0105_daily_bin209.fits sctable="SC_DATA" expcube=/scratch/kocevski/598494/ltcube_293500801_293760001_4FGL_J0839.8+0105_daily_bin209.fits outfile=/scratch/kocevski/598494/expmap_293500801_293760001_4FGL_J0839.8+0105_daily_bin209.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/598494/ltcube_293500801_293760001_4FGL_J0839.8+0105_daily_bin209.fits
.....................!
real 191.48
user 186.36
sys 4.71

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/598494/ft1_filtered_4FGL_J0839.8+0105_daily_bin209.fits scfile=/scratch/kocevski/598494/ft2_4FGL_J0839.8+0105_daily_bin209.fits outfile=/scratch/kocevski/598494/cmap_293500801_293760001_4FGL_J0839.8+0105_daily_bin209.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.81
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598494/ft1_filtered_4FGL_J0839.8+0105_daily_bin209.fits scfile=/scratch/kocevski/598494/ft2_4FGL_J0839.8+0105_daily_bin209.fits outfile=/scratch/kocevski/598494/cmap_HighResolution_293500801_293760001_4FGL_J0839.8+0105_daily_bin209.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.79
user 0.38
sys 0.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .33842       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13850E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .13206E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3346       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7036       1.0000         .10000E-03   10000.    
     6 'norm      '    .10737E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1261       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.345       1.0000         .10000E-03   10000.    
     9 'norm      '    .10644E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88995       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7449       1.0000         .10000E-03   10000.    
    12 'norm      '    8.7271       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.8546       1.0000         .10000E-03   10000.    
    14 'norm      '    21.377       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7883       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.9444       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .65270       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3659       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=   8431.765     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     1902 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .29716        4.7472       -.82585E-07   -.21341E-05
   2  Prefactor     .10000E-03    7.6956       -.66560E-06** at limit **
   3  norm          .10000E-03    6.0711        .32087E-06** at limit **
   4  norm          1.3353        1.5491        .32593E-07    .22422E-05
   5  norm          4.7038        1.6192        .16545E-07   -.55231E-04
   6  norm          .10000E-03    5.5518       -.42812E-06** at limit **
   7  norm          3.1203        3.1063        .10115E-05    .64019E-03
   8  Prefactor     20.313        34.566        .47853E-05    .74618E-05
   9  norm          .10000E-03    8.3050        .45444E-06** at limit **
  10  Prefactor     .87043        11.980        .27011E-05   -.42095E-03
  11  norm          2.7441        1.0935       -.48321E-08   -.13295E-03
  12  norm          8.7209        7.1875        .17450E-06    .53635E-05
  13  Prefactor     3.9068        16.355        .97034E-06    .72377E-05
  14  norm          21.382        4.9114        .33677E-07    .11199E-04
  15  norm          2.7907        3.3363        .81194E-06    .40082E-03
  16  Prefactor     .10000E-03    3.2087        .15654E-07** at limit **
  17  Prefactor     1.9412        3.8719        .17606E-06    .70049E-04
  18  Normalizat    .65269        .18874       -.44775E-07   -.20837E-04
  19  Prefactor     1.3661        .14490       -.64240E-06   -.71585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.297158
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.33526
  norm       = 4.70383
  norm       = 0.0001
  norm       = 3.12035
  Prefactor  = 20.3131
  norm       = 0.0001
  Prefactor  = 0.870427
  norm       = 2.74409
  norm       = 8.72087
  Prefactor  = 3.9068
  norm       = 21.3823
  norm       = 2.79075
  Prefactor  = 0.0001
  Prefactor  = 1.94121
  Normalizat = 0.652688
  Prefactor  = 1.3661
 **********
 **   18 **HESSE 
 **********

 FCN=   8431.765     FROM HESSE     STATUS=OK           280 CALLS     2182 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .29716        26.945        .38159E-02   -1.5599    
   2  Prefactor     .10000E-03    7.7151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.1198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3353        1.5284        .11757E-03   -1.5477    
   5  norm          4.7038        1.6150        .65392E-04   -1.5274    
   6  norm          .10000E-03    5.5738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1203        3.1465        .79179E-03   -1.5355    
   8  Prefactor     20.313        35.182        .88799E-04   -1.4806    
   9  norm          .10000E-03    8.3095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .87043        42.354        .50522E-02   -1.5521    
  11  norm          2.7441        1.0907        .57682E-04   -1.5377    
  12  norm          8.7209        7.1825        .13569E-03   -1.5117    
  13  Prefactor     3.9068        16.307        .20555E-03   -1.5313    
  14  norm          21.382        4.9099        .86630E-04   -1.4783    
  15  norm          2.7907        3.3528        .89660E-03   -1.5374    
  16  Prefactor     .10000E-03    3.2095        .16064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.9412        3.8604        .24278E-03   -1.5429    
  18  Normalizat    .65269        .21761        .35738E-03   -1.0579    
  19  Prefactor     1.3661        .16857        .20378E-03   -.81362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40406e-08
Minuit parameter uncertainties:
  1  5.66102
  2  2.03668e-05
  3  3.91895e-06
  4  1.52842
  5  1.61497
  6  3.77458e-05
  7  3.14668
  8  35.2177
  9  3.75024e-06
  10  12.1519
  11  1.09066
  12  7.18321
  13  15.9707
  14  4.90996
  15  3.35302
  16  8.03742e-07
  17  3.86092
  18  0.217895
  19  0.168637
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.721e+00  7.183e+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.366e+00  1.686e-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:  6.527e-01  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.39e-08 +/- 2.79e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/598494/likelihoodResults_293500801_293760001_4FGL_J0839.8+0105_daily_bin209.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) = 8431.66805389
delta logL = 0.0969974346262

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8431.66211547
delta logL = 0.102935851497

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4774       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9050       1.0000          .0000       5.0000    
     3 'Normalizat'    .66358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3598       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8431.662     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      223 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4689        53.002         .0000        .19166E-02
   2  alpha         1.9054        3.4322         .0000       -.83942E-05
   3  Normalizat    .66350        .23015         .0000       -.63501E-05
   4  Prefactor     1.3599        .18062         .0000       -.95403E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.46888
  alpha      = 1.90544
  Normalizat = 0.663504
  Prefactor  = 1.35987
 **********
 **   18 **HESSE 
 **********

 FCN=   8431.662     FROM HESSE     STATUS=OK            31 CALLS      254 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4689        7.5782        .65088E-03   -1.5092    
   2  alpha         1.9054        .70383        .22480E-01   -.24012    
   3  Normalizat    .66350        .20868        .35463E-03   -1.0535    
   4  Prefactor     1.3599        .16716        .20415E-03   -.81544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91404e-12
Minuit parameter uncertainties:
  1  7.579
  2  0.714081
  3  0.208929
  4  0.167227
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598494': 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) = 8431.66211457
delta logL = 0.102936754733

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  9.469e+00  7.579e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.905e+00  7.141e-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.360e+00  1.672e-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:  6.635e-01  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.57
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.91 +/- 0.71
Photon Flux (Free Index): 2.75e-08 +/- 2.61e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.32e-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/598494/cmap_HighResolution_293500801_293760001_4FGL_J0839.8+0105_daily_bin209.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', comment='SUCCESS', photon_flux='3.39e-08', energy_flux2='1.47e-05', photon_flux_error='2.79e-08', dlogl='1.03e-01', energy_flux='1.25e-05', photon_flux2='2.75e-08', job_status='DONE', time_completed='2021-08-30 03:00:41.042075', photon_index_error2='0.71', photon_index2='1.91', ts='2.36', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='9.60e-08', energy_flux_error2='1.32e-05', EG='0.65', time_epoch_completed='1630317641.04', return_code='0', job_id='598494', GAL2='1.36', EG2='0.66', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='2.61e-08', ts2='2.57', photon_index='2.24' WHERE bin_id='209' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:00:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 598494: <4FGL_J0839.8+0105_daily_bin209> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin209 129.963 1.0877 293500801 293760001 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 :                                   648.14 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             268.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            895 sec.

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

