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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin385
RA = 129.963, Dec = 1.0877
tmin = 339120001, tmax = 339379201
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='601041', job_status='RUN', time_executed='2021-08-30 02:54:07.602586', time_epoch_executed='1630317247.6' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601041

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601041/ft1_4FGL_J0839.8+0105_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601041/ft2_4FGL_J0839.8+0105_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601041/ft1_4FGL_J0839.8+0105_daily_bin385.fits outfile=/scratch/kocevski/601041/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin385.fits ra=129.963 dec=1.0877 rad=12.0 tmin=339120001.0 tmax=339379201.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 6.47
user 6.02
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601041/ft1_filtered_4FGL_J0839.8+0105_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/601041/ft2_4FGL_J0839.8+0105_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/601041/ltcube_339120001_339379201_4FGL_J0839.8+0105_daily_bin385.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/601041/ft2_4FGL_J0839.8+0105_daily_bin385.fits
.....................!
real 11.46
user 11.01
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601041/ft1_filtered_4FGL_J0839.8+0105_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/601041/ft2_4FGL_J0839.8+0105_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/601041/ltcube_339120001_339379201_4FGL_J0839.8+0105_daily_bin385.fits outfile=/scratch/kocevski/601041/expmap_339120001_339379201_4FGL_J0839.8+0105_daily_bin385.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/601041/ltcube_339120001_339379201_4FGL_J0839.8+0105_daily_bin385.fits
.....................!
real 193.00
user 185.54
sys 5.97

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/601041/ft1_filtered_4FGL_J0839.8+0105_daily_bin385.fits scfile=/scratch/kocevski/601041/ft2_4FGL_J0839.8+0105_daily_bin385.fits outfile=/scratch/kocevski/601041/cmap_339120001_339379201_4FGL_J0839.8+0105_daily_bin385.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 0.56
user 0.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.66
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6459       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8936       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1953       1.0000         .10000E-03   10000.    
     5 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.633       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13682E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    38.179       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8573       1.0000         .10000E-03   10000.    
    15 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10628E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14206E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1354       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89964       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=   6389.314     FROM MIGRAD    STATUS=CONVERGED    409 CALLS     1932 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6457        4.1723        .23322E-05   -.13439E-03
   2  Prefactor     .10000E-03    15.301       -.15767E-04** at limit **
   3  norm          4.8899        6.2232       -.25705E-05   -.90040E-04
   4  norm          3.1951        2.6113       -.26148E-06   -.34759E-03
   5  norm          .10000E-03    .83208        .33703E-07** at limit **
   6  norm          19.643        19.503        .15148E-05    .18214E-04
   7  norm          .10000E-03    1.1221       -.36557E-07** at limit **
   8  Prefactor     .10000E-03    67.118        .88841E-05** at limit **
   9  norm          .10000E-03    25.080        .15676E-05** at limit **
  10  Prefactor     .10000E-03    14.350        .14026E-04** at limit **
  11  norm          .10000E-03    .67173       -.74858E-07** at limit **
  12  norm          38.186        11.154        .64379E-07    .29073E-04
  13  Prefactor     .10001E-03    74.620       -.64034E-04** at limit **
  14  norm          2.8569        3.1011       -.19460E-06   -.41459E-03
  15  norm          .10000E-03    3.0115       -.16528E-06** at limit **
  16  Prefactor     .10001E-03    62.961        .37378E-04** at limit **
  17  Prefactor     .10000E-03    2.1460       -.66149E-07** at limit **
  18  Normalizat    1.1357        .18403       -.24318E-06    .37580E-04
  19  Prefactor     .89950        .13877        .39525E-06    .13503E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.64575
  Prefactor  = 0.0001
  norm       = 4.88985
  norm       = 3.1951
  norm       = 0.0001
  norm       = 19.6431
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 38.1864
  Prefactor  = 0.000100012
  norm       = 2.85687
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Normalizat = 1.1357
  Prefactor  = 0.899503
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.314     FROM HESSE     STATUS=OK           268 CALLS     2200 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6457        4.1506        .19902E-03   -1.5383    
   2  Prefactor     .10000E-03    15.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8899        6.2235        .18183E-03   -1.5266    
   4  norm          3.1951        2.5260        .10863E-03   -1.5350    
   5  norm          .10000E-03    2.6794        .13589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.643        19.499        .90394E-04   -1.4821    
   7  norm          .10000E-03    1.1265        .82678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    67.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    25.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4865        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          38.186        11.137        .64866E-04   -1.4471    
  13  Prefactor     .10001E-03    75.623        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8569        3.0907        .14108E-03   -1.5370    
  15  norm          .10000E-03    3.0395        .13544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    64.853        .36304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.1630        .22509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1357        .21584        .25916E-03   -.88614    
  19  Prefactor     .89950        .16346        .21814E-03   -.96158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35087e-10
