/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 177 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin124
RA = 129.963, Dec = 1.0877
tmin = 271468801, tmax = 271728001
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='598361', job_status='RUN', time_executed='2021-08-30 02:48:51.449016', time_epoch_executed='1630316931.45' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598361

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598361/ft1_4FGL_J0839.8+0105_daily_bin124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598361/ft2_4FGL_J0839.8+0105_daily_bin124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598361/ft1_4FGL_J0839.8+0105_daily_bin124.fits outfile=/scratch/kocevski/598361/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin124.fits ra=129.963 dec=1.0877 rad=12.0 tmin=271468801.0 tmax=271728001.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 1.90
user 1.42
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/598361/ft2_4FGL_J0839.8+0105_daily_bin124.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/598361/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin124.fits evtable="EVENTS" outfile="/scratch/kocevski/598361/ft1_filtered_4FGL_J0839.8+0105_daily_bin124.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.54
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598361/ft1_filtered_4FGL_J0839.8+0105_daily_bin124.fits" evtable="EVENTS" scfile=/scratch/kocevski/598361/ft2_4FGL_J0839.8+0105_daily_bin124.fits sctable="SC_DATA" outfile=/scratch/kocevski/598361/ltcube_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.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/598361/ft2_4FGL_J0839.8+0105_daily_bin124.fits
.....................!
real 12.27
user 11.85
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598361/ft1_filtered_4FGL_J0839.8+0105_daily_bin124.fits evtable="EVENTS" scfile=/scratch/kocevski/598361/ft2_4FGL_J0839.8+0105_daily_bin124.fits sctable="SC_DATA" expcube=/scratch/kocevski/598361/ltcube_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.fits outfile=/scratch/kocevski/598361/expmap_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.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/598361/ltcube_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.fits
.....................!
real 193.06
user 187.14
sys 5.55

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/598361/ft1_filtered_4FGL_J0839.8+0105_daily_bin124.fits scfile=/scratch/kocevski/598361/ft2_4FGL_J0839.8+0105_daily_bin124.fits outfile=/scratch/kocevski/598361/cmap_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598361/ft1_filtered_4FGL_J0839.8+0105_daily_bin124.fits scfile=/scratch/kocevski/598361/ft2_4FGL_J0839.8+0105_daily_bin124.fits outfile=/scratch/kocevski/598361/cmap_HighResolution_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21853E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2469       1.0000         .10000E-03   10000.    
     5 'norm      '    18.691       1.0000         .10000E-03   10000.    
     6 'norm      '    5.7512       1.0000         .10000E-03   10000.    
     7 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.227       1.0000         .10000E-03   10000.    
     9 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3300       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6570       1.0000         .10000E-03   10000.    
    12 'norm      '    .17266E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5989       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9621       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5904       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.7664       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .58354       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9266.279     FROM MIGRAD    STATUS=CONVERGED    402 CALLS     1921 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9793         .0000    ** at limit **
   2  Prefactor     .10000E-03    107.41         .0000    ** at limit **
   3  norm          .10000E-03    2.0275         .0000    ** at limit **
   4  norm          1.2469        1.1847         .0000       -.53493E-03
   5  norm          18.691        2.5744         .0000       -.15122E-03
   6  norm          5.7564        18.820         .0000       -.20113E-03
   7  norm          .10000E-03    1.9875         .0000    ** at limit **
   8  Prefactor     14.222        32.746         .0000        .15040E-02
   9  norm          .10000E-03    8.2720         .0000    ** at limit **
  10  Prefactor     4.3296        9.1220         .0000        .67344E-03
  11  norm          1.6571        .87456         .0000        .71434E-03
  12  norm          .10000E-03    4.6427         .0000    ** at limit **
  13  Prefactor     .10000E-03    4.0395         .0000    ** at limit **
  14  norm          1.5984        3.8325         .0000        .21472E-02
  15  norm          3.9621        5.1930         .0000        .24659E-02
  16  Prefactor     .10000E-03    8.9939         .0000    ** at limit **
  17  Prefactor     1.5896        4.1796         .0000        .35030E-01
  18  Normalizat    1.7664        .18053         .0000       -.95700E-04
  19  Prefactor     .58359        .12790         .0000       -.53800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 1.24691
  norm       = 18.6908
  norm       = 5.75643
  norm       = 0.000100001
  Prefactor  = 14.222
  norm       = 0.0001
  Prefactor  = 4.32964
  norm       = 1.65714
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59842
  norm       = 3.96209
  Prefactor  = 0.0001
  Prefactor  = 1.58963
  Normalizat = 1.76643
  Prefactor  = 0.583589
 **********
 **   18 **HESSE 
 **********

 FCN=   9266.279     FROM HESSE     STATUS=OK           272 CALLS     2193 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9836        .13225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    109.50        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.0305        .13386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2469        1.2128        .98969E-03   -1.5485    
   5  norm          18.691        2.5709        .55147E-04   -1.4843    
   6  norm          5.7564        18.640        .16748E-03   -1.5228    
   7  norm          .10000E-03    2.0298        .13243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.222        32.634        .10619E-03   -1.4954    
   9  norm          .10000E-03    8.2753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3296        9.1084        .19358E-03   -1.5292    
  11  norm          1.6571        .86642        .62551E-04   -1.5451    
  12  norm          .10000E-03    32.154        .39569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5984        3.8122        .27227E-03   -1.5455    
  15  norm          3.9621        5.1840        .20264E-03   -1.5310    
  16  Prefactor     .10000E-03    9.0072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5896        4.1673        .15052E-02   -1.5456    
  18  Normalizat    1.7664        .21360        .24351E-03   -.70543    
  19  Prefactor     .58359        .15036        .29048E-03   -1.0828    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6072e-08
