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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin118
RA = 129.963, Dec = 1.0877
tmin = 269913601, tmax = 270172801
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='598353', job_status='RUN', time_executed='2021-08-30 02:49:53.641809', time_epoch_executed='1630316993.64' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598353/ft1_4FGL_J0839.8+0105_daily_bin118.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598353/ft2_4FGL_J0839.8+0105_daily_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598353/ft1_4FGL_J0839.8+0105_daily_bin118.fits outfile=/scratch/kocevski/598353/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin118.fits ra=129.963 dec=1.0877 rad=12.0 tmin=269913601.0 tmax=270172801.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 2.37
user 1.45
sys 0.89

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598353/ft2_4FGL_J0839.8+0105_daily_bin118.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/598353/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/598353/ft1_filtered_4FGL_J0839.8+0105_daily_bin118.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.18
user 0.33
sys 0.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598353/ft1_filtered_4FGL_J0839.8+0105_daily_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/598353/ft2_4FGL_J0839.8+0105_daily_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/598353/ltcube_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.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/598353/ft2_4FGL_J0839.8+0105_daily_bin118.fits
.....................!
real 12.54
user 11.40
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598353/ft1_filtered_4FGL_J0839.8+0105_daily_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/598353/ft2_4FGL_J0839.8+0105_daily_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/598353/ltcube_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.fits outfile=/scratch/kocevski/598353/expmap_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.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/598353/ltcube_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.fits
.....................!
real 191.77
user 185.95
sys 5.50

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/598353/ft1_filtered_4FGL_J0839.8+0105_daily_bin118.fits scfile=/scratch/kocevski/598353/ft2_4FGL_J0839.8+0105_daily_bin118.fits outfile=/scratch/kocevski/598353/cmap_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.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.26
user 0.37
sys 0.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598353/ft1_filtered_4FGL_J0839.8+0105_daily_bin118.fits scfile=/scratch/kocevski/598353/ft2_4FGL_J0839.8+0105_daily_bin118.fits outfile=/scratch/kocevski/598353/cmap_HighResolution_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.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.21
user 0.37
sys 0.82

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .67210E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4273       1.0000         .10000E-03   10000.    
     5 'norm      '    25.599       1.0000         .10000E-03   10000.    
     6 'norm      '    2.8883       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1469       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.449       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4638       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6022       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8657       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.1941       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6210       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15154       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13003       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4048       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .80357       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=   9074.024     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     1997 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1887        .12562E-07** at limit **
   2  Prefactor     .10224E-03    50.000        .56263E-05** at limit **
   3  norm          .10000E-03    3.6995        .87852E-08** at limit **
   4  norm          1.4274        1.7339        .25751E-06    .40865E-03
   5  norm          25.599        3.0470       -.47515E-07   -.63797E-03
   6  norm          2.8281        20.966        .12042E-05   -.12814E-03
   7  norm          3.1421        3.9932        .62994E-06    .42485E-04
   8  Prefactor     16.405        37.241        .54585E-06   -.84029E-04
   9  norm          1.4590        41.988        .85926E-06   -.35452E-04
  10  Prefactor     .10000E-03    4.8589        .17568E-06** at limit **
  11  norm          1.6019        1.0125        .11588E-06    .20183E-03
  12  norm          1.8664        4.9125        .21181E-05    .53016E-03
  13  Prefactor     .10000E-03    8.0765        .45949E-08** at limit **
  14  norm          3.1935        3.1319        .36487E-06    .25588E-03
  15  norm          3.6227        3.6609        .47273E-07   -.19392E-04
  16  Prefactor     .11653E-03    12.778       -.29183E-06** at limit **
  17  Prefactor     .13895        1.4813        .22141E-06   -.13813E-03
  18  Normalizat    1.4052        .18409       -.20075E-05   -.57406E-03
  19  Prefactor     .80333        .13100        .69876E-06   -.50211E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000102241
  norm       = 0.0001
  norm       = 1.42741
  norm       = 25.599
  norm       = 2.82809
  norm       = 3.14208
  Prefactor  = 16.405
  norm       = 1.459
  Prefactor  = 0.0001
  norm       = 1.6019
  norm       = 1.86643
  Prefactor  = 0.0001
  norm       = 3.19352
  norm       = 3.62272
  Prefactor  = 0.000116534
  Prefactor  = 0.138955
  Normalizat = 1.40515
  Prefactor  = 0.803327
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.024     FROM HESSE     STATUS=OK           286 CALLS     2283 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1937        .13762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10224E-03    209.92        .88152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.7145        .17891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4274        1.7179        .13323E-03   -1.5469    
   5  norm          25.599        3.0417        .54744E-04   -1.4696    
   6  norm          2.8281        18.268        .23913E-03   -1.5372    
   7  norm          3.1421        3.9556        .20245E-03   -1.5353    
   8  Prefactor     16.405        37.157        .98753E-04   -1.4898    
   9  norm          1.4590        42.536        .35550E-03   -1.5466    
  10  Prefactor     .10000E-03    4.8701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6019        1.0015        .72158E-04   -1.5455    
  12  norm          1.8664        5.0131        .30500E-03   -1.5435    
  13  Prefactor     .10000E-03    8.0872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.1935        3.1244        .15966E-03   -1.5351    
  15  norm          3.6227        3.6600        .17733E-03   -1.5327    
  16  Prefactor     .11653E-03    15.550        .10311       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .13895        14.488        .22111E-02   -1.5633    
  18  Normalizat    1.4052        .20997        .26497E-03   -.80480    
  19  Prefactor     .80333        .15088        .25419E-03   -.99606    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75181e-08
