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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin561
RA = 129.963, Dec = 1.0877
tmin = 384739201, tmax = 384998401
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='601322', job_status='RUN', time_executed='2021-08-30 02:53:30.156415', time_epoch_executed='1630317210.16' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='561'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601322

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601322/ft1_4FGL_J0839.8+0105_daily_bin561.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601322/ft2_4FGL_J0839.8+0105_daily_bin561.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601322/ft1_4FGL_J0839.8+0105_daily_bin561.fits outfile=/scratch/kocevski/601322/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin561.fits ra=129.963 dec=1.0877 rad=12.0 tmin=384739201.0 tmax=384998401.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.34
user 4.30
sys 1.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601322/ft1_filtered_4FGL_J0839.8+0105_daily_bin561.fits" evtable="EVENTS" scfile=/scratch/kocevski/601322/ft2_4FGL_J0839.8+0105_daily_bin561.fits sctable="SC_DATA" outfile=/scratch/kocevski/601322/ltcube_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.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/601322/ft2_4FGL_J0839.8+0105_daily_bin561.fits
.....................!
real 12.37
user 11.28
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601322/ft1_filtered_4FGL_J0839.8+0105_daily_bin561.fits evtable="EVENTS" scfile=/scratch/kocevski/601322/ft2_4FGL_J0839.8+0105_daily_bin561.fits sctable="SC_DATA" expcube=/scratch/kocevski/601322/ltcube_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.fits outfile=/scratch/kocevski/601322/expmap_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.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/601322/ltcube_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.fits
.....................!
real 192.62
user 187.02
sys 5.11

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/601322/ft1_filtered_4FGL_J0839.8+0105_daily_bin561.fits scfile=/scratch/kocevski/601322/ft2_4FGL_J0839.8+0105_daily_bin561.fits outfile=/scratch/kocevski/601322/cmap_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.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.28
user 0.39
sys 0.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601322/ft1_filtered_4FGL_J0839.8+0105_daily_bin561.fits scfile=/scratch/kocevski/601322/ft2_4FGL_J0839.8+0105_daily_bin561.fits outfile=/scratch/kocevski/601322/cmap_HighResolution_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.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.26
user 0.39
sys 0.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.917       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.416       1.0000         .10000E-03   10000.    
     3 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.0250       1.0000         .10000E-03   10000.    
     5 'norm      '    5.6692       1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10475E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .14114E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8300       1.0000         .10000E-03   10000.    
    11 'norm      '    .55296       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.421       1.0000         .10000E-03   10000.    
    14 'norm      '    1.9087       1.0000         .10000E-03   10000.    
    15 'norm      '    14.011       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .44100       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2649       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=   5036.196     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1938 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.916        13.170        .20477E-02    .21252E-03
   2  Prefactor     13.413        35.202        .27339E-02    .30567E-03
   3  norm          .10000E-03    21.932        .90712E-02** at limit **
   4  norm          2.0248        2.8257        .72692E-02    .44408E-03
   5  norm          5.6694        2.3768        .42177E-02    .23964E-03
   6  norm          .10000E-03    13.173        .90712E-02** at limit **
   7  norm          .10000E-03    2.5298        .58316E-01** at limit **
   8  Prefactor     .10000E-03    29.406        .90712E-02** at limit **
   9  norm          .10000E-03    127.24        .90712E-02** at limit **
  10  Prefactor     7.8302        9.0952        .35825E-02    .31266E-03
  11  norm          .55309        1.0613        .11485E-01    .11672E-02
  12  norm          5.7017        9.6323        .42054E-02    .13681E-03
  13  Prefactor     32.428        40.002        .17593E-02   -.18677E-02
  14  norm          1.9093        5.5112        .75233E-02    .73560E-03
  15  norm          14.012        7.9252        .26752E-02    .58911E-03
  16  Prefactor     .10000E-03    9.9061        .90712E-02** at limit **
  17  Prefactor     .10000E-03    1.5162        .90712E-02** at limit **
  18  Normalizat    .44115        .24388        .87058E-01    .70104E-04
  19  Prefactor     1.2647        .17948        .33252E-01    .11358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.9164
  Prefactor  = 13.4127
  norm       = 0.0001
  norm       = 2.02475
  norm       = 5.66939
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 7.83016
  norm       = 0.553089
  norm       = 5.70171
  Prefactor  = 32.428
  norm       = 1.90928
  norm       = 14.0121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.441147
  Prefactor  = 1.26473
 **********
 **   18 **HESSE 
 **********

 FCN=   5036.196     FROM HESSE     STATUS=OK           268 CALLS     2206 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.916        13.136        .81908E-04   -1.4729    
   2  Prefactor     13.413        34.867        .10935E-03   -1.4975    
   3  norm          .10000E-03    22.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.0248        2.7989        .13168E-03   -1.5423    
   5  norm          5.6694        2.3727        .66499E-04   -1.5232    
   6  norm          .10000E-03    13.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.187        .21573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    133.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.8302        9.0908        .71649E-03   -1.5148    
  11  norm          .55309        1.0191        .93963E-04   -1.5559    
  12  norm          5.7017        9.5906        .16821E-03   -1.5230    
  13  Prefactor     32.428        39.798        .70373E-04   -1.4568    
  14  norm          1.9093        5.4325        .25477E-03   -1.5432    
  15  norm          14.012        7.9055        .53503E-03   -1.4959    
  16  Prefactor     .10000E-03    9.9278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.5248        .85316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .44115        .25659        .38570E-03   -1.1523    
  19  Prefactor     1.2647        .19544        .18632E-03   -.84362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75592e-08