Minuit parameter uncertainties:
  1  4.11664e-06
  2  0.000295204
  3  9.39102e-05
  4  1.21285
  5  2.57092
  6  18.6585
  7  0.00010176
  8  32.6749
  9  1.75328e-05
  10  9.11135
  11  0.866425
  12  0.000143683
  13  2.96738e-06
  14  3.81281
  15  5.18455
  16  3.06907e-05
  17  4.16803
  18  0.213711
  19  0.150467
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.437e-04  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:  5.836e-01  1.505e-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.766e+00  2.137e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/598361/likelihoodResults_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.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): 102
logL (Free Index) = 9266.27913807
delta logL = -0.000145403611896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9266.27897253
delta logL = 2.01342136279e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22685E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3820       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58339       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=   9266.112     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      273 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4947        91.988        .10056E-01    .14646E-02
   2  alpha         3.4574        2.6629        .41210        .66381E-04
   3  Normalizat    1.7397        .44313E-01    .55407E-01   -.83901E-04
   4  Prefactor     .59168        .32986E-01    .65213E-01   -.34237E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.4947
  alpha      = 3.45736
  Normalizat = 1.73972
  Prefactor  = 0.591684
 **********
 **   18 **HESSE 
 **********

 FCN=   9266.112     FROM HESSE     STATUS=OK            31 CALLS      304 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4947        5.7488        .20011E-03   -1.5463    
   2  alpha         3.4574        3.7466        .39483E-01    .39298    
   3  Normalizat    1.7397        .20949        .24496E-03   -.71248    
   4  Prefactor     .59168        .15098        .28857E-03   -1.0794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11665e-10
Minuit parameter uncertainties:
  1  5.75094
  2  2.43526
  3  0.209595
  4  0.151078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598361': 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) = 9266.1118831
delta logL = 0.167109567696

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.495e+00  5.751e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.457e+00  2.435e+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:  5.917e-01  1.511e-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.740e+00  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.963 1.088

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/598361/cmap_HighResolution_271468801_271728001_4FGL_J0839.8+0105_daily_bin124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', job_status='DONE', photon_flux_upper_limit='6.59e-08', time_completed='2021-08-30 03:00:05.762301', job_id='598361', GAL2='0.59', fit_tolerance='1e-08', EG2='1.74', EG='1.77', time_epoch_completed='1630317605.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.67e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='124' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:00:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 598361: <4FGL_J0839.8+0105_daily_bin124> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin124> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:45:36 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:45:39 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:45:39 2021
Terminated at Mon Aug 30 03:00:06 2021
Results reported at Mon Aug 30 03:00:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin124 129.963 1.0877 271468801 271728001 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