Minuit parameter uncertainties:
  1  9.65444e-07
  2  0.0435336
  3  1.56812e-07
  4  1.71793
  5  3.04169
  6  14.3817
  7  3.95597
  8  37.2095
  9  15.7674
  10  1.59086e-05
  11  1.00155
  12  5.01423
  13  4.83709e-06
  14  3.1246
  15  3.66021
  16  0.0320767
  17  2.83743
  18  0.210103
  19  0.150956
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.866e+00  5.014e+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:  8.033e-01  1.510e-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:  1.405e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/598353/likelihoodResults_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.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) = 9074.02435104
delta logL = 8.75129644555e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9074.02431637
delta logL = 0.000122184024804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8729       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2174       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80327       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=   9074.024     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      272 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8772        5.2163        .15215E-02    .88081E-03
   2  alpha         2.2186        1.4005        .48403E-01   -.48840E-05
   3  Normalizat    1.4053        .19730        .26496E-03   -.70538E-04
   4  Prefactor     .80325        .14882        .25420E-03   -.23882E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.87725
  alpha      = 2.21864
  Normalizat = 1.40531
  Prefactor  = 0.803254
 **********
 **   18 **HESSE 
 **********

 FCN=   9074.024     FROM HESSE     STATUS=OK            27 CALLS      299 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8772        5.0707        .30430E-03   -1.5434    
   2  alpha         2.2186        1.3677        .19361E-02   -.11278    
   3  Normalizat    1.4053        .19746        .10599E-04   -.80475    
   4  Prefactor     .80325        .14890        .10168E-04   -.99608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42134e-11
Minuit parameter uncertainties:
  1  5.07182
  2  1.4484
  3  0.197566
  4  0.148974
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598353': 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) = 9074.02431553
delta logL = 0.000123024641653

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.877e+00  5.072e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.219e+00  1.448e+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:  8.033e-01  1.490e-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:  1.405e+00  1.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/598353/cmap_HighResolution_269913601_270172801_4FGL_J0839.8+0105_daily_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-05', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-08-30 03:01:19.184964', job_id='598353', GAL2='0.80', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1630317679.19', return_code2='0', ts='0.16', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.23e-04', ts2='0.16', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='118' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 598353: <4FGL_J0839.8+0105_daily_bin118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin118 129.963 1.0877 269913601 270172801 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 :                                   696.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

