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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin710
RA = 129.963, Dec = 1.0877
tmin = 423360001, tmax = 423619201
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='603196', job_status='RUN', time_executed='2021-08-30 02:59:54.566043', time_epoch_executed='1630317594.57' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603196/ft1_4FGL_J0839.8+0105_daily_bin710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603196/ft2_4FGL_J0839.8+0105_daily_bin710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603196/ft1_4FGL_J0839.8+0105_daily_bin710.fits outfile=/scratch/kocevski/603196/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin710.fits ra=129.963 dec=1.0877 rad=12.0 tmin=423360001.0 tmax=423619201.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.02
user 5.41
sys 0.55

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/603196/ft2_4FGL_J0839.8+0105_daily_bin710.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/603196/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin710.fits evtable="EVENTS" outfile="/scratch/kocevski/603196/ft1_filtered_4FGL_J0839.8+0105_daily_bin710.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.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603196/ft1_filtered_4FGL_J0839.8+0105_daily_bin710.fits" evtable="EVENTS" scfile=/scratch/kocevski/603196/ft2_4FGL_J0839.8+0105_daily_bin710.fits sctable="SC_DATA" outfile=/scratch/kocevski/603196/ltcube_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.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/603196/ft2_4FGL_J0839.8+0105_daily_bin710.fits
.....................!
real 12.23
user 11.50
sys 0.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603196/ft1_filtered_4FGL_J0839.8+0105_daily_bin710.fits evtable="EVENTS" scfile=/scratch/kocevski/603196/ft2_4FGL_J0839.8+0105_daily_bin710.fits sctable="SC_DATA" expcube=/scratch/kocevski/603196/ltcube_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.fits outfile=/scratch/kocevski/603196/expmap_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.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/603196/ltcube_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.fits
.....................!
real 190.71
user 185.37
sys 4.90

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/603196/ft1_filtered_4FGL_J0839.8+0105_daily_bin710.fits scfile=/scratch/kocevski/603196/ft2_4FGL_J0839.8+0105_daily_bin710.fits outfile=/scratch/kocevski/603196/cmap_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.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.64
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603196/ft1_filtered_4FGL_J0839.8+0105_daily_bin710.fits scfile=/scratch/kocevski/603196/ft2_4FGL_J0839.8+0105_daily_bin710.fits outfile=/scratch/kocevski/603196/cmap_HighResolution_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.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.34
user 0.37
sys 0.49

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11154E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.1925       1.0000         .10000E-03   10000.    
     4 'norm      '    .63030       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9356       1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.6475       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.461       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .65762E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .18622       1.0000         .10000E-03   10000.    
    12 'norm      '    .10200E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.357       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    34.203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2194       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96278       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=   5730.874     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2391 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0119       -.39072E-07** at limit **
   2  Prefactor     .10000E-03    37.999        .22717E-06** at limit **
   3  norm          5.1923        9.8083        .35239E-06   -.14512E-04
   4  norm          .63050        2.4419        .10963E-05   -.20044E-03
   5  norm          1.9357        1.5089       -.75139E-07   -.23807E-03
   6  norm          .10000E-03    9.0216        .10494E-06** at limit **
   7  norm          5.6474        4.7994       -.21570E-09   -.94325E-04
   8  Prefactor     23.462        39.154        .26038E-05    .96733E-04
   9  norm          .10000E-03    17.774        .16748E-07** at limit **
  10  Prefactor     .10000E-03    23.872        .84367E-08** at limit **
  11  norm          .18644        .89853        .76364E-06   -.31537E-03
  12  norm          .10000E-03    9.1163       -.15044E-07** at limit **
  13  Prefactor     33.374        33.225       -.12070E-05   -.10801E-03
  14  norm          .10000E-03    1.2210        .16241E-07** at limit **
  15  norm          34.201        10.207        .11201E-06   -.12757E-06
  16  Prefactor     .10000E-03    5.4673        .67713E-08** at limit **
  17  Prefactor     .10000E-03    4.3694        .68293E-07** at limit **
  18  Normalizat    1.2195        .22175       -.10818E-05   -.41452E-04
  19  Prefactor     .96268        .16124       -.19529E-06   -.10068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.19232
  norm       = 0.630498
  norm       = 1.93573
  norm       = 0.0001
  norm       = 5.64739
  Prefactor  = 23.4622
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.186436
  norm       = 0.0001
  Prefactor  = 33.3736
  norm       = 0.0001
  norm       = 34.2005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.21949
  Prefactor  = 0.962676
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.874     FROM HESSE     STATUS=OK           274 CALLS     2665 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0483        .16546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.1923        9.7912        .17641E-03   -1.5252    
   4  norm          .63050        2.4895        .21917E-03   -1.5549    
   5  norm          1.9357        1.4891        .76774E-04   -1.5430    
   6  norm          .10000E-03    9.0298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.6474        4.8030        .14676E-03   -1.5233    
   8  Prefactor     23.462        40.918        .82698E-04   -1.4739    
   9  norm          .10000E-03    17.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.969        .94501E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .18644        .93886        .14062E-03   -1.5622    
  12  norm          .10000E-03    9.2058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.374        34.105        .69381E-04   -1.4552    
  14  norm          .10000E-03    1.2247        .81688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          34.201        10.221        .68520E-04   -1.4538    
  16  Prefactor     .10000E-03    5.4686        .17288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4741        .15451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2195        .26445        .27935E-03   -.86003    
  19  Prefactor     .96268        .19234        .22996E-03   -.93984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92731e-10
