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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin166
RA = 129.963, Dec = 1.0877
tmin = 282355201, tmax = 282614401
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='598424', job_status='RUN', time_executed='2021-08-30 02:46:01.797376', time_epoch_executed='1630316761.8' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598424

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598424/ft1_4FGL_J0839.8+0105_daily_bin166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598424/ft2_4FGL_J0839.8+0105_daily_bin166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598424/ft1_4FGL_J0839.8+0105_daily_bin166.fits outfile=/scratch/kocevski/598424/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin166.fits ra=129.963 dec=1.0877 rad=12.0 tmin=282355201.0 tmax=282614401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.28
user 3.57
sys 0.59

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598424/ft1_filtered_4FGL_J0839.8+0105_daily_bin166.fits" evtable="EVENTS" scfile=/scratch/kocevski/598424/ft2_4FGL_J0839.8+0105_daily_bin166.fits sctable="SC_DATA" outfile=/scratch/kocevski/598424/ltcube_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.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/598424/ft2_4FGL_J0839.8+0105_daily_bin166.fits
.....................!
real 12.35
user 11.55
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598424/ft1_filtered_4FGL_J0839.8+0105_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/598424/ft2_4FGL_J0839.8+0105_daily_bin166.fits sctable="SC_DATA" expcube=/scratch/kocevski/598424/ltcube_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.fits outfile=/scratch/kocevski/598424/expmap_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.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/598424/ltcube_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.fits
.....................!
real 192.80
user 187.05
sys 5.34

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/598424/ft1_filtered_4FGL_J0839.8+0105_daily_bin166.fits scfile=/scratch/kocevski/598424/ft2_4FGL_J0839.8+0105_daily_bin166.fits outfile=/scratch/kocevski/598424/cmap_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.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.98
user 0.37
sys 0.53

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598424/ft1_filtered_4FGL_J0839.8+0105_daily_bin166.fits scfile=/scratch/kocevski/598424/ft2_4FGL_J0839.8+0105_daily_bin166.fits outfile=/scratch/kocevski/598424/cmap_HighResolution_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.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.97
user 0.37
sys 0.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.801       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9932       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2397       1.0000         .10000E-03   10000.    
     5 'norm      '    .71881       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .42540E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    65.511       1.0000         .10000E-03   10000.    
     9 'norm      '    17.136       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5265       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4851       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    12.240       1.0000         .10000E-03   10000.    
    15 'norm      '    .14165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6357       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11647E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .99996       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1216       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=   5297.005     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     2266 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.802        8.8531        .16133E-09    .46827E-04
   2  Prefactor     2.0487        95.781       -.20354E-04   -.12351E-04
   3  norm          .10000E-03    5.9041        .91578E-08** at limit **
   4  norm          2.2385        3.3078        .61327E-07    .82309E-04
   5  norm          .71982        1.7833        .11176E-07    .19752E-04
   6  norm          .10000E-03    39.159       -.33127E-06** at limit **
   7  norm          .38257E-01    3.2451       -.19505E-05    .14319E-02
   8  Prefactor     65.498        48.996        .31730E-05    .18805E-03
   9  norm          17.142        22.242       -.43692E-06   -.32826E-05
  10  Prefactor     .10000E-03    11.741       -.37029E-06** at limit **
  11  norm          2.5266        1.4450       -.64721E-07    .36412E-03
  12  norm          2.4863        9.2017        .61584E-05    .37162E-03
  13  Prefactor     .10000E-03    27.832        .57707E-06** at limit **
  14  norm          12.239        4.8139       -.25078E-06    .87354E-04
  15  norm          .10002E-03    5.8972       -.13020E-05** at limit **
  16  Prefactor     8.6339        25.886        .42553E-06    .42515E-04
  17  Prefactor     .10000E-03    2.0906       -.12026E-06** at limit **
  18  Normalizat    .99997        .23359       -.49958E-06    .33899E-03
  19  Prefactor     1.1215        .17377        .45091E-06    .42878E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8025
  Prefactor  = 2.0487
  norm       = 0.0001
  norm       = 2.23854
  norm       = 0.719819
  norm       = 0.000100002
  norm       = 0.0382565
  Prefactor  = 65.4977
  norm       = 17.1416
  Prefactor  = 0.0001
  norm       = 2.5266
  norm       = 2.48632
  Prefactor  = 0.0001
  norm       = 12.2392
  norm       = 0.000100022
  Prefactor  = 8.63387
  Prefactor  = 0.0001
  Normalizat = 0.999972
  Prefactor  = 1.12147
 **********
 **   18 **HESSE 
 **********

 FCN=   5297.005     FROM HESSE     STATUS=OK           276 CALLS     2542 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.802        8.8424        .12191E-03   -1.5051    
   2  Prefactor     2.0487        96.966        .29343E-03   -1.5422    
   3  norm          .10000E-03    5.9260        .17269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2385        3.2103        .14413E-03   -1.5409    
   5  norm          .71982        1.6950        .13781E-03   -1.5538    
   6  norm          .10000E-03    39.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .38257E-01    4.4316        .39462E-01   -1.5669    
   8  Prefactor     65.498        49.388        .49584E-04   -1.4088    
   9  norm          17.142        22.239        .48377E-03   -1.4880    
  10  Prefactor     .10000E-03    11.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5266        1.4417        .62134E-04   -1.5390    
  12  norm          2.4863        9.2670        .12966E-02   -1.5393    
  13  Prefactor     .10000E-03    28.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          12.239        4.8102        .96567E-04   -1.5008    
  15  norm          .10002E-03    27.775        .33072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6339        25.740        .13641E-03   -1.5120    
  17  Prefactor     .10000E-03    3.7213        .20456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .99997        .27458        .29209E-03   -.93031    
  19  Prefactor     1.1215        .20555        .21619E-03   -.88783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.96859e-09
