/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 178 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin754
RA = 129.963, Dec = 1.0877
tmin = 434764801, tmax = 435024001
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='603282', job_status='RUN', time_executed='2021-08-30 02:59:53.024454', time_epoch_executed='1630317593.02' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603282

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603282/ft1_4FGL_J0839.8+0105_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603282/ft2_4FGL_J0839.8+0105_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603282/ft1_4FGL_J0839.8+0105_daily_bin754.fits outfile=/scratch/kocevski/603282/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin754.fits ra=129.963 dec=1.0877 rad=12.0 tmin=434764801.0 tmax=435024001.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.04
user 5.39
sys 2.60

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603282/ft1_filtered_4FGL_J0839.8+0105_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/603282/ft2_4FGL_J0839.8+0105_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/603282/ltcube_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.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/603282/ft2_4FGL_J0839.8+0105_daily_bin754.fits
.....................!
real 14.42
user 11.38
sys 2.97

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603282/ft1_filtered_4FGL_J0839.8+0105_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/603282/ft2_4FGL_J0839.8+0105_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/603282/ltcube_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.fits outfile=/scratch/kocevski/603282/expmap_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.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/603282/ltcube_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.fits
.....................!
real 193.91
user 185.56
sys 7.58

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/603282/ft1_filtered_4FGL_J0839.8+0105_daily_bin754.fits scfile=/scratch/kocevski/603282/ft2_4FGL_J0839.8+0105_daily_bin754.fits outfile=/scratch/kocevski/603282/cmap_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.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 3.27
user 0.39
sys 2.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603282/ft1_filtered_4FGL_J0839.8+0105_daily_bin754.fits scfile=/scratch/kocevski/603282/ft2_4FGL_J0839.8+0105_daily_bin754.fits outfile=/scratch/kocevski/603282/cmap_HighResolution_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.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 3.37
user 0.36
sys 2.45

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .84214       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2451       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    42.680       1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.1371       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.9652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.467       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0436       1.0000         .10000E-03   10000.    
    15 'norm      '    8.9199       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6832       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0087       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94795       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=   4356.357     FROM MIGRAD    STATUS=CONVERGED    381 CALLS     1882 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3097        6.5696       -.24338E-07    .28615E-05
   2  Prefactor     .10000E-03    11.625        .23628E-05** at limit **
   3  norm          .10000E-03    10.496       -.19626E-05** at limit **
   4  norm          .84206        2.0800       -.38650E-07   -.16499E-03
   5  norm          .10000E-03    1.1049        .62719E-07** at limit **
   6  norm          .10000E-03    6.8327        .14664E-06** at limit **
   7  norm          3.2453        4.9236       -.38118E-05   -.25973E-03
   8  Prefactor     .10000E-03    36.580       -.51803E-06** at limit **
   9  norm          42.676        42.406       -.39499E-05   -.33830E-04
  10  Prefactor     6.1364        8.9865        .12399E-06    .37015E-05
  11  norm          .10000E-03    .42204        .40245E-07** at limit **
  12  norm          6.9657        12.307       -.36369E-06   -.75523E-05
  13  Prefactor     20.469        34.892        .26121E-05    .22652E-04
  14  norm          3.0437        2.6551        .73572E-06   -.21899E-02
  15  norm          8.9208        8.4363        .41670E-06    .24505E-04
  16  Prefactor     11.732        28.648       -.78591E-05   -.41503E-04
  17  Prefactor     1.6833        3.7507       -.16964E-06   -.97470E-04
  18  Normalizat    1.0087        .22084        .76518E-06    .43571E-04
  19  Prefactor     .94791        .16949        .75074E-06    .25481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30973
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.84206
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.24528
  Prefactor  = 0.0001
  norm       = 42.6756
  Prefactor  = 6.13639
  norm       = 0.0001
  norm       = 6.96573
  Prefactor  = 20.4688
  norm       = 3.04369
  norm       = 8.92084
  Prefactor  = 11.7322
  Prefactor  = 1.68326
  Normalizat = 1.0087
  Prefactor  = 0.947908
 **********
 **   18 **HESSE 
 **********

 FCN=   4356.357     FROM HESSE     STATUS=OK           276 CALLS     2158 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3097        6.5582        .19406E-03   -1.5293    
   2  Prefactor     .10000E-03    11.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .84206        1.7668        .14305E-02   -1.5524    
   5  norm          .10000E-03    2.0399        .13293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.8378        .16851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2453        4.9620        .17347E-03   -1.5348    
   8  Prefactor     .10000E-03    36.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          42.676        42.472        .61363E-04   -1.4401    
  10  Prefactor     6.1364        8.9838        .16206E-03   -1.5212    
  11  norm          .10000E-03    .43489        .83627E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.9657        12.323        .15201E-03   -1.5180    
  13  Prefactor     20.469        34.920        .88534E-04   -1.4803    
  14  norm          3.0437        6.2720        .11021E-02   -1.5359    
  15  norm          8.9208        8.4804        .13420E-03   -1.5111    
  16  Prefactor     11.732        28.716        .11693E-03   -1.5023    
  17  Prefactor     1.6833        3.7190        .18431E-03   -1.5448    
  18  Normalizat    1.0087        .25744        .26771E-03   -.92740    
  19  Prefactor     .94791        .19683        .21126E-03   -.94487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82707e-09