Minuit parameter uncertainties:
  1  4.15108
  2  7.90092e-06
  3  6.22431
  4  2.52606
  5  1.66103e-05
  6  19.5051
  7  4.94258e-07
  8  0.000276122
  9  5.7167e-06
  10  7.61089e-05
  11  1.18221e-06
  12  11.1376
  13  0.00194575
  14  3.09082
  15  4.13448e-06
  16  0.0012858
  17  5.43851e-05
  18  0.216006
  19  0.163547
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  3.819e+01  1.114e+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.995e-01  1.635e-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.136e+00  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.82
Ra Dec: 129.963 1.088
Photon Index (Fixed Index): 2.24 +/- 0.00
Photon Flux (Fixed Index): 1.48e-07 +/- 4.33e-08
Energy Flux (Fixed Index): 5.46e-05 +/- 1.59e-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) = 6388.30012477
delta logL = 1.01394631532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6388.28348737
delta logL = 1.03058371599

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    40.405       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7751       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1878       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87448       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=   6388.283     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          40.405        12.442        .15765E-02    .67959E-02
   2  alpha         1.7748        .30572        .22530       -.98720E-05
   3  Normalizat    1.1878        .18185        .57499E-01    .57658E-05
   4  Prefactor     .87449        .13757        .44679E-01    .64438E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 40.4052
  alpha      = 1.77485
  Normalizat = 1.18777
  Prefactor  = 0.874493
 **********
 **   18 **HESSE 
 **********

 FCN=   6388.283     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          40.405        12.248        .63060E-04   -1.4436    
   2  alpha         1.7748        .31072        .96072E-02   -.29429    
   3  Normalizat    1.1878        .21428        .25428E-03   -.86982    
   4  Prefactor     .87449        .16231        .22089E-03   -.97038    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70713e-08
Minuit parameter uncertainties:
  1  12.249
  2  0.311604
  3  0.214442
  4  0.162399
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601041': 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) = 6388.28348712
delta logL = 1.03058396348

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  4.041e+01  1.225e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  1.775e+00  3.116e-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.745e-01  1.624e-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.188e+00  2.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 40.02
Ra Dec: 129.963 1.088
Photon Index (Free Index): 1.77 +/- 0.31
Photon Flux (Free Index): 1.07e-07 +/- 4.11e-08
Energy Flux (Free Index): 6.85e-05 +/- 2.50e-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/601041/cmap_HighResolution_339120001_339379201_4FGL_J0839.8+0105_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.48e-07', energy_flux2='6.85e-05', photon_flux_error='4.33e-08', dlogl='1.03e+00', energy_flux='5.46e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-08-30 03:03:08.550105', photon_index_error2='0.31', photon_index2='1.77', ts='37.82', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='2.50e-05', EG='1.14', time_epoch_completed='1630317788.55', return_code='0', job_id='601041', GAL2='0.87', EG2='1.19', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='4.11e-08', ts2='40.02', photon_index='2.24' WHERE bin_id='385' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:03:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 601041: <4FGL_J0839.8+0105_daily_bin385> in cluster <slac> Done

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

Your job looked like:

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

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

