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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin411
RA = 129.963, Dec = 1.0877
tmin = 345859201, tmax = 346118401
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='601078', job_status='RUN', time_executed='2021-08-30 02:55:08.168748', time_epoch_executed='1630317308.17' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601078

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601078/ft1_4FGL_J0839.8+0105_daily_bin411.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601078/ft2_4FGL_J0839.8+0105_daily_bin411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601078/ft1_4FGL_J0839.8+0105_daily_bin411.fits outfile=/scratch/kocevski/601078/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin411.fits ra=129.963 dec=1.0877 rad=12.0 tmin=345859201.0 tmax=346118401.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.73
user 3.15
sys 1.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601078/ft1_filtered_4FGL_J0839.8+0105_daily_bin411.fits" evtable="EVENTS" scfile=/scratch/kocevski/601078/ft2_4FGL_J0839.8+0105_daily_bin411.fits sctable="SC_DATA" outfile=/scratch/kocevski/601078/ltcube_345859201_346118401_4FGL_J0839.8+0105_daily_bin411.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/601078/ft2_4FGL_J0839.8+0105_daily_bin411.fits
.....................!
real 13.95
user 11.51
sys 1.82

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601078/ft1_filtered_4FGL_J0839.8+0105_daily_bin411.fits evtable="EVENTS" scfile=/scratch/kocevski/601078/ft2_4FGL_J0839.8+0105_daily_bin411.fits sctable="SC_DATA" expcube=/scratch/kocevski/601078/ltcube_345859201_346118401_4FGL_J0839.8+0105_daily_bin411.fits outfile=/scratch/kocevski/601078/expmap_345859201_346118401_4FGL_J0839.8+0105_daily_bin411.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/601078/ltcube_345859201_346118401_4FGL_J0839.8+0105_daily_bin411.fits
.....................!
real 193.11
user 185.26
sys 6.41

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/601078/ft1_filtered_4FGL_J0839.8+0105_daily_bin411.fits scfile=/scratch/kocevski/601078/ft2_4FGL_J0839.8+0105_daily_bin411.fits outfile=/scratch/kocevski/601078/cmap_345859201_346118401_4FGL_J0839.8+0105_daily_bin411.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.94
user 0.38
sys 1.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601078/ft1_filtered_4FGL_J0839.8+0105_daily_bin411.fits scfile=/scratch/kocevski/601078/ft2_4FGL_J0839.8+0105_daily_bin411.fits outfile=/scratch/kocevski/601078/cmap_HighResolution_345859201_346118401_4FGL_J0839.8+0105_daily_bin411.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.05
user 0.36
sys 1.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9202       1.0000         .10000E-03   10000.    
     5 'norm      '    .95189       1.0000         .10000E-03   10000.    
     6 'norm      '    .13786E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.309       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.5561       1.0000         .10000E-03   10000.    
    11 'norm      '    .97844       1.0000         .10000E-03   10000.    
    12 'norm      '    25.623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.134       1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.2313       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .56775       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2421       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88041       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=   6044.930     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1901 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.3981        .53090E-07** at limit **
   2  Prefactor     .10000E-03    16.408       -.66536E-06** at limit **
   3  norm          .10000E-03    4.4118        .68932E-07** at limit **
   4  norm          2.9203        2.6791        .13486E-06    .47032E-05
   5  norm          .95189        1.0719        .36423E-07   -.13730E-05
   6  norm          .10000E-03    67.703       -.96891E-05** at limit **
   7  norm          .10000E-03    2.3547       -.59507E-07** at limit **
   8  Prefactor     14.237        41.731        .14673E-05   -.15961E-04
   9  norm          .10000E-03    19.694        .96148E-07** at limit **
  10  Prefactor     6.5536        17.842       -.35736E-06    .90816E-05
  11  norm          .97811        1.0822       -.56800E-07   -.53448E-04
  12  norm          25.625        10.530       -.18579E-08    .94371E-05
  13  Prefactor     17.135        26.413        .48960E-07   -.19175E-05
  14  norm          .10000E-03    2.9505        .17595E-06** at limit **
  15  norm          4.2312        6.6242        .17457E-06    .21686E-04
  16  Prefactor     .10000E-03    50.342        .55644E-06** at limit **
  17  Prefactor     .56805        3.8945        .26828E-05    .97781E-04
  18  Normalizat    1.2421        .21705        .18963E-05   -.78040E-04
  19  Prefactor     .88039        .15809       -.19687E-05    .90448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.92033
  norm       = 0.951887
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 14.2375
  norm       = 0.0001
  Prefactor  = 6.55357
  norm       = 0.97811
  norm       = 25.6247
  Prefactor  = 17.1348
  norm       = 0.0001
  norm       = 4.23116
  Prefactor  = 0.0001
  Prefactor  = 0.56805
  Normalizat = 1.24206
  Prefactor  = 0.880387
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.930     FROM HESSE     STATUS=OK           272 CALLS     2173 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4140        .13995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4320        .15948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9203        2.6643        .11606E-03   -1.5366    
   5  norm          .95189        1.0512        .82128E-04   -1.5513    
   6  norm          .10000E-03    69.431        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.4310        .23290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.237        41.726        .10588E-03   -1.4953    
   9  norm          .10000E-03    19.719        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.5536        17.799        .15673E-03   -1.5196    
  11  norm          .97811        1.0346        .80294E-03   -1.5510    
  12  norm          25.625        10.525        .79138E-04   -1.4695    
  13  Prefactor     17.135        26.412        .96758E-04   -1.4880    
  14  norm          .10000E-03    3.0365        .26047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.2312        6.6195        .19589E-03   -1.5297    
  16  Prefactor     .10000E-03    51.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .56805        3.9589        .29801E-03   -1.5557    
  18  Normalizat    1.2421        .25034        .26560E-03   -.85313    
  19  Prefactor     .88039        .18181        .22983E-03   -.96830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76765e-10
