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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin533
RA = 129.963, Dec = 1.0877
tmin = 377481601, tmax = 377740801
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='601255', job_status='RUN', time_executed='2021-08-30 02:54:07.862875', time_epoch_executed='1630317247.86' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601255

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601255/ft1_4FGL_J0839.8+0105_daily_bin533.fits


Retrieving the FT1 file...

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

Retrieving 40 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601255/ft2_4FGL_J0839.8+0105_daily_bin533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601255/ft1_4FGL_J0839.8+0105_daily_bin533.fits outfile=/scratch/kocevski/601255/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin533.fits ra=129.963 dec=1.0877 rad=12.0 tmin=377481601.0 tmax=377740801.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 7.50
user 2.94
sys 4.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601255/ft1_filtered_4FGL_J0839.8+0105_daily_bin533.fits" evtable="EVENTS" scfile=/scratch/kocevski/601255/ft2_4FGL_J0839.8+0105_daily_bin533.fits sctable="SC_DATA" outfile=/scratch/kocevski/601255/ltcube_377481601_377740801_4FGL_J0839.8+0105_daily_bin533.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/601255/ft2_4FGL_J0839.8+0105_daily_bin533.fits
.....................!
real 15.06
user 9.66
sys 5.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601255/ft1_filtered_4FGL_J0839.8+0105_daily_bin533.fits evtable="EVENTS" scfile=/scratch/kocevski/601255/ft2_4FGL_J0839.8+0105_daily_bin533.fits sctable="SC_DATA" expcube=/scratch/kocevski/601255/ltcube_377481601_377740801_4FGL_J0839.8+0105_daily_bin533.fits outfile=/scratch/kocevski/601255/expmap_377481601_377740801_4FGL_J0839.8+0105_daily_bin533.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/601255/ltcube_377481601_377740801_4FGL_J0839.8+0105_daily_bin533.fits
.....................!
real 198.47
user 187.69
sys 10.33

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/601255/ft1_filtered_4FGL_J0839.8+0105_daily_bin533.fits scfile=/scratch/kocevski/601255/ft2_4FGL_J0839.8+0105_daily_bin533.fits outfile=/scratch/kocevski/601255/cmap_377481601_377740801_4FGL_J0839.8+0105_daily_bin533.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 4.70
user 0.36
sys 4.25

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601255/ft1_filtered_4FGL_J0839.8+0105_daily_bin533.fits scfile=/scratch/kocevski/601255/ft2_4FGL_J0839.8+0105_daily_bin533.fits outfile=/scratch/kocevski/601255/cmap_HighResolution_377481601_377740801_4FGL_J0839.8+0105_daily_bin533.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 4.83
user 0.37
sys 4.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.0455       1.0000         .10000E-03   10000.    
     4 'norm      '    2.2381       1.0000         .10000E-03   10000.    
     5 'norm      '    1.1790       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.9876       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.034       1.0000         .10000E-03   10000.    
    11 'norm      '    .78218       1.0000         .10000E-03   10000.    
    12 'norm      '    10.672       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10993E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.9473       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.173       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5059       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0865       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .56660       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=   4587.169     FROM MIGRAD    STATUS=CONVERGED    383 CALLS     1868 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4826       -.38544E-07** at limit **
   2  Prefactor     .10000E-03    11.447       -.90475E-06** at limit **
   3  norm          5.0452        6.7346        .17984E-05   -.39243E-03
   4  norm          2.2378        2.4192       -.57500E-09   -.65916E-04
   5  norm          1.1791        1.5295        .75717E-07   -.91575E-04
   6  norm          .10000E-03    7.9708       -.27807E-06** at limit **
   7  norm          3.9880        3.0455       -.51193E-07    .12407E-04
   8  Prefactor     .10000E-03    24.181        .96178E-06** at limit **
   9  norm          .10000E-03    9.6966        .99747E-06** at limit **
  10  Prefactor     12.025        19.451       -.10483E-05   -.13880E-03
  11  norm          .78259        .96487        .36934E-07   -.83552E-04
  12  norm          10.673        8.4206        .89971E-08    .10900E-04
  13  Prefactor     .10000E-03    32.287       -.72007E-06** at limit **
  14  norm          8.9481        4.5986       -.44095E-06   -.70978E-03
  15  norm          .10000E-03    3.2179       -.13821E-09** at limit **
  16  Prefactor     18.175        20.979        .29752E-06    .46925E-04
  17  Prefactor     3.5063        4.3952        .25963E-06    .61775E-04
  18  Normalizat    1.0863        .19503        .63652E-06    .24775E-05
  19  Prefactor     .56672        .13812       -.66298E-06    .63359E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.04515
  norm       = 2.23777
  norm       = 1.17915
  norm       = 0.0001
  norm       = 3.98796
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.0252
  norm       = 0.782593
  norm       = 10.6729
  Prefactor  = 0.0001
  norm       = 8.94805
  norm       = 0.0001
  Prefactor  = 18.1753
  Prefactor  = 3.50628
  Normalizat = 1.08626
  Prefactor  = 0.566725
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.169     FROM HESSE     STATUS=OK           274 CALLS     2142 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.5046        .12343E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.0452        7.0380        .89507E-03   -1.5259    
   4  norm          2.2378        2.3869        .10141E-03   -1.5409    
   5  norm          1.1791        1.4880        .87819E-04   -1.5491    
   6  norm          .10000E-03    8.0098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.9880        3.0463        .10018E-03   -1.5309    
   8  Prefactor     .10000E-03    24.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.8963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.025        19.898        .11548E-03   -1.5014    
  11  norm          .78259        .92688        .69852E-03   -1.5531    
  12  norm          10.673        8.4133        .12264E-03   -1.5054    
  13  Prefactor     .10000E-03    32.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.9481        4.7851        .10323E-03   -1.5110    
  15  norm          .10000E-03    3.2517        .11862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.175        21.010        .93952E-04   -1.4855    
  17  Prefactor     3.5063        4.3898        .15256E-03   -1.5333    
  18  Normalizat    1.0863        .22211        .22558E-03   -.90194    
  19  Prefactor     .56672        .15716        .22052E-03   -1.0901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06271e-10
