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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin912
RA = 129.963, Dec = 1.0877
tmin = 475718401, tmax = 475977601
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='604984', job_status='RUN', time_executed='2021-08-30 03:03:38.605716', time_epoch_executed='1630317818.61' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='912'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/604984

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/604984/ft1_4FGL_J0839.8+0105_daily_bin912.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/604984/ft2_4FGL_J0839.8+0105_daily_bin912.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/604984/ft1_4FGL_J0839.8+0105_daily_bin912.fits outfile=/scratch/kocevski/604984/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin912.fits ra=129.963 dec=1.0877 rad=12.0 tmin=475718401.0 tmax=475977601.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.95
user 3.25
sys 0.61

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/604984/ft1_filtered_4FGL_J0839.8+0105_daily_bin912.fits" evtable="EVENTS" scfile=/scratch/kocevski/604984/ft2_4FGL_J0839.8+0105_daily_bin912.fits sctable="SC_DATA" outfile=/scratch/kocevski/604984/ltcube_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.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/604984/ft2_4FGL_J0839.8+0105_daily_bin912.fits
.....................!
real 12.08
user 11.33
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/604984/ft1_filtered_4FGL_J0839.8+0105_daily_bin912.fits evtable="EVENTS" scfile=/scratch/kocevski/604984/ft2_4FGL_J0839.8+0105_daily_bin912.fits sctable="SC_DATA" expcube=/scratch/kocevski/604984/ltcube_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.fits outfile=/scratch/kocevski/604984/expmap_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.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/604984/ltcube_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.fits
.....................!
real 191.66
user 186.36
sys 4.82

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/604984/ft1_filtered_4FGL_J0839.8+0105_daily_bin912.fits scfile=/scratch/kocevski/604984/ft2_4FGL_J0839.8+0105_daily_bin912.fits outfile=/scratch/kocevski/604984/cmap_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.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.05
user 0.36
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/604984/ft1_filtered_4FGL_J0839.8+0105_daily_bin912.fits scfile=/scratch/kocevski/604984/ft2_4FGL_J0839.8+0105_daily_bin912.fits outfile=/scratch/kocevski/604984/cmap_HighResolution_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.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.90
user 0.38
sys 0.48

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16202       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .32458E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3277       1.0000         .10000E-03   10000.    
     6 'norm      '    20.211       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0354       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    17.461       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1033       1.0000         .10000E-03   10000.    
    11 'norm      '    .12874       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.482       1.0000         .10000E-03   10000.    
    14 'norm      '    4.1438       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2142       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2068       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .81025       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=   4918.761     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1983 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98541E-01    19.072        .66822E-05   -.13849E-03
   2  Prefactor     .10000E-03    12.278       -.87557E-07** at limit **
   3  norm          .10000E-03    48.395       -.13511E-04** at limit **
   4  norm          .10000E-03    2.7364        .62898E-07** at limit **
   5  norm          1.3287        2.3190       -.29950E-06    .65757E-04
   6  norm          20.208        20.513        .20105E-06    .73713E-04
   7  norm          7.0349        4.2377       -.32082E-07    .92553E-04
   8  Prefactor     .10000E-03    11.436       -.15078E-07** at limit **
   9  norm          17.397        33.825        .36671E-05    .23984E-03
  10  Prefactor     3.0970        13.367        .26872E-08    .85088E-04
  11  norm          .12928        .71902        .34123E-06    .80454E-03
  12  norm          .10000E-03    4.4287       -.12858E-06** at limit **
  13  Prefactor     69.471        43.149        .10426E-05    .20711E-03
  14  norm          4.1423        4.2137        .62775E-07    .28051E-03
  15  norm          1.2114        5.8120       -.11906E-05    .29752E-03
  16  Prefactor     .10000E-03    44.300       -.14029E-05** at limit **
  17  Prefactor     .10000E-03    1.6718       -.78233E-07** at limit **
  18  Normalizat    1.2070        .20635        .26428E-06    .32998E-03
  19  Prefactor     .81011        .15427        .29648E-06    .38555E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0985408
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 1.32874
  norm       = 20.2076
  norm       = 7.0349
  Prefactor  = 0.0001
  norm       = 17.397
  Prefactor  = 3.09703
  norm       = 0.129285
  norm       = 0.0001
  Prefactor  = 69.4712
  norm       = 4.14232
  norm       = 1.21144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.20703
  Prefactor  = 0.810105
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.761     FROM HESSE     STATUS=OK           276 CALLS     2259 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98541E-01    15.767        .58423E-01   -1.5645    
   2  Prefactor     .10000E-03    12.289        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    52.090        .37112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.7834        .22498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3287        2.2944        .13034E-03   -1.5477    
   6  norm          20.208        20.535        .89093E-04   -1.4809    
   7  norm          7.0349        4.2277        .10801E-03   -1.5177    
   8  Prefactor     .10000E-03    11.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          17.397        34.731        .95849E-04   -1.4874    
  10  Prefactor     3.0970        13.457        .23019E-03   -1.5356    
  11  norm          .12928        1.2570        .11057E-02   -1.5636    
  12  norm          .10000E-03    4.4557        .14417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     69.471        43.475        .48156E-04   -1.4039    
  14  norm          4.1423        4.2075        .13873E-03   -1.5301    
  15  norm          1.2114        5.8820        .32781E-03   -1.5488    
  16  Prefactor     .10000E-03    44.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.6831        .88573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2070        .23945        .24768E-03   -.86386    
  19  Prefactor     .81011        .18082        .22430E-03   -.99357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33947e-09