Minuit parameter uncertainties:
  1  1.17962e-06
  2  1.44524e-05
  3  2.43559e-06
  4  2.6644
  5  1.05122
  6  0.00021272
  7  2.16306e-06
  8  41.8118
  9  1.18804e-05
  10  17.8137
  11  1.03463
  12  10.5256
  13  26.4305
  14  6.11271e-06
  15  6.62067
  16  0.000105128
  17  2.99926
  18  0.25058
  19  0.181935
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.562e+01  1.053e+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:  8.804e-01  1.819e-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.242e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.86
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 9.95e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.50e-05

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) = 6044.76214169
delta logL = 0.167978394068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6044.76056375
delta logL = 0.169556333223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.217       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5215       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89408       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=   6044.761     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      297 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.218        11.043        .83131E-04   -.15754E-03
   2  alpha         2.5215        .49718        .11300E-01    .12796E-03
   3  Normalizat    1.2144        .24690        .26807E-03   -.13677E-03
   4  Prefactor     .89420        .18155        .22823E-03   -.17748E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 23.2183
  alpha      = 2.52154
  Normalizat = 1.21445
  Prefactor  = 0.894202
 **********
 **   18 **HESSE 
 **********

 FCN=   6044.761     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.218        10.872        .33252E-05   -1.4744    
   2  alpha         2.5215        .48920        .22600E-02    .86155E-02
   3  Normalizat    1.2144        .24699        .10723E-04   -.86158    
   4  Prefactor     .89420        .18166        .91291E-05   -.96344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30102e-11
Minuit parameter uncertainties:
  1  10.8729
  2  0.492381
  3  0.247231
  4  0.18178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601078': 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) = 6044.76056352
delta logL = 0.16955656656

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.322e+01  1.087e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.522e+00  4.924e-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:  8.942e-01  1.818e-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.214e+00  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.17
Ra Dec: 129.963 1.088
Photon Index (Free Index): 2.52 +/- 0.49
Photon Flux (Free Index): 1.21e-07 +/- 6.02e-08
Energy Flux (Free Index): 3.51e-05 +/- 1.42e-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/601078/cmap_HighResolution_345859201_346118401_4FGL_J0839.8+0105_daily_bin411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.95e-08', energy_flux2='3.51e-05', photon_flux_error='4.09e-08', dlogl='1.70e-01', energy_flux='3.66e-05', photon_flux2='1.21e-07', job_status='DONE', time_completed='2021-08-30 03:03:59.699632', photon_index_error2='0.49', photon_index2='2.52', ts='13.86', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.24', time_epoch_completed='1630317839.7', return_code='0', job_id='601078', GAL2='0.89', EG2='1.21', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='6.02e-08', ts2='14.17', photon_index='2.24' WHERE bin_id='411' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:03:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 601078: <4FGL_J0839.8+0105_daily_bin411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin411 129.963 1.0877 345859201 346118401 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 :                                   541.05 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             242.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            808 sec.

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

