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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin548
RA = 129.963, Dec = 1.0877
tmin = 381369601, tmax = 381628801
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='601278', job_status='RUN', time_executed='2021-08-30 02:54:28.107067', time_epoch_executed='1630317268.11' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601278

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601278/ft1_4FGL_J0839.8+0105_daily_bin548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601278/ft2_4FGL_J0839.8+0105_daily_bin548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601278/ft1_4FGL_J0839.8+0105_daily_bin548.fits outfile=/scratch/kocevski/601278/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin548.fits ra=129.963 dec=1.0877 rad=12.0 tmin=381369601.0 tmax=381628801.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 5.43
user 3.33
sys 2.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601278/ft2_4FGL_J0839.8+0105_daily_bin548.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/601278/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin548.fits evtable="EVENTS" outfile="/scratch/kocevski/601278/ft1_filtered_4FGL_J0839.8+0105_daily_bin548.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 2.43
user 0.34
sys 2.03

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601278/ft1_filtered_4FGL_J0839.8+0105_daily_bin548.fits" evtable="EVENTS" scfile=/scratch/kocevski/601278/ft2_4FGL_J0839.8+0105_daily_bin548.fits sctable="SC_DATA" outfile=/scratch/kocevski/601278/ltcube_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.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/601278/ft2_4FGL_J0839.8+0105_daily_bin548.fits
.....................!
real 17.39
user 14.91
sys 2.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601278/ft1_filtered_4FGL_J0839.8+0105_daily_bin548.fits evtable="EVENTS" scfile=/scratch/kocevski/601278/ft2_4FGL_J0839.8+0105_daily_bin548.fits sctable="SC_DATA" expcube=/scratch/kocevski/601278/ltcube_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.fits outfile=/scratch/kocevski/601278/expmap_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.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/601278/ltcube_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.fits
.....................!
real 192.51
user 185.57
sys 6.58

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/601278/ft1_filtered_4FGL_J0839.8+0105_daily_bin548.fits scfile=/scratch/kocevski/601278/ft2_4FGL_J0839.8+0105_daily_bin548.fits outfile=/scratch/kocevski/601278/cmap_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.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 2.34
user 0.38
sys 1.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601278/ft1_filtered_4FGL_J0839.8+0105_daily_bin548.fits scfile=/scratch/kocevski/601278/ft2_4FGL_J0839.8+0105_daily_bin548.fits outfile=/scratch/kocevski/601278/cmap_HighResolution_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.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 2.49
user 0.38
sys 1.99

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    13.215       1.0000         .10000E-03   10000.    
     4 'norm      '    .93281       1.0000         .10000E-03   10000.    
     5 'norm      '    2.2134       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    51.170       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .12914       1.0000         .10000E-03   10000.    
    12 'norm      '    3.5535       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.7751       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1606       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.7430       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .75728       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2188       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=   7178.383     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1636 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3273        7.9659       -.69188E-07   -.33226E-04
   2  Prefactor     .10000E-03    8.7741       -.10182E-04** at limit **
   3  norm          13.218        10.516       -.33706E-06    .98415E-05
   4  norm          .93506        2.2920        .43956E-07   -.15433E-03
   5  norm          2.2130        1.5938       -.31486E-09   -.16831E-02
   6  norm          .10000E-03    8.0715        .67902E-05** at limit **
   7  norm          .10000E-03    2.0839       -.26708E-06** at limit **
   8  Prefactor     51.171        29.934        .90469E-06   -.13802E-04
   9  norm          .10000E-03    8.2570        .23351E-05** at limit **
  10  Prefactor     .10000E-03    6.5398       -.91117E-06** at limit **
  11  norm          .12905        .50991        .15075E-06   -.43070E-03
  12  norm          3.5535        6.3598       -.13205E-06   -.42029E-04
  13  Prefactor     .10000E-03    27.433       -.19236E-05** at limit **
  14  norm          5.7751        3.8020       -.75448E-06   -.61444E-04
  15  norm          6.1603        4.5159       -.12704E-05   -.67979E-04
  16  Prefactor     .10000E-03    13.500        .40781E-05** at limit **
  17  Prefactor     1.7423        1.3216        .21065E-06   -.29142E-02
  18  Normalizat    .75735        .18408        .52393E-06   -.10914E-04
  19  Prefactor     1.2187        .14325       -.52681E-08    .68318E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32732
  Prefactor  = 0.0001
  norm       = 13.2178
  norm       = 0.935062
  norm       = 2.21304
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 51.1709
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.129055
  norm       = 3.55348
  Prefactor  = 0.0001
  norm       = 5.77508
  norm       = 6.16027
  Prefactor  = 0.0001
  Prefactor  = 1.74229
  Normalizat = 0.757355
  Prefactor  = 1.21871
 **********
 **   18 **HESSE 
 **********

 FCN=   7178.383     FROM HESSE     STATUS=OK           270 CALLS     1906 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3273        7.8598        .22169E-03   -1.5343    
   2  Prefactor     .10000E-03    8.7969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          13.218        10.492        .11019E-03   -1.4981    
   4  norm          .93506        2.2039        .17969E-03   -1.5515    
   5  norm          2.2130        1.5985        .42506E-03   -1.5410    
   6  norm          .10000E-03    8.0727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.1138        .11937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     51.171        29.966        .56064E-04   -1.4276    
   9  norm          .10000E-03    8.2590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .12905        .49608        .11607E-03   -1.5636    
  12  norm          3.5535        6.3509        .21441E-03   -1.5331    
  13  Prefactor     .10000E-03    27.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.7751        3.8042        .12785E-03   -1.5227    
  15  norm          6.1603        4.5180        .14949E-03   -1.5212    
  16  Prefactor     .10000E-03    13.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.7423        3.6147        .11132E-02   -1.5444    
  18  Normalizat    .75735        .21220        .31107E-03   -1.0167    
  19  Prefactor     1.2187        .16539        .19807E-03   -.85758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63359e-09