Minuit parameter uncertainties:
  1  13.1377
  2  34.9201
  3  1.99832e-05
  4  2.79913
  5  2.37273
  6  1.37377e-05
  7  2.38771e-08
  8  5.20693e-05
  9  0.000888556
  10  9.09239
  11  1.01914
  12  9.5932
  13  39.8305
  14  5.43386
  15  7.90609
  16  4.89467e-06
  17  9.21189e-07
  18  0.257277
  19  0.195556
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.702e+00  9.593e+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.265e+00  1.956e-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:  4.411e-01  2.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.43
Ra Dec: 129.963 1.088
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601322/likelihoodResults_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.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) = 5035.50373505
delta logL = 0.692369684682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5035.50273369
delta logL = 0.693371054227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9712       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7342       1.0000          .0000       5.0000    
     3 'Normalizat'    .36493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3027       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=   5035.503     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      297 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9702        30.489        .97096E-04    .42339E-03
   2  alpha         3.7342        4.3665        .17055E-01    .13789E-04
   3  Normalizat    .36489        .26430        .42277E-03   -.20109E-03
   4  Prefactor     1.3028        .21116        .18386E-03   -.67312E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97021
  alpha      = 3.73425
  Normalizat = 0.364888
  Prefactor  = 1.30279
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.503     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9702        6.7570        .38838E-05   -1.5363    
   2  alpha         3.7342        1.4468        .68219E-03    .51634    
   3  Normalizat    .36489        .25392        .16911E-04   -1.1916    
   4  Prefactor     1.3028        .19775        .36772E-04   -.83224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00131e-10
Minuit parameter uncertainties:
  1  6.75869
  2  1.58303
  3  0.254724
  4  0.197869
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601322': 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) = 5035.50273326
delta logL = 0.693371481524

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.970e+00  6.759e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.734e+00  1.583e+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.303e+00  1.979e-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:  3.649e-01  2.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.93
Ra Dec: 129.963 1.088
Photon Index (Free Index): 3.73 +/- 1.58
Photon Flux (Free Index): 7.50e-08 +/- 6.54e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.13e-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/601322/cmap_HighResolution_384739201_384998401_4FGL_J0839.8+0105_daily_bin561.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='6.93e-01', photon_flux2='7.50e-08', job_status='DONE', time_completed='2021-08-30 03:02:10.484481', photon_index_error2='1.58', photon_index2='3.73', ts='0.43', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.13e-05', EG='0.44', time_epoch_completed='1630317730.48', return_code='0', job_id='601322', GAL2='1.30', EG2='0.36', return_code2='0', photon_flux_error2='6.54e-08', ts2='1.93', photon_index='2.24' WHERE bin_id='561' 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@bullet0122>
Subject: Job 601322: <4FGL_J0839.8+0105_daily_bin561> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin561> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:48 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:50 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:50 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_bin561 129.963 1.0877 384739201 384998401 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 :                                   529.54 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             270.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            683 sec.

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

