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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin310
RA = 129.963, Dec = 1.0877
tmin = 319680001, tmax = 319939201
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='600842', job_status='RUN', time_executed='2021-08-30 02:54:06.696847', time_epoch_executed='1630317246.7' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600842

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600842/ft1_4FGL_J0839.8+0105_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600842/ft2_4FGL_J0839.8+0105_daily_bin310.fits


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

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

Done.
real 3.68
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600842/ft2_4FGL_J0839.8+0105_daily_bin310.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/600842/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin310.fits evtable="EVENTS" outfile="/scratch/kocevski/600842/ft1_filtered_4FGL_J0839.8+0105_daily_bin310.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600842/ft1_filtered_4FGL_J0839.8+0105_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/600842/ft2_4FGL_J0839.8+0105_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/600842/ltcube_319680001_319939201_4FGL_J0839.8+0105_daily_bin310.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/600842/ft2_4FGL_J0839.8+0105_daily_bin310.fits
.....................!
real 12.44
user 12.06
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600842/ft1_filtered_4FGL_J0839.8+0105_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/600842/ft2_4FGL_J0839.8+0105_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/600842/ltcube_319680001_319939201_4FGL_J0839.8+0105_daily_bin310.fits outfile=/scratch/kocevski/600842/expmap_319680001_319939201_4FGL_J0839.8+0105_daily_bin310.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/600842/ltcube_319680001_319939201_4FGL_J0839.8+0105_daily_bin310.fits
.....................!
real 192.23
user 185.92
sys 5.52

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/600842/ft1_filtered_4FGL_J0839.8+0105_daily_bin310.fits scfile=/scratch/kocevski/600842/ft2_4FGL_J0839.8+0105_daily_bin310.fits outfile=/scratch/kocevski/600842/cmap_319680001_319939201_4FGL_J0839.8+0105_daily_bin310.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600842/ft1_filtered_4FGL_J0839.8+0105_daily_bin310.fits scfile=/scratch/kocevski/600842/ft2_4FGL_J0839.8+0105_daily_bin310.fits outfile=/scratch/kocevski/600842/cmap_HighResolution_319680001_319939201_4FGL_J0839.8+0105_daily_bin310.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.60
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .23611       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4079       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3188       1.0000         .10000E-03   10000.    
     5 'norm      '    3.5209       1.0000         .10000E-03   10000.    
     6 'norm      '    33.120       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3574       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    31.030       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15920E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    14.321       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2940       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .29178E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1170       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1182       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4991.259     FROM MIGRAD    STATUS=CONVERGED    123 CALLS     1655 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.2978       -.94201E-06** at limit **
   2  Prefactor     .10058E-03    1865.5       -.30883E-03** at limit **
   3  norm          1.4079        5.4002        .78473E-07   -.52341E-04
   4  norm          1.3187        1.4179       -.35921E-06   -.73126E-04
   5  norm          3.5203        1.8967        .18518E-06   -.70194E-04
   6  norm          33.205        14.748       -.32691E-05   -.22161E-03
   7  norm          5.3598        3.9386       -.90909E-06   -.14405E-03
   8  Prefactor     .10000E-03    21.143        .21813E-04** at limit **
   9  norm          31.073        28.836       -.19351E-04    .12614E-02
  10  Prefactor     .10000E-03    6.5025        .10116E-04** at limit **
  11  norm          .17807E-01    8.5755        .37322E-04   -.30611E-03
  12  norm          14.324        9.0977        .20037E-05   -.81686E-03
  13  Prefactor     .10000E-03    10.170       -.17128E-04** at limit **
  14  norm          .10000E-03    5.6709       -.44416E-05** at limit **
  15  norm          5.2867        2.0944       -.49729E-05   -.93458E-02
  16  Prefactor     .10048E-03    106.15       -.14307E-04** at limit **
  17  Prefactor     4.1171        3.8753       -.81663E-06   -.39190E-03
  18  Normalizat    1.1183        .23343        .42793E-05    .27568E-04
  19  Prefactor     .77065        .17646       -.24792E-06    .25558E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100581
  norm       = 1.40787
  norm       = 1.31868
  norm       = 3.52031
  norm       = 33.2046
  norm       = 5.35981
  Prefactor  = 0.0001
  norm       = 31.0729
  Prefactor  = 0.0001
  norm       = 0.017807
  norm       = 14.3236
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.28669
  Prefactor  = 0.000100478
  Prefactor  = 4.1171
  Normalizat = 1.11828
  Prefactor  = 0.770655
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.259     FROM HESSE     STATUS=OK           332 CALLS     1987 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.2955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10058E-03    41.357        .12197       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.4079        5.4543        .91318E-02   -1.5471    
   4  norm          1.3187        1.4111        .95827E-02   -1.5478    
   5  norm          3.5203        1.9029        .53861E-02   -1.5333    
   6  norm          33.205        25.995        .17407E-02   -1.4555    
   7  norm          5.3598        3.9619        .43407E-02   -1.5245    
   8  Prefactor     .10000E-03    21.149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          31.073        31.316        .17982E-02   -1.4593    
  10  Prefactor     .10000E-03    6.4902        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .17807E-01    .49292        .31145E-01   -1.5681    
  12  norm          14.324        9.1345        .26460E-02   -1.4951    
  13  Prefactor     .10000E-03    10.179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9163        .41746E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2867        8.1246        .43671E-02   -1.5248    
  16  Prefactor     .10048E-03    21.785        .10701       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.1171        3.8825        .49668E-02   -1.5302    
  18  Normalizat    1.1183        .20246        .56053E-01   -.89167    
  19  Prefactor     .77065        .14960        .43333E-01   -1.0082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14971e-07