Minuit parameter uncertainties:
  1  7.86225
  2  3.63906e-05
  3  10.4938
  4  2.20406
  5  1.59857
  6  1.14976e-05
  7  8.8031e-07
  8  29.9752
  9  6.95732e-06
  10  7.85921e-06
  11  0.496092
  12  6.35207
  13  1.7265e-05
  14  3.80432
  15  4.51829
  16  1.64131e-05
  17  3.61513
  18  0.212428
  19  0.165462
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.553e+00  6.352e+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.219e+00  1.655e-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.574e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601278/likelihoodResults_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.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) = 7176.69953502
delta logL = 1.68300504299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7176.68443047
delta logL = 1.69810959845

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2788       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5195       1.0000          .0000       5.0000    
     3 'Normalizat'    .62647       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2821       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=   7176.684     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2778        13.318        .98165E-02    .88015E-03
   2  alpha         4.5217        4.1791        .47104        .23321E-04
   3  Normalizat    .62602        .63902E-01    .76767E-01    .27683E-04
   4  Prefactor     1.2824        .50715E-01    .32930E-01   -.15715E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27782
  alpha      = 4.52165
  Normalizat = 0.626016
  Prefactor  = 1.2824
 **********
 **   18 **HESSE 
 **********

 FCN=   7176.684     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2778        19.847        .52908E-04   -1.5482    
   2  alpha         4.5217        4.1245        .25538E-01    .94187    
   3  Normalizat    .62602        .21784        .33988E-03   -1.0689    
   4  Prefactor     1.2824        .17018        .19367E-03   -.83832    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.4442e-10
Minuit parameter uncertainties:
  1  10.0754
  2  5.25081
  3  0.218144
  4  0.17025
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601278': 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): 102
logL (Free Index) = 7176.68442183
delta logL = 1.69811823526

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.278e+00  1.008e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  4.522e+00  5.251e+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:  1.282e+00  1.702e-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.260e-01  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 129.963 1.088
Photon Index (Free Index): 4.52 +/- 5.25
Photon Flux (Free Index): 1.05e-07 +/- 6.65e-08
Energy Flux (Free Index): 1.55e-05 +/- 1.20e-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/601278/cmap_HighResolution_381369601_381628801_4FGL_J0839.8+0105_daily_bin548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-05', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='1.70e+00', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-08-30 03:04:32.681546', photon_index_error2='5.25', photon_index2='4.52', ts='0.42', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='7.80e-08', energy_flux_error2='1.20e-05', EG='0.76', time_epoch_completed='1630317872.68', return_code='0', job_id='601278', GAL2='1.28', EG2='0.63', return_code2='102', photon_flux_error2='6.65e-08', ts2='4.20', photon_index='2.24' WHERE bin_id='548' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:04:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 601278: <4FGL_J0839.8+0105_daily_bin548> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin548 129.963 1.0877 381369601 381628801 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 :                                   624.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

