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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin674
RA = 129.963, Dec = 1.0877
tmin = 414028801, tmax = 414288001
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='603144', job_status='RUN', time_executed='2021-08-30 02:59:52.071077', time_epoch_executed='1630317592.07' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/603144

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/603144/ft1_4FGL_J0839.8+0105_daily_bin674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/603144/ft2_4FGL_J0839.8+0105_daily_bin674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/603144/ft1_4FGL_J0839.8+0105_daily_bin674.fits outfile=/scratch/kocevski/603144/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin674.fits ra=129.963 dec=1.0877 rad=12.0 tmin=414028801.0 tmax=414288001.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 5.18
user 4.95
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/603144/ft1_filtered_4FGL_J0839.8+0105_daily_bin674.fits" evtable="EVENTS" scfile=/scratch/kocevski/603144/ft2_4FGL_J0839.8+0105_daily_bin674.fits sctable="SC_DATA" outfile=/scratch/kocevski/603144/ltcube_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.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/603144/ft2_4FGL_J0839.8+0105_daily_bin674.fits
.....................!
real 12.11
user 11.73
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/603144/ft1_filtered_4FGL_J0839.8+0105_daily_bin674.fits evtable="EVENTS" scfile=/scratch/kocevski/603144/ft2_4FGL_J0839.8+0105_daily_bin674.fits sctable="SC_DATA" expcube=/scratch/kocevski/603144/ltcube_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.fits outfile=/scratch/kocevski/603144/expmap_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.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/603144/ltcube_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.fits
.....................!
real 189.24
user 185.12
sys 3.71

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/603144/ft1_filtered_4FGL_J0839.8+0105_daily_bin674.fits scfile=/scratch/kocevski/603144/ft2_4FGL_J0839.8+0105_daily_bin674.fits outfile=/scratch/kocevski/603144/cmap_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.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.67
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/603144/ft1_filtered_4FGL_J0839.8+0105_daily_bin674.fits scfile=/scratch/kocevski/603144/ft2_4FGL_J0839.8+0105_daily_bin674.fits outfile=/scratch/kocevski/603144/cmap_HighResolution_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .11705E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    22.228       1.0000         .10000E-03   10000.    
     4 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4613       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.8084       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    50.977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.0655       1.0000         .10000E-03   10000.    
    12 'norm      '    .33659       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.630       1.0000         .10000E-03   10000.    
    14 'norm      '    .80247       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8394       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9850       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .79656       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97723       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=   5940.027     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1949 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.0490        .90712E-02** at limit **
   2  Prefactor     .10000E-03    80.912        .90712E-02** at limit **
   3  norm          22.221        12.926        .21239E-02   -.20574E-03
   4  norm          .10000E-03    1.0975        .90712E-02** at limit **
   5  norm          1.4601        1.4047        .88976E-02    .53342E-03
   6  norm          .10000E-03    30.877        .90712E-02** at limit **
   7  norm          7.8087        4.2304        .35874E-02    .34897E-02
   8  Prefactor     .10000E-03    16.469        .90712E-02** at limit **
   9  norm          50.975        31.135        .14042E-02    .10644E-02
  10  Prefactor     .10000E-03    3.2239        .90712E-02** at limit **
  11  norm          1.0661        .98879        .11815E-01    .65573E-03
  12  norm          .28264        5.0951        .53689E-01    .47596E-03
  13  Prefactor     10.622        18.508        .30723E-02   -.31480E-03
  14  norm          .80056        2.9089        .43758E-01    .84605E-03
  15  norm          2.8389        3.2564        .60329E-02   -.51492E-04
  16  Prefactor     .10000E-03    5.0568        .90712E-02** at limit **
  17  Prefactor     8.9828        5.2137        .33428E-02    .11626E-02
  18  Normalizat    .79666        .18488        .63731E-01   -.37703E-04
  19  Prefactor     .97739        .13884        .45982E-01   -.85125E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.2214
  norm       = 0.0001
  norm       = 1.46013
  norm       = 0.0001
  norm       = 7.80873
  Prefactor  = 0.0001
  norm       = 50.9753
  Prefactor  = 0.0001
  norm       = 1.06611
  norm       = 0.282642
  Prefactor  = 10.6222
  norm       = 0.800556
  norm       = 2.83887
  Prefactor  = 0.0001
  Prefactor  = 8.98284
  Normalizat = 0.796659
  Prefactor  = 0.977391
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.027     FROM HESSE     STATUS=OK           270 CALLS     2219 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0511        .10773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    82.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          22.221        12.919        .84957E-04   -1.4765    
   4  norm          .10000E-03    1.1393        .15736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4601        1.3865        .85098E-04   -1.5466    
   6  norm          .10000E-03    31.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8087        4.2276        .11166E-03   -1.5149    
   8  Prefactor     .10000E-03    16.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          50.975        31.113        .56170E-04   -1.4279    
  10  Prefactor     .10000E-03    3.2256        .13515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.0661        .95727        .69727E-04   -1.5501    
  12  norm          .28264        21.705        .33281E-02   -1.5602    
  13  Prefactor     10.622        18.511        .12289E-03   -1.5056    
  14  norm          .80056        4.3253        .23328E-02   -1.5529    
  15  norm          2.8389        3.2527        .14483E-03   -1.5371    
  16  Prefactor     .10000E-03    5.0604        .16927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.9828        5.2039        .12792E-03   -1.5108    
  18  Normalizat    .79666        .21799        .28192E-03   -1.0019    
  19  Prefactor     .97739        .16610        .19800E-03   -.93487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91407e-08
