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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin511
RA = 129.963, Dec = 1.0877
tmin = 371779201, tmax = 372038401
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='601225', job_status='RUN', time_executed='2021-08-30 02:54:14.704683', time_epoch_executed='1630317254.7' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='511'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601225

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601225/ft1_4FGL_J0839.8+0105_daily_bin511.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601225/ft2_4FGL_J0839.8+0105_daily_bin511.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601225/ft1_4FGL_J0839.8+0105_daily_bin511.fits outfile=/scratch/kocevski/601225/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin511.fits ra=129.963 dec=1.0877 rad=12.0 tmin=371779201.0 tmax=372038401.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 3.73
user 3.19
sys 0.49

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601225/ft1_filtered_4FGL_J0839.8+0105_daily_bin511.fits" evtable="EVENTS" scfile=/scratch/kocevski/601225/ft2_4FGL_J0839.8+0105_daily_bin511.fits sctable="SC_DATA" outfile=/scratch/kocevski/601225/ltcube_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.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/601225/ft2_4FGL_J0839.8+0105_daily_bin511.fits
.....................!
real 12.10
user 11.10
sys 0.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601225/ft1_filtered_4FGL_J0839.8+0105_daily_bin511.fits evtable="EVENTS" scfile=/scratch/kocevski/601225/ft2_4FGL_J0839.8+0105_daily_bin511.fits sctable="SC_DATA" expcube=/scratch/kocevski/601225/ltcube_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.fits outfile=/scratch/kocevski/601225/expmap_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.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/601225/ltcube_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.fits
.....................!
real 191.03
user 184.62
sys 5.59

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/601225/ft1_filtered_4FGL_J0839.8+0105_daily_bin511.fits scfile=/scratch/kocevski/601225/ft2_4FGL_J0839.8+0105_daily_bin511.fits outfile=/scratch/kocevski/601225/cmap_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.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.86
user 0.37
sys 0.45

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601225/ft1_filtered_4FGL_J0839.8+0105_daily_bin511.fits scfile=/scratch/kocevski/601225/ft2_4FGL_J0839.8+0105_daily_bin511.fits outfile=/scratch/kocevski/601225/cmap_HighResolution_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.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.88
user 0.37
sys 0.47

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42043E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    8.7814       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .12810E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.1447       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.859       1.0000         .10000E-03   10000.    
     9 'norm      '    19.301       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.356       1.0000         .10000E-03   10000.    
    11 'norm      '    2.1528       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10612E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.3722       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.5922       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0072       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79516       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=   7302.016     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     1702 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2820       -.14255E-07** at limit **
   2  Prefactor     .10014E-03    15.413       -.26722E-06** at limit **
   3  norm          8.7823        8.3823        .11478E-05    .20581E-03
   4  norm          .10000E-03    .98104       -.27970E-08** at limit **
   5  norm          .10000E-03    .50131       -.91382E-09** at limit **
   6  norm          .10000E-03    25.260        .25069E-06** at limit **
   7  norm          5.1449        3.0056       -.31369E-07    .21109E-04
   8  Prefactor     13.810        34.239       -.86148E-06   -.40381E-04
   9  norm          19.292        17.143        .39644E-05    .37693E-03
  10  Prefactor     23.380        15.297       -.33448E-05   -.51413E-03
  11  norm          2.1528        .95233        .27693E-08   -.33741E-04
  12  norm          2.9858        2.9797        .13483E-05   -.33283E-02
  13  Prefactor     .10000E-03    37.732       -.13847E-05** at limit **
  14  norm          .10000E-03    2.1869       -.33903E-07** at limit **
  15  norm          6.3724        4.2217       -.55816E-07   -.31480E-05
  16  Prefactor     .10000E-03    15.472        .28846E-07** at limit **
  17  Prefactor     1.5916        3.1926        .77965E-07   -.35363E-03
  18  Normalizat    1.0072        .16264        .82754E-06   -.30313E-04
  19  Prefactor     .79522        .11907       -.71684E-06    .12614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100138
  norm       = 8.78235
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.1449
  Prefactor  = 13.8099
  norm       = 19.2922
  Prefactor  = 23.3799
  norm       = 2.15275
  norm       = 2.98582
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.37242
  Prefactor  = 0.0001
  Prefactor  = 1.59162
  Normalizat = 1.00717
  Prefactor  = 0.795215
 **********
 **   18 **HESSE 
 **********

 FCN=   7302.016     FROM HESSE     STATUS=OK           280 CALLS     1982 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.3073        .15113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10014E-03    17.858        .10829       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.7823        8.3826        .13526E-03   -1.5115    
   4  norm          .10000E-03    1.6697        .16365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .52166        .11790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    25.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.1449        3.0043        .10929E-03   -1.5254    
   8  Prefactor     13.810        34.270        .10759E-03   -1.4965    
   9  norm          19.292        17.350        .91166E-04   -1.4829    
  10  Prefactor     23.380        15.565        .82884E-04   -1.4741    
  11  norm          2.1528        .94836        .53021E-04   -1.5415    
  12  norm          2.9858        4.7126        .11280E-02   -1.5362    
  13  Prefactor     .10000E-03    38.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.6987        .24195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.3724        4.2216        .13809E-03   -1.5203    
  16  Prefactor     .10000E-03    15.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.5916        3.1947        .20762E-03   -1.5456    
  18  Normalizat    1.0072        .18873        .24643E-03   -.92791    
  19  Prefactor     .79522        .13807        .20869E-03   -.99905    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.91587e-09