Minuit parameter uncertainties:
  1  5.26285e-06
  2  0.000126724
  3  7.03918
  4  2.38696
  5  1.48806
  6  3.30078e-05
  7  3.04646
  8  0.000202314
  9  0.000124713
  10  19.9091
  11  0.926902
  12  8.41422
  13  0.000195416
  14  4.78532
  15  1.83456e-06
  16  21.0183
  17  4.39016
  18  0.222301
  19  0.157286
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.067e+01  8.414e+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:  5.667e-01  1.573e-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.086e+00  2.223e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.05
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 4.15e-08 +/- 3.27e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.20e-05

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) = 4587.15478427
delta logL = 0.0138385633045

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4587.15359002
delta logL = 0.0150328143045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.354       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0894       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56479       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=   4587.154     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      193 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.354        14.333        .31130E-02    .38057E-03
   2  alpha         2.0894        1.2069        .41876        .64020E-04
   3  Normalizat    1.0927        .19431        .38303E-01    .24436E-04
   4  Prefactor     .56479        .13859        .40572E-01   -.27771E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.3538
  alpha      = 2.08935
  Normalizat = 1.09275
  Prefactor  = 0.564788
 **********
 **   18 **HESSE 
 **********

 FCN=   4587.154     FROM HESSE     STATUS=OK            31 CALLS      224 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.354        8.8336        .12452E-03   -1.5064    
   2  alpha         2.0894        .86735        .19202E-01   -.16501    
   3  Normalizat    1.0927        .21595        .22501E-03   -.89985    
   4  Prefactor     .56479        .15543        .22090E-03   -1.0909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.0266e-10
Minuit parameter uncertainties:
  1  8.8347
  2  0.886309
  3  0.21612
  4  0.155553
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601255': 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) = 4587.15359002
delta logL = 0.0150328156333

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.035e+01  8.835e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.089e+00  8.863e-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:  5.648e-01  1.556e-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.093e+00  2.161e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.08
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.09 +/- 0.89
Photon Flux (Free Index): 3.49e-08 +/- 4.58e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/601255/cmap_HighResolution_377481601_377740801_4FGL_J0839.8+0105_daily_bin533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.15e-08', energy_flux2='1.50e-05', photon_flux_error='3.27e-08', dlogl='1.50e-02', energy_flux='1.53e-05', photon_flux2='3.49e-08', job_status='DONE', time_completed='2021-08-30 03:02:37.579851', photon_index_error2='0.89', photon_index2='2.09', ts='6.05', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.09', time_epoch_completed='1630317757.58', return_code='0', job_id='601255', GAL2='0.56', EG2='1.09', return_code2='0', energy_flux_error='1.20e-05', photon_flux_error2='4.58e-08', ts2='6.08', photon_index='2.24' WHERE bin_id='533' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 601255: <4FGL_J0839.8+0105_daily_bin533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin533 129.963 1.0877 377481601 377740801 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 :                                   571.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             225.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            714 sec.

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

