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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin725
RA = 129.963, Dec = 1.0877
tmin = 427248001, tmax = 427507201
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='603224', job_status='RUN', time_executed='2021-08-30 02:58:08.869845', time_epoch_executed='1630317488.87' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='725'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603224

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603224/ft1_4FGL_J0839.8+0105_daily_bin725.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603224/ft2_4FGL_J0839.8+0105_daily_bin725.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603224/ft1_4FGL_J0839.8+0105_daily_bin725.fits outfile=/scratch/kocevski/603224/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin725.fits ra=129.963 dec=1.0877 rad=12.0 tmin=427248001.0 tmax=427507201.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.89
user 5.23
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603224/ft2_4FGL_J0839.8+0105_daily_bin725.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/603224/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin725.fits evtable="EVENTS" outfile="/scratch/kocevski/603224/ft1_filtered_4FGL_J0839.8+0105_daily_bin725.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 3.19
user 0.32
sys 2.02

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603224/ft1_filtered_4FGL_J0839.8+0105_daily_bin725.fits evtable="EVENTS" scfile=/scratch/kocevski/603224/ft2_4FGL_J0839.8+0105_daily_bin725.fits sctable="SC_DATA" expcube=/scratch/kocevski/603224/ltcube_427248001_427507201_4FGL_J0839.8+0105_daily_bin725.fits outfile=/scratch/kocevski/603224/expmap_427248001_427507201_4FGL_J0839.8+0105_daily_bin725.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/603224/ltcube_427248001_427507201_4FGL_J0839.8+0105_daily_bin725.fits
.....................!
real 195.04
user 185.02
sys 7.39

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/603224/ft1_filtered_4FGL_J0839.8+0105_daily_bin725.fits scfile=/scratch/kocevski/603224/ft2_4FGL_J0839.8+0105_daily_bin725.fits outfile=/scratch/kocevski/603224/cmap_427248001_427507201_4FGL_J0839.8+0105_daily_bin725.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.48
user 0.36
sys 1.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603224/ft1_filtered_4FGL_J0839.8+0105_daily_bin725.fits scfile=/scratch/kocevski/603224/ft2_4FGL_J0839.8+0105_daily_bin725.fits outfile=/scratch/kocevski/603224/cmap_HighResolution_427248001_427507201_4FGL_J0839.8+0105_daily_bin725.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.40
user 0.39
sys 1.96

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .92980       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.769       1.0000         .10000E-03   10000.    
     7 'norm      '    18.054       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10304E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    17.986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.981       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9090       1.0000         .10000E-03   10000.    
    15 'norm      '    5.3930       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .62051       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1709       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=   6745.291     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1876 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.3105       -.48350E-09** at limit **
   2  Prefactor     .10000E-03    11.186        .94195E-06** at limit **
   3  norm          .10000E-03    4.7017        .80924E-07** at limit **
   4  norm          .92989        .98037       -.28130E-07   -.60724E-05
   5  norm          .10000E-03    .40451        .14897E-07** at limit **
   6  norm          12.759        18.738       -.42525E-05   -.42619E-03
   7  norm          18.054        5.4656        .15076E-06    .86928E-04
   8  Prefactor     .10000E-03    22.559       -.24500E-06** at limit **
   9  norm          .10000E-03    14.927        .12552E-05** at limit **
  10  Prefactor     .10000E-03    12.033       -.17216E-05** at limit **
  11  norm          .10000E-03    .58510        .11396E-07** at limit **
  12  norm          17.986        9.2411        .13486E-06   -.22078E-03
  13  Prefactor     18.982        17.514        .22544E-06    .57920E-04
  14  norm          4.9091        3.8018       -.75849E-06   -.78770E-03
  15  norm          5.3935        4.4622        .15409E-05   -.17557E-02
  16  Prefactor     10.840        17.383       -.70326E-06   -.48021E-04
  17  Prefactor     .10000E-03    1.9548        .44745E-07** at limit **
  18  Normalizat    .62046        .18001        .83069E-06    .42931E-05
  19  Prefactor     1.1709        .13843       -.20704E-06    .77041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.929893
  norm       = 0.0001
  norm       = 12.7588
  norm       = 18.0535
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 17.9863
  Prefactor  = 18.9824
  norm       = 4.90914
  norm       = 5.3935
  Prefactor  = 10.8397
  Prefactor  = 0.0001
  Normalizat = 0.62046
  Prefactor  = 1.17091
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.291     FROM HESSE     STATUS=OK           268 CALLS     2144 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.3191        .12191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7312        .17388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .92989        .98950        .81303E-04   -1.5515    
   5  norm          .10000E-03    .41376        .50967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.759        19.916        .11210E-03   -1.4993    
   7  norm          18.054        5.4652        .94262E-04   -1.4858    
   8  Prefactor     .10000E-03    22.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    15.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3848        .12043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          17.986        9.2632        .47219E-03   -1.4860    
  13  Prefactor     18.982        17.512        .91932E-04   -1.4836    
  14  norm          4.9091        3.8450        .13581E-03   -1.5265    
  15  norm          5.3935        5.2867        .86522E-03   -1.5243    
  16  Prefactor     10.840        17.374        .12169E-03   -1.5049    
  17  Prefactor     .10000E-03    3.6854        .22272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .62046        .20255        .32144E-03   -1.0712    
  19  Prefactor     1.1709        .15701        .19086E-03   -.87231    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50735e-09
