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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin535
RA = 129.963, Dec = 1.0877
tmin = 378000001, tmax = 378259201
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='601258', job_status='RUN', time_executed='2021-08-30 02:53:33.177928', time_epoch_executed='1630317213.18' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='535'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601258

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601258/ft1_4FGL_J0839.8+0105_daily_bin535.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601258/ft2_4FGL_J0839.8+0105_daily_bin535.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601258/ft1_4FGL_J0839.8+0105_daily_bin535.fits outfile=/scratch/kocevski/601258/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin535.fits ra=129.963 dec=1.0877 rad=12.0 tmin=378000001.0 tmax=378259201.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 4.10
user 3.28
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601258/ft2_4FGL_J0839.8+0105_daily_bin535.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/601258/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin535.fits evtable="EVENTS" outfile="/scratch/kocevski/601258/ft1_filtered_4FGL_J0839.8+0105_daily_bin535.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.12
user 0.30
sys 0.78

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601258/ft1_filtered_4FGL_J0839.8+0105_daily_bin535.fits" evtable="EVENTS" scfile=/scratch/kocevski/601258/ft2_4FGL_J0839.8+0105_daily_bin535.fits sctable="SC_DATA" outfile=/scratch/kocevski/601258/ltcube_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.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/601258/ft2_4FGL_J0839.8+0105_daily_bin535.fits
.....................!
real 12.79
user 11.78
sys 0.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601258/ft1_filtered_4FGL_J0839.8+0105_daily_bin535.fits evtable="EVENTS" scfile=/scratch/kocevski/601258/ft2_4FGL_J0839.8+0105_daily_bin535.fits sctable="SC_DATA" expcube=/scratch/kocevski/601258/ltcube_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.fits outfile=/scratch/kocevski/601258/expmap_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.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/601258/ltcube_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.fits
.....................!
real 191.69
user 185.77
sys 5.61

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/601258/ft1_filtered_4FGL_J0839.8+0105_daily_bin535.fits scfile=/scratch/kocevski/601258/ft2_4FGL_J0839.8+0105_daily_bin535.fits outfile=/scratch/kocevski/601258/cmap_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.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.14
user 0.37
sys 0.75

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601258/ft1_filtered_4FGL_J0839.8+0105_daily_bin535.fits scfile=/scratch/kocevski/601258/ft2_4FGL_J0839.8+0105_daily_bin535.fits outfile=/scratch/kocevski/601258/cmap_HighResolution_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.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.17
user 0.39
sys 0.74

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9054       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3235       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6053       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .88512       1.0000         .10000E-03   10000.    
    11 'norm      '    .65721       1.0000         .10000E-03   10000.    
    12 'norm      '    6.6173       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4055       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9415       1.0000         .10000E-03   10000.    
    16 'Prefactor '    17.230       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1762       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .69937       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=   5242.612     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1936 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9047        6.6314       -.23263E-06    .26613E-04
   2  Prefactor     .10000E-03    11.627        .86753E-05** at limit **
   3  norm          .10000E-03    3.9422        .50481E-08** at limit **
   4  norm          2.3233        2.0442       -.86494E-07   -.76794E-04
   5  norm          .10000E-03    .67421       -.38409E-07** at limit **
   6  norm          .10000E-03    8.2326       -.89598E-06** at limit **
   7  norm          3.6052        3.8327       -.30418E-06   -.28215E-03
   8  Prefactor     .10000E-03    14.005       -.14671E-04** at limit **
   9  norm          .10000E-03    20.859        .11440E-04** at limit **
  10  Prefactor     .81389        14.495       -.65069E-05    .60742E-03
  11  norm          .65718        .61477       -.34303E-07    .36113E-03
  12  norm          6.6163        7.6735       -.62226E-06   -.90701E-04
  13  Prefactor     .10000E-03    32.928       -.22335E-05** at limit **
  14  norm          2.4053        3.1774       -.19102E-06   -.31871E-03
  15  norm          1.9421        4.1606        .20971E-05   -.25510E-03
  16  Prefactor     17.216        28.404       -.23011E-04   -.48498E-05
  17  Prefactor     .10000E-03    2.4106       -.26788E-07** at limit **
  18  Normalizat    1.1763        .19775        .40217E-05    .32489E-03
  19  Prefactor     .69942        .13982       -.81883E-06    .49587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.90471
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.32332
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.60516
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.813888
  norm       = 0.657176
  norm       = 6.61634
  Prefactor  = 0.0001
  norm       = 2.40528
  norm       = 1.94212
  Prefactor  = 17.2157
  Prefactor  = 0.0001
  Normalizat = 1.17628
  Prefactor  = 0.699423
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.612     FROM HESSE     STATUS=OK           268 CALLS     2204 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9047        6.6295        .15267E-03   -1.5182    
   2  Prefactor     .10000E-03    11.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.9499        .14038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3233        2.0445        .93692E-04   -1.5403    
   5  norm          .10000E-03    .70553        .11598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.2484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6052        3.8274        .14073E-03   -1.5328    
   8  Prefactor     .10000E-03    14.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    20.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .81389        78.336        .50427E-02   -1.5528    
  11  norm          .65718        .61939        .53133E-04   -1.5546    
  12  norm          6.6163        7.6720        .15600E-03   -1.5193    
  13  Prefactor     .10000E-03    33.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4053        3.1636        .14302E-03   -1.5398    
  15  norm          1.9421        4.1114        .20820E-03   -1.5429    
  16  Prefactor     17.216        28.539        .96489E-04   -1.4878    
  17  Prefactor     .10000E-03    2.4392        .10974E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1763        .23698        .23871E-03   -.87339    
  19  Prefactor     .69942        .16665        .22096E-03   -1.0355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30764e-08
