/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 3 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 = 7491
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0839.8+0105_daily_bin425
RA = 129.963, Dec = 1.0877
tmin = 349488001, tmax = 349747201
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='601098', job_status='RUN', time_executed='2021-08-30 02:51:10.420207', time_epoch_executed='1630317070.42' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='425'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601098

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601098/ft1_4FGL_J0839.8+0105_daily_bin425.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601098/ft2_4FGL_J0839.8+0105_daily_bin425.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601098/ft1_4FGL_J0839.8+0105_daily_bin425.fits outfile=/scratch/kocevski/601098/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin425.fits ra=129.963 dec=1.0877 rad=12.0 tmin=349488001.0 tmax=349747201.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 4.14
user 3.18
sys 0.85

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601098/ft1_filtered_4FGL_J0839.8+0105_daily_bin425.fits" evtable="EVENTS" scfile=/scratch/kocevski/601098/ft2_4FGL_J0839.8+0105_daily_bin425.fits sctable="SC_DATA" outfile=/scratch/kocevski/601098/ltcube_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.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/601098/ft2_4FGL_J0839.8+0105_daily_bin425.fits
.....................!
real 13.56
user 12.42
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601098/ft1_filtered_4FGL_J0839.8+0105_daily_bin425.fits evtable="EVENTS" scfile=/scratch/kocevski/601098/ft2_4FGL_J0839.8+0105_daily_bin425.fits sctable="SC_DATA" expcube=/scratch/kocevski/601098/ltcube_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.fits outfile=/scratch/kocevski/601098/expmap_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.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/601098/ltcube_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.fits
.....................!
real 195.11
user 188.89
sys 5.21

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/601098/ft1_filtered_4FGL_J0839.8+0105_daily_bin425.fits scfile=/scratch/kocevski/601098/ft2_4FGL_J0839.8+0105_daily_bin425.fits outfile=/scratch/kocevski/601098/cmap_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.28
user 0.37
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601098/ft1_filtered_4FGL_J0839.8+0105_daily_bin425.fits scfile=/scratch/kocevski/601098/ft2_4FGL_J0839.8+0105_daily_bin425.fits outfile=/scratch/kocevski/601098/cmap_HighResolution_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.963 yref=1.0877 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.20
user 0.37
sys 0.81

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.619       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5259       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1823       1.0000         .10000E-03   10000.    
     7 'norm      '    5.7057       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.200       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18427       1.0000         .10000E-03   10000.    
    11 'norm      '    .17191       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5303       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3654       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8422       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3269       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.7387       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .64154       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2908       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7045.982     FROM MIGRAD    STATUS=CONVERGED     91 CALLS     1630 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8844       -.40380E-06** at limit **
   2  Prefactor     18.609        6.0259       -.36068E-06    .37933E-03
   3  norm          .10000E-03    14.546       -.32246E-05** at limit **
   4  norm          .10000E-03    1.4824        .43984E-06** at limit **
   5  norm          1.5257        1.2109        .16703E-07    .66772E-04
   6  norm          2.1936        27.912       -.51014E-05   -.36178E-03
   7  norm          5.7050        3.5182        .85357E-06    .37119E-03
   8  Prefactor     55.205        3.9158        .17907E-06   -.11637E-01
   9  norm          .10000E-03    8.1441       -.18374E-05** at limit **
  10  Prefactor     .73406E-01    733.56        .24998E-04   -.45021E-04
  11  norm          .17142        .87750       -.21665E-08    .95701E-04
  12  norm          8.5288        1.1043        .42749E-07   -.56232E-03
  13  Prefactor     .10000E-03    16.720        .31097E-05** at limit **
  14  norm          1.3641        4.4932       -.12358E-05   -.96951E-04
  15  norm          2.8418        1.3870        .52716E-07    .35913E-02
  16  Prefactor     7.3261        1.1341        .94833E-07    .10651E-02
  17  Prefactor     3.7380        3.9985       -.70346E-06   -.30708E-03
  18  Normalizat    .64163        .21150        .30208E-05    .95372E-04
  19  Prefactor     1.2908        .16430        .22225E-08    .14880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.6095
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.52569
  norm       = 2.19356
  norm       = 5.70496
  Prefactor  = 55.2049
  norm       = 0.0001
  Prefactor  = 0.0734058
  norm       = 0.171418
  norm       = 8.5288
  Prefactor  = 0.0001
  norm       = 1.36411
  norm       = 2.84182
  Prefactor  = 7.32608
  Prefactor  = 3.73804
  Normalizat = 0.64163
  Prefactor  = 1.29084
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.982     FROM HESSE     STATUS=OK           322 CALLS     1952 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.609        37.361        .23205E-02   -1.4845    
   3  norm          .10000E-03    14.188        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.4393        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5257        1.2245        .86422E-02   -1.5461    
   6  norm          2.1936        49.393        .69665E-02   -1.5412    
   7  norm          5.7050        3.5571        .42040E-02   -1.5230    
   8  Prefactor     55.205        34.806        .13497E-02   -1.4221    
   9  norm          .10000E-03    8.1479        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .73406E-01    13.170        .99056E-01   -1.5654    
  11  norm          .17142        .59926        .21980E-01   -1.5625    
  12  norm          8.5288        7.4066        .34313E-02   -1.5124    
  13  Prefactor     .10000E-03    16.660        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3641        4.6222        .93361E-02   -1.5474    
  15  norm          2.8418        6.8764        .60297E-02   -1.5371    
  16  Prefactor     7.3261        11.440        .37044E-02   -1.5167    
  17  Prefactor     3.7380        4.0226        .52206E-02   -1.5321    
  18  Normalizat    .64163        .19388        .75101E-01   -1.0624    
  19  Prefactor     1.2908        .14556        .32772E-01   -.83580    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53124e-07
