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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin666
RA = 129.963, Dec = 1.0877
tmin = 411955201, tmax = 412214401
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='603132', job_status='RUN', time_executed='2021-08-30 02:58:59.623801', time_epoch_executed='1630317539.62' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603132/ft1_4FGL_J0839.8+0105_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603132/ft2_4FGL_J0839.8+0105_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603132/ft1_4FGL_J0839.8+0105_daily_bin666.fits outfile=/scratch/kocevski/603132/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin666.fits ra=129.963 dec=1.0877 rad=12.0 tmin=411955201.0 tmax=412214401.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 8.51
user 5.31
sys 1.53

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603132/ft2_4FGL_J0839.8+0105_daily_bin666.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/603132/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/603132/ft1_filtered_4FGL_J0839.8+0105_daily_bin666.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.86
user 0.33
sys 1.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603132/ft1_filtered_4FGL_J0839.8+0105_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/603132/ft2_4FGL_J0839.8+0105_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/603132/ltcube_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.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/603132/ft2_4FGL_J0839.8+0105_daily_bin666.fits
.....................!
real 18.24
user 16.18
sys 1.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603132/ft1_filtered_4FGL_J0839.8+0105_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/603132/ft2_4FGL_J0839.8+0105_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/603132/ltcube_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.fits outfile=/scratch/kocevski/603132/expmap_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.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/603132/ltcube_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.fits
.....................!
real 192.43
user 185.10
sys 6.68

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/603132/ft1_filtered_4FGL_J0839.8+0105_daily_bin666.fits scfile=/scratch/kocevski/603132/ft2_4FGL_J0839.8+0105_daily_bin666.fits outfile=/scratch/kocevski/603132/cmap_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.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.08
user 0.37
sys 1.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603132/ft1_filtered_4FGL_J0839.8+0105_daily_bin666.fits scfile=/scratch/kocevski/603132/ft2_4FGL_J0839.8+0105_daily_bin666.fits outfile=/scratch/kocevski/603132/cmap_HighResolution_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.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.02
user 0.38
sys 1.41

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6988       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3326       1.0000         .10000E-03   10000.    
     6 'norm      '    .11211E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.9274       1.0000         .10000E-03   10000.    
     8 'Prefactor '    59.141       1.0000         .10000E-03   10000.    
     9 'norm      '    .10405E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3857       1.0000         .10000E-03   10000.    
    11 'norm      '    3.0645       1.0000         .10000E-03   10000.    
    12 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .47578E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .68118E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.8797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.359       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6105       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0625       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .86677       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=   4799.600     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1930 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6994        6.6187       -.22642E-05   -.12604E-03
   2  Prefactor     .10000E-03    15.834        .65796E-07** at limit **
   3  norm          .10000E-03    5.9773       -.54485E-07** at limit **
   4  norm          .10000E-03    1.8014        .69608E-07** at limit **
   5  norm          1.3322        1.3123       -.21248E-07   -.11638E-03
   6  norm          .10000E-03    30.162       -.55320E-06** at limit **
   7  norm          7.9280        5.6921        .10542E-05   -.14198E-03
   8  Prefactor     59.136        41.368       -.35352E-05    .54560E-05
   9  norm          .10000E-03    35.068        .73584E-07** at limit **
  10  Prefactor     5.3916        14.249       -.59233E-06   -.65209E-04
  11  norm          3.0652        1.4021       -.20206E-07   -.70427E-04
  12  norm          .10000E-03    3.9986       -.64153E-07** at limit **
  13  Prefactor     .10049E-03    30.058       -.26515E-05** at limit **
  14  norm          .10000E-03    2.4785       -.20909E-06** at limit **
  15  norm          4.8843        5.0387       -.21113E-06   -.28694E-04
  16  Prefactor     21.299        28.788        .71276E-05    .91771E-05
  17  Prefactor     6.6163        5.9194       -.87826E-06   -.19178E-03
  18  Normalizat    1.0621        .22254        .51813E-06    .14519E-03
  19  Prefactor     .86693        .16098        .17630E-06    .17849E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.69941
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.33224
  norm       = 0.0001
  norm       = 7.92802
  Prefactor  = 59.1357
  norm       = 0.0001
  Prefactor  = 5.39157
  norm       = 3.06523
  norm       = 0.0001
  Prefactor  = 0.000100488
  norm       = 0.0001
  norm       = 4.88434
  Prefactor  = 21.2991
  Prefactor  = 6.61627
  Normalizat = 1.06206
  Prefactor  = 0.866934
 **********
 **   18 **HESSE 
 **********

 FCN=   4799.600     FROM HESSE     STATUS=OK           274 CALLS     2204 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6994        6.6758        .18564E-03   -1.5274    
   2  Prefactor     .10000E-03    15.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.0018        .16539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.8558        .18131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3322        1.2988        .76182E-04   -1.5477    
   6  norm          .10000E-03    30.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.9280        5.6413        .13258E-03   -1.5145    
   8  Prefactor     59.136        41.420        .52170E-04   -1.4168    
   9  norm          .10000E-03    35.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3916        14.275        .17316E-03   -1.5244    
  11  norm          3.0652        1.4012        .52814E-04   -1.5358    
  12  norm          .10000E-03    4.0115        .13528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10049E-03    211.86        .72065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    13.978        .20849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.8843        5.0349        .15272E-03   -1.5266    
  16  Prefactor     21.299        28.653        .86668E-04   -1.4785    
  17  Prefactor     6.6163        5.9489        .15269E-03   -1.5193    
  18  Normalizat    1.0621        .26320        .26887E-03   -.90979    
  19  Prefactor     .86693        .19083        .22070E-03   -.97306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.30354e-09