Minuit parameter uncertainties:
  1  4.80849e-06
  2  2.45505e-05
  3  9.79421
  4  2.48993
  5  1.48913
  6  6.9264e-06
  7  4.80329
  8  40.967
  9  6.53081e-06
  10  0.00064162
  11  0.836544
  12  2.71503e-06
  13  34.125
  14  9.42037e-07
  15  10.2217
  16  1.38517e-06
  17  8.00248e-06
  18  0.264737
  19  0.192473
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.627e-01  1.925e-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.219e+00  2.647e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/603196/likelihoodResults_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.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) = 5730.87462511
delta logL = -0.000517668195243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5730.87411474
delta logL = -7.30176816433e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11667E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3045       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96335       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=   5730.874     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      238 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    14.472        .18142E-02** at limit **
   2  alpha         2.3794        3.5305        .16525       -.36430E-04
   3  Normalizat    1.2195        .24937        .27935E-03   -.61900E-04
   4  Prefactor     .96268        .18600        .22996E-03   -.80384E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  alpha      = 2.37936
  Normalizat = 1.21949
  Prefactor  = 0.962677
 **********
 **   18 **HESSE 
 **********

 FCN=   5730.874     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    14.141        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3794        3.5231        .66099E-02   -.48276E-01
   3  Normalizat    1.2195        .24962        .11174E-04   -.86003    
   4  Prefactor     .96268        .18619        .91985E-05   -.93984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66962e-09
Minuit parameter uncertainties:
  1  0.00106586
  2  2.49789
  3  0.249862
  4  0.18631
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603196': 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) = 5730.87410553
delta logL = 1.91043363884e-06

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.066e-03  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.379e+00  2.498e+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:  9.627e-01  1.863e-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.219e+00  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 129.963 1.088

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/603196/cmap_HighResolution_423360001_423619201_4FGL_J0839.8+0105_daily_bin710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-05', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2021-08-30 03:09:29.099881', job_id='603196', GAL2='0.96', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630318169.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.91e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='710' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:09:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 603196: <4FGL_J0839.8+0105_daily_bin710> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin710> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Aug 30 02:55:38 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:55:39 2021
Terminated at Mon Aug 30 03:09:30 2021
Results reported at Mon Aug 30 03:09:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin710 129.963 1.0877 423360001 423619201 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 :                                   571.52 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            832 sec.

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