Minuit parameter uncertainties:
  1  4.11814e-06
  2  37.4078
  3  9.1372e-05
  4  3.39841e-06
  5  1.22457
  6  20.8369
  7  3.55726
  8  34.819
  9  2.0966e-05
  10  1.96553
  11  0.59928
  12  7.40743
  13  8.42628e-05
  14  4.62344
  15  6.8783
  16  11.4432
  17  4.02287
  18  0.194082
  19  0.14561
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.529e+00  7.407e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  1.291e+00  1.456e-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:  6.416e-01  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 3.31e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.06e-05

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

Saving results to:
/scratch/kocevski/601098/likelihoodResults_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.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) = 7045.97923912
delta logL = 0.00269121246765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7045.97876597
delta logL = 0.00316436383036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7663       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1868       1.0000          .0000       5.0000    
     3 'Normalizat'    .64295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2900       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7045.979     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      235 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7656        8.1819        .13538E-03    .17299E-02
   2  alpha         2.1870        .68376        .18212E-01    .19056E-03
   3  Normalizat    .64282        .20424        .33219E-03   -.13371E-03
   4  Prefactor     1.2901        .16327        .19199E-03   -.32888E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.76559
  alpha      = 2.18703
  Normalizat = 0.642817
  Prefactor  = 1.29012
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.979     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7656        8.0412        .54152E-05   -1.5116    
   2  alpha         2.1870        .67230        .72848E-03   -.12552    
   3  Normalizat    .64282        .20433        .13288E-04   -1.0620    
   4  Prefactor     1.2901        .16333        .38398E-04   -.83601    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38952e-09
Minuit parameter uncertainties:
  1  8.04217
  2  0.680818
  3  0.204572
  4  0.163395
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601098': 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) = 7045.9787656
delta logL = 0.00316473493876

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  8.766e+00  8.042e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.187e+00  6.808e-01  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.290e+00  1.634e-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:  6.428e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.92
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.19 +/- 0.68
Photon Flux (Free Index): 3.23e-08 +/- 2.99e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.17e-05

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/601098/cmap_HighResolution_349488001_349747201_4FGL_J0839.8+0105_daily_bin425.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', comment='SUCCESS', photon_flux='3.31e-08', energy_flux2='1.25e-05', photon_flux_error='2.88e-08', dlogl='3.16e-03', energy_flux='1.22e-05', photon_flux2='3.23e-08', job_status='DONE', time_completed='2021-08-30 03:00:58.512778', photon_index_error2='0.68', photon_index2='2.19', ts='1.91', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', photon_flux_upper_limit='9.59e-08', energy_flux_error2='1.17e-05', EG='0.64', time_epoch_completed='1630317658.51', return_code='0', job_id='601098', GAL2='1.29', EG2='0.64', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.99e-08', ts2='1.92', photon_index='2.24' WHERE bin_id='425' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:00:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 601098: <4FGL_J0839.8+0105_daily_bin425> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin425> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:50:34 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:50:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:50:36 2021
Terminated at Mon Aug 30 03:00:59 2021
Results reported at Mon Aug 30 03:00:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin425 129.963 1.0877 349488001 349747201 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 :                                   591.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             389.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            625 sec.

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