Minuit parameter uncertainties:
  1  8.37086e-06
  2  0.00314054
  3  8.38372
  4  1.30505e-05
  5  2.47446e-06
  6  7.31703e-05
  7  3.00435
  8  34.3186
  9  17.3546
  10  15.5678
  11  0.948363
  12  4.71322
  13  0.000152093
  14  1.78857e-05
  15  4.22175
  16  7.741e-06
  17  3.19506
  18  0.188855
  19  0.138131
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.986e+00  4.713e+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:  7.952e-01  1.381e-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.007e+00  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/601225/likelihoodResults_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.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) = 7302.0040221
delta logL = 0.0122754010581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7302.00366694
delta logL = 0.0126305586582

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9268       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5413       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79752       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=   7302.004     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9277        226.47        .59362E-02    .48070E-03
   2  alpha         2.5406        2.5698        .41159        .26528E-04
   3  Normalizat    1.0020        .87996E-01    .46191E-01    .20414E-04
   4  Prefactor     .79744        .46133E-01    .43685E-01    .31031E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92774
  alpha      = 2.54063
  Normalizat = 1.00199
  Prefactor  = 0.797443
 **********
 **   18 **HESSE 
 **********

 FCN=   7302.004     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9277        4.8252        .21265E-03   -1.5366    
   2  alpha         2.5406        1.7672        .44331E-01    .16254E-01
   3  Normalizat    1.0020        .18345        .24700E-03   -.92964    
   4  Prefactor     .79744        .13807        .20843E-03   -.99823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38238e-11
Minuit parameter uncertainties:
  1  4.82587
  2  1.96279
  3  0.183564
  4  0.138135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601225': 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) = 7302.00366666
delta logL = 0.0126308344497

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.928e+00  4.826e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.541e+00  1.963e+00  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:  7.974e-01  1.381e-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.002e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.61
Ra Dec: 129.963 1.088

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/601225/cmap_HighResolution_371779201_372038401_4FGL_J0839.8+0105_daily_bin511.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.32e-05', job_status='DONE', photon_flux_upper_limit='6.30e-08', time_completed='2021-08-30 03:04:00.880279', job_id='601225', GAL2='0.80', fit_tolerance='1e-08', EG2='1.00', EG='1.01', time_epoch_completed='1630317840.88', return_code2='0', ts='0.61', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.26e-02', ts2='0.64', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='511' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:04:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 601225: <4FGL_J0839.8+0105_daily_bin511> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin511 129.963 1.0877 371779201 372038401 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 :                                   583.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            798 sec.

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