Minuit parameter uncertainties:
  1  6.67683
  2  3.81849e-06
  3  9.3795e-07
  4  5.54072e-06
  5  1.29888
  6  0.000127196
  7  5.64169
  8  41.4406
  9  4.10818e-06
  10  14.284
  11  1.4012
  12  2.17228e-06
  13  0.0204079
  14  0.000136199
  15  5.03538
  16  28.6715
  17  5.94939
  18  0.263527
  19  0.190972
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  2.172e-06  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.669e-01  1.910e-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.062e+00  2.635e-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.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603132/likelihoodResults_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.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) = 4799.60116151
delta logL = -0.001184928572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4799.05987735
delta logL = 0.540099229122

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50817       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .95006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91910       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=   4799.060     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      422 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50791        20.890        .10322E-01    .68424E-03
   2  alpha         5.0000        2.5970        .46333    ** at limit **
   3  Normalizat    .95006        .16256        .45538E-01   -.46247E-04
   4  Prefactor     .91892        .85408E-01    .45248E-01   -.63237E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.507915
  alpha      = 5
  Normalizat = 0.950063
  Prefactor  = 0.918922
 **********
 **   18 **HESSE 
 **********

 FCN=   4799.060     FROM HESSE     STATUS=OK            31 CALLS      453 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50791        .53204        .46533E-04   -1.5565    
   2  alpha         5.0000        3.3302        .62925E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .95006        .27091        .28211E-03   -.94723    
   4  Prefactor     .91892        .19558        .21498E-03   -.95483    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24196e-11
Minuit parameter uncertainties:
  1  0.532047
  2  2.33656e-07
  3  0.271303
  4  0.195729
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603132': 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) = 4799.05987457
delta logL = 0.540102004932

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  5.079e-01  5.320e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  2.337e-07  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:  9.189e-01  1.957e-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:  9.501e-01  2.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 129.963 1.088
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 8.82e-08 +/- 9.20e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/603132/cmap_HighResolution_411955201_412214401_4FGL_J0839.8+0105_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', comment='SUCCESS', energy_flux2='1.23e-05', dlogl='5.40e-01', photon_flux2='8.82e-08', job_status='DONE', time_completed='2021-08-30 03:08:11.942155', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='6.86e-08', energy_flux_error2='1.28e-05', EG='1.06', time_epoch_completed='1630318091.94', return_code='0', job_id='603132', GAL2='0.92', EG2='0.95', return_code2='0', photon_flux_error2='9.20e-08', ts2='1.23', photon_index='2.24' WHERE bin_id='666' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 603132: <4FGL_J0839.8+0105_daily_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin666 129.963 1.0877 411955201 412214401 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 :                                   560.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            758 sec.

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