Minuit parameter uncertainties:
  1  2.49238
  2  2.20902e-05
  3  0.000387092
  4  1.48551e-05
  5  2.29455
  6  20.5417
  7  4.22785
  8  9.83708e-06
  9  34.7709
  10  12.9161
  11  0.805975
  12  1.05441e-05
  13  43.4951
  14  4.2078
  15  5.33944
  16  0.000267101
  17  3.25231e-06
  18  0.239671
  19  0.18095
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.054e-05  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:  8.101e-01  1.809e-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.207e+00  2.397e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/604984/likelihoodResults_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.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) = 4918.76224791
delta logL = -0.00106800528101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4918.76117987
delta logL = 2.77159415418e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2522       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81012       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=   4918.761     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      186 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6868        .90712E-02** at limit **
   2  alpha         2.2631        3.5064        .41410       -.12376E-04
   3  Normalizat    1.2070        .19708        .56011E-01    .35101E-04
   4  Prefactor     .81010        .15013        .43849E-01    .49553E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.26311
  Normalizat = 1.20703
  Prefactor  = 0.810105
 **********
 **   18 **HESSE 
 **********

 FCN=   4918.761     FROM HESSE     STATUS=OK            27 CALLS      213 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.4922        .14484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2631        3.4928        .16564E-01   -.94899E-01
   3  Normalizat    1.2070        .22845        .24768E-03   -.86386    
   4  Prefactor     .81010        .17407        .22430E-03   -.99357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59317e-10
Minuit parameter uncertainties:
  1  1.73666e-05
  2  2.48921
  3  0.228637
  4  0.174184
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/604984': 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) = 4918.76117979
delta logL = 1.07151208795e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.737e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.263e+00  2.489e+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:  8.101e-01  1.742e-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.207e+00  2.286e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/604984/cmap_HighResolution_475718401_475977601_4FGL_J0839.8+0105_daily_bin912.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.43e-05', job_status='DONE', photon_flux_upper_limit='6.60e-08', time_completed='2021-08-30 03:12:15.151291', job_id='604984', GAL2='0.81', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630318335.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='912' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:12:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 604984: <4FGL_J0839.8+0105_daily_bin912> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin912> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 03:00:45 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:00:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 03:00:48 2021
Terminated at Mon Aug 30 03:12:15 2021
Results reported at Mon Aug 30 03:12:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin912 129.963 1.0877 475718401 475977601 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 :                                   513.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            690 sec.

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