Minuit parameter uncertainties:
  1  8.84345
  2  28.237
  3  8.96919e-06
  4  3.21053
  5  1.69514
  6  0.000573654
  7  0.822482
  8  49.4187
  9  22.2494
  10  4.73345e-05
  11  1.44168
  12  9.2723
  13  2.37353e-05
  14  4.81031
  15  0.00156984
  16  25.7734
  17  6.94593e-06
  18  0.274965
  19  0.205694
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.486e+00  9.272e+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:  1.121e+00  2.057e-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.000e+00  2.750e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/598424/likelihoodResults_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.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) = 5296.88806622
delta logL = 0.117294581936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5296.88438317
delta logL = 0.120977635235

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2889       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3128       1.0000          .0000       5.0000    
     3 'Normalizat'    .97192       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1335       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5296.884     FROM MIGRAD    STATUS=FAILED        82 CALLS      244 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2877        16.447        .19116E-03   -.98071E-04
   2  alpha         3.3133        4.1068        .30633E-01    .15293E-03
   3  Normalizat    .97191        .26697        .29579E-03   -.35128E-03
   4  Prefactor     1.1335        .20606        .21514E-03   -.52850E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5296.884     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      319 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2877        16.447        .18055E-03   -1.5405    
   2  alpha         3.3133        4.1068        .38073E-02    .33135    
   3  Normalizat    .97191        .26697        .57065E-03   -.93978    
   4  Prefactor     1.1335        .20606        .33543E-03   -.88402    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5296.884     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      357 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2877        7.4147        .76463E-05   -.49065E-04
   2  alpha         3.3133        1.9589        .61267E-02    .18575E-05
   3  Normalizat    .97191        .26496        .59157E-04   -.26713E-04
   4  Prefactor     1.1335        .20344        .43028E-04   -.38839E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.2877
  alpha      = 3.31332
  Normalizat = 0.971907
  Prefactor  = 1.13352
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.884     FROM HESSE     STATUS=OK            25 CALLS      382 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2877        6.9998        .15293E-05   -1.5405    
   2  alpha         3.3133        1.8831        .24507E-03    .33136    
   3  Normalizat    .97191        .26486        .11831E-04   -.93978    
   4  Prefactor     1.1335        .20328        .86057E-05   -.88402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34263e-11
Minuit parameter uncertainties:
  1  7.00233
  2  2.17866
  3  0.26522
  4  0.20342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598424': 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) = 5296.88438313
delta logL = 0.12097766949

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.288e+00  7.002e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  3.313e+00  2.179e+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:  1.134e+00  2.034e-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:  9.719e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/598424/cmap_HighResolution_282355201_282614401_4FGL_J0839.8+0105_daily_bin166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-05', job_status='DONE', photon_flux_upper_limit='9.86e-08', time_completed='2021-08-30 02:55:18.741663', job_id='598424', GAL2='1.13', fit_tolerance='1e-08', EG2='0.97', EG='1.00', time_epoch_completed='1630317318.74', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='1.21e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='166' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:55:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 598424: <4FGL_J0839.8+0105_daily_bin166> in cluster <slac> Done

Job <4FGL_J0839.8+0105_daily_bin166> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 02:45:42 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:45:44 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:45:44 2021
Terminated at Mon Aug 30 02:55:19 2021
Results reported at Mon Aug 30 02:55:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin166 129.963 1.0877 282355201 282614401 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 :                                   557.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             361.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   575 sec.
    Turnaround time :                            577 sec.

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