Minuit parameter uncertainties:
  1  6.42049e-07
  2  0.000102748
  3  12.9205
  4  4.69638e-06
  5  1.38656
  6  2.78163e-05
  7  4.22777
  8  0.000126964
  9  31.1225
  10  1.75068e-06
  11  0.957279
  12  4.95462
  13  18.5205
  14  3.72183
  15  3.25295
  16  5.02204e-06
  17  5.20412
  18  0.218234
  19  0.166189
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.826e-01  4.955e+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:  9.774e-01  1.662e-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:  7.967e-01  2.182e-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: 6.00e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/603144/likelihoodResults_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.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): 102
logL (Free Index) = 5940.02191932
delta logL = 0.00553766286612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5940.02044857
delta logL = 0.00700841373873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .45185       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8643       1.0000          .0000       5.0000    
     3 'Normalizat'    .79450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97793       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=   5940.020     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      351 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46250        69.605        .43381E-01    .10328E-02
   2  alpha         2.8772        3.9383        .41718        .24282E-04
   3  Normalizat    .79425        .21819E-01    .63822E-01   -.88624E-04
   4  Prefactor     .97795        .16935E-01    .45991E-01   -.16527E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.462502
  alpha      = 2.8772
  Normalizat = 0.794249
  Prefactor  = 0.97795
 **********
 **   18 **HESSE 
 **********

 FCN=   5940.020     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      384 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46250        1335.0        .26584E-02   -1.5572    
   2  alpha         2.8772        3.8717        .12776        .15146    
   3  Normalizat    .79425        .13912        .28232E-03   -1.0028    
   4  Prefactor     .97795        .13437        .19795E-03   -.93468    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.40161e-10
Minuit parameter uncertainties:
  1  50.8713
  2  65.5569
  3  0.139184
  4  0.134414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/603144': 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): 102
logL (Free Index) = 5940.02043645
delta logL = 0.00702052868292

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  4.625e-01  5.087e+01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.877e+00  6.556e+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:  9.780e-01  1.344e-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:  7.942e-01  1.392e-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/603144/cmap_HighResolution_414028801_414288001_4FGL_J0839.8+0105_daily_bin674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', job_status='DONE', photon_flux_upper_limit='6.00e-08', time_completed='2021-08-30 03:09:03.712748', job_id='603144', GAL2='0.98', fit_tolerance='1e-08', EG2='0.79', EG='0.80', time_epoch_completed='1630318143.71', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.02e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='674' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:09:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 603144: <4FGL_J0839.8+0105_daily_bin674> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin674 129.963 1.0877 414028801 414288001 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 :                                   547.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             231.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            809 sec.

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