Minuit parameter uncertainties:
  1  6.63025
  2  1.34145e-05
  3  7.06649e-06
  4  2.04458
  5  2.84831e-06
  6  7.48229e-06
  7  3.82766
  8  7.25394e-06
  9  2.27478e-05
  10  15.9901
  11  0.619394
  12  7.67312
  13  7.0877e-05
  14  3.16387
  15  4.11201
  16  28.5618
  17  7.61575e-06
  18  0.237196
  19  0.166768
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.616e+00  7.673e+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:  6.994e-01  1.668e-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.176e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.07
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 2.57e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 9.46e-06 +/- 1.10e-05

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

Saving results to:
/scratch/kocevski/601258/likelihoodResults_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.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) = 5242.51690752
delta logL = 0.0953934617928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5242.51397883
delta logL = 0.0983221449333

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1071       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6071       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70223       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=   5242.514     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1064        7.3304        .16246E-03    .17348E-02
   2  alpha         2.6075        .83376        .18687E-01    .16889E-03
   3  Normalizat    1.1680        .22272        .23940E-03   -.15311E-03
   4  Prefactor     .70217        .16314        .22052E-03   -.24730E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.10642
  alpha      = 2.60747
  Normalizat = 1.16802
  Prefactor  = 0.702166
 **********
 **   18 **HESSE 
 **********

 FCN=   5242.514     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1064        7.1395        .64984E-05   -1.5214    
   2  alpha         2.6075        .81265        .74750E-03    .43001E-01
   3  Normalizat    1.1680        .22291        .47881E-04   -.87597    
   4  Prefactor     .70217        .16327        .88209E-05   -1.0344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38086e-09
Minuit parameter uncertainties:
  1  7.14047
  2  0.827716
  3  0.223093
  4  0.163378
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601258': 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) = 5242.51397868
delta logL = 0.0983222984596

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.106e+00  7.140e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.607e+00  8.277e-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:  7.022e-01  1.634e-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.168e+00  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.61 +/- 0.83
Photon Flux (Free Index): 3.50e-08 +/- 4.05e-08
Energy Flux (Free Index): 9.59e-06 +/- 1.02e-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/601258/cmap_HighResolution_378000001_378259201_4FGL_J0839.8+0105_daily_bin535.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.56e-05', comment='SUCCESS', photon_flux='2.57e-08', energy_flux2='9.59e-06', photon_flux_error='2.98e-08', dlogl='9.83e-02', energy_flux='9.46e-06', photon_flux2='3.50e-08', job_status='DONE', time_completed='2021-08-30 03:02:10.860810', photon_index_error2='0.83', photon_index2='2.61', ts='1.07', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='9.68e-08', energy_flux_error2='1.02e-05', EG='1.18', time_epoch_completed='1630317730.86', return_code='0', job_id='601258', GAL2='0.70', EG2='1.17', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.05e-08', ts2='1.27', photon_index='2.24' WHERE bin_id='535' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 601258: <4FGL_J0839.8+0105_daily_bin535> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin535> 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) <bullet0290>, 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:11 2021
Results reported at Mon Aug 30 03:02:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin535 129.963 1.0877 378000001 378259201 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 :                                   524.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             260.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   684 sec.
    Turnaround time :                            686 sec.

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