Minuit parameter uncertainties:
  1  2.81262e-06
  2  0.00981124
  3  5.45621
  4  1.41114
  5  1.90289
  6  26.0036
  7  3.96208
  8  0.000185414
  9  31.3321
  10  5.22536e-05
  11  0.186851
  12  9.13539
  13  8.30551e-05
  14  1.36154e-05
  15  8.12628
  16  0.00645645
  17  3.8827
  18  0.202599
  19  0.149683
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.432e+01  9.135e+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:  7.707e-01  1.497e-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.118e+00  2.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.88
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 5.56e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.31e-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) = 4990.52487055
delta logL = 0.734229715046

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4990.32369799
delta logL = 0.935402273266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5053       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1255       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1606       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75798       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=   4990.324     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      211 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5053        6.1385        .36598E-02    .30419E-02
   2  alpha         1.1241        .49332        .34674       -.20100E-05
   3  Normalizat    1.1603        .19545        .55164E-01   -.30904E-04
   4  Prefactor     .75821        .14802        .43168E-01   -.83467E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.50534
  alpha      = 1.12413
  Normalizat = 1.16029
  Prefactor  = 0.758213
 **********
 **   18 **HESSE 
 **********

 FCN=   4990.324     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5053        8.7193        .14027E-03   -1.5160    
   2  alpha         1.1241        .71034        .14957E-01   -.58278    
   3  Normalizat    1.1603        .23079        .24393E-03   -.87839    
   4  Prefactor     .75821        .17500        .22236E-03   -1.0129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07801e-08
Minuit parameter uncertainties:
  1  8.72082
  2  0.724823
  3  0.230991
  4  0.175126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600842': 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) = 4990.32369202
delta logL = 0.935408240649

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  7.505e+00  8.721e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.124e+00  7.248e-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.582e-01  1.751e-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.160e+00  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.76
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.12 +/- 0.72
Photon Flux (Free Index): 1.67e-08 +/- 1.79e-08
Energy Flux (Free Index): 3.29e-05 +/- 3.28e-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/600842/cmap_HighResolution_319680001_319939201_4FGL_J0839.8+0105_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.56e-08', energy_flux2='3.29e-05', photon_flux_error='3.55e-08', dlogl='9.35e-01', energy_flux='2.05e-05', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-08-30 03:01:55.218523', photon_index_error2='0.72', photon_index2='1.12', ts='5.88', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='3.28e-05', EG='1.12', time_epoch_completed='1630317715.22', return_code='0', job_id='600842', GAL2='0.76', EG2='1.16', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='1.79e-08', ts2='7.76', photon_index='2.24' WHERE bin_id='310' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:01:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 600842: <4FGL_J0839.8+0105_daily_bin310> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin310 129.963 1.0877 319680001 319939201 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 :                                   464.21 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             244.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            693 sec.

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