Minuit parameter uncertainties:
  1  1.71033e-06
  2  0.000144058
  3  1.46213e-07
  4  0.989516
  5  5.63913e-07
  6  19.9264
  7  5.4654
  8  4.75258e-05
  9  0.000139794
  10  0.000178059
  11  2.42179e-06
  12  9.26397
  13  17.5169
  14  3.84517
  15  5.2872
  16  17.3825
  17  4.73295e-06
  18  0.202792
  19  0.157068
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.799e+01  9.264e+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.171e+00  1.571e-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.205e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.21
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 6.99e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.32e-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) = 6744.7793783
delta logL = 0.512103900686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6744.77285559
delta logL = 0.518626612486

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.172       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8485       1.0000          .0000       5.0000    
     3 'Normalizat'    .56669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1969       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=   6744.773     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.171        9.7498        .10640E-03    .14157E-02
   2  alpha         2.8488        .64615        .11583E-01    .14685E-03
   3  Normalizat    .56672        .20625        .33523E-03   -.12568E-03
   4  Prefactor     1.1969        .16020        .18898E-03   -.45907E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.1707
  alpha      = 2.84876
  Normalizat = 0.566717
  Prefactor  = 1.1969
 **********
 **   18 **HESSE 
 **********

 FCN=   6744.773     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.171        9.1654        .42559E-05   -1.4955    
   2  alpha         2.8488        .60729        .46332E-03    .13996    
   3  Normalizat    .56672        .20573        .13409E-04   -1.0942    
   4  Prefactor     1.1969        .15993        .37796E-04   -.86427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.78607e-10
Minuit parameter uncertainties:
  1  9.1663
  2  0.613553
  3  0.206008
  4  0.159991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603224': 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) = 6744.77285524
delta logL = 0.518626959104

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.417e+01  9.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.849e+00  6.136e-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:  1.197e+00  1.600e-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:  5.667e-01  2.060e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.32
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.85 +/- 0.61
Photon Flux (Free Index): 1.08e-07 +/- 5.83e-08
Energy Flux (Free Index): 2.56e-05 +/- 1.16e-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/603224/cmap_HighResolution_427248001_427507201_4FGL_J0839.8+0105_daily_bin725.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.99e-08', energy_flux2='2.56e-05', photon_flux_error='3.60e-08', dlogl='5.19e-01', energy_flux='2.57e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-08-30 03:07:44.080656', photon_index_error2='0.61', photon_index2='2.85', ts='7.21', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='0.62', time_epoch_completed='1630318064.08', return_code='0', job_id='603224', GAL2='1.20', EG2='0.57', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='5.83e-08', ts2='8.32', photon_index='2.24' WHERE bin_id='725' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:07:44 PDT 2021


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

Job <4FGL_J0839.8+0105_daily_bin725> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:55:40 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:55:42 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:55:42 2021
Terminated at Mon Aug 30 03:07:45 2021
Results reported at Mon Aug 30 03:07:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin725 129.963 1.0877 427248001 427507201 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 :                                   591.15 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