Minuit parameter uncertainties:
  1  6.55928
  2  4.08174e-05
  3  1.6872e-05
  4  1.76691
  5  2.99445e-06
  6  5.19874e-06
  7  4.96261
  8  2.21422e-05
  9  42.5021
  10  8.98578
  11  5.08324e-07
  12  12.3278
  13  34.9552
  14  6.27338
  15  8.48156
  16  28.7493
  17  3.7195
  18  0.257756
  19  0.196981
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  6.966e+00  1.233e+01  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:  9.479e-01  1.970e-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.009e+00  2.578e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603282/likelihoodResults_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.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) = 4353.77805553
delta logL = 2.57937132908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4353.73885699
delta logL = 2.61856987022

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0351       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.9999       1.0000          .0000       5.0000    
     3 'Normalizat'    .81143       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0444       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=   4353.739     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      263 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0352        12.145        .71664E-02    .11464E-03
   2  alpha         5.0000        4.4068        .46269    ** at limit **
   3  Normalizat    .81118        .15397        .66479E-01    .10632E-04
   4  Prefactor     1.0446        .11941        .40247E-01   -.28923E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03519
  alpha      = 5
  Normalizat = 0.811176
  Prefactor  = 1.04464
 **********
 **   18 **HESSE 
 **********

 FCN=   4353.739     FROM HESSE     STATUS=OK            35 CALLS      298 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0352        .79208        .32019E-04   -1.5504    
   2  alpha         5.0000        3.1497        .38666        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .81118        .26517        .29411E-03   -.99655    
   4  Prefactor     1.0446        .19837        .20204E-03   -.91256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.39417e-11
Minuit parameter uncertainties:
  1  0.792093
  2  7.29702e-05
  3  0.265596
  4  0.198509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603282': 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) = 4353.73885191
delta logL = 2.61857494347

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.035e+00  7.921e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  7.297e-05  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.045e+00  1.985e-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:  8.112e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 129.963 1.088
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.80e-07 +/- 1.37e-07
Energy Flux (Free Index): 2.50e-05 +/- 1.91e-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/603282/cmap_HighResolution_434764801_435024001_4FGL_J0839.8+0105_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-05', comment='SUCCESS', energy_flux2='2.50e-05', dlogl='2.62e+00', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-08-30 03:08:43.531347', photon_index_error2='0.00', photon_index2='5.00', ts='0.37', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.91e-05', EG='1.01', time_epoch_completed='1630318123.53', return_code='0', job_id='603282', GAL2='1.04', EG2='0.81', return_code2='0', photon_flux_error2='1.37e-07', ts2='6.20', photon_index='2.24' WHERE bin_id='754' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:08:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 603282: <4FGL_J0839.8+0105_daily_bin754> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin754 129.963 1.0877 434764801 435024001 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 :                                   559.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             251.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

