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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin423
RA = 129.963, Dec = 1.0877
tmin = 348969601, tmax = 349228801
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='601095', job_status='RUN', time_executed='2021-08-30 02:54:42.569407', time_epoch_executed='1630317282.57' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601095/ft1_4FGL_J0839.8+0105_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601095/ft2_4FGL_J0839.8+0105_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601095/ft1_4FGL_J0839.8+0105_daily_bin423.fits outfile=/scratch/kocevski/601095/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin423.fits ra=129.963 dec=1.0877 rad=12.0 tmin=348969601.0 tmax=349228801.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 11.94
user 3.52
sys 7.82

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601095/ft2_4FGL_J0839.8+0105_daily_bin423.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/601095/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/601095/ft1_filtered_4FGL_J0839.8+0105_daily_bin423.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 9.02
user 0.34
sys 7.70

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601095/ft1_filtered_4FGL_J0839.8+0105_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/601095/ft2_4FGL_J0839.8+0105_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/601095/ltcube_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.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/601095/ft2_4FGL_J0839.8+0105_daily_bin423.fits
.....................!
real 21.78
user 11.76
sys 9.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601095/ft1_filtered_4FGL_J0839.8+0105_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/601095/ft2_4FGL_J0839.8+0105_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/601095/ltcube_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.fits outfile=/scratch/kocevski/601095/expmap_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.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/601095/ltcube_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.fits
.....................!
real 198.56
user 185.00
sys 12.99

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/601095/ft1_filtered_4FGL_J0839.8+0105_daily_bin423.fits scfile=/scratch/kocevski/601095/ft2_4FGL_J0839.8+0105_daily_bin423.fits outfile=/scratch/kocevski/601095/cmap_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.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 7.96
user 0.38
sys 7.49

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601095/ft1_filtered_4FGL_J0839.8+0105_daily_bin423.fits scfile=/scratch/kocevski/601095/ft2_4FGL_J0839.8+0105_daily_bin423.fits outfile=/scratch/kocevski/601095/cmap_HighResolution_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.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 8.00
user 0.39
sys 7.58

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11412E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    12.281       1.0000         .10000E-03   10000.    
     4 'norm      '    .50592       1.0000         .10000E-03   10000.    
     5 'norm      '    .71417       1.0000         .10000E-03   10000.    
     6 'norm      '    18.593       1.0000         .10000E-03   10000.    
     7 'norm      '    7.1251       1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.916       1.0000         .10000E-03   10000.    
     9 'norm      '    14.659       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91844       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.8235       1.0000         .10000E-03   10000.    
    15 'norm      '    6.8363       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.321       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3217       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .71442       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=   6780.624     FROM MIGRAD    STATUS=CONVERGED    369 CALLS     1859 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1647       -.22413E-07** at limit **
   2  Prefactor     .10000E-03    26.168        .11261E-04** at limit **
   3  norm          12.281        9.4509       -.22771E-08   -.39808E-04
   4  norm          .50593        1.4433       -.80961E-06   -.17891E-02
   5  norm          .71367        .94693        .38137E-07   -.17373E-03
   6  norm          18.590        23.689        .10975E-06   -.60089E-04
   7  norm          7.1250        4.3521        .17625E-05   -.19233E-03
   8  Prefactor     27.905        44.838       -.16954E-04   -.10417E-04
   9  norm          14.651        21.128       -.80335E-05   -.58226E-05
  10  Prefactor     .10000E-03    33.237       -.29178E-05** at limit **
  11  norm          .91866        .96461       -.22705E-07   -.52962E-03
  12  norm          .10000E-03    1.7985        .31597E-07** at limit **
  13  Prefactor     .10000E-03    24.634       -.75566E-05** at limit **
  14  norm          4.8237        3.3583       -.16228E-05   -.98666E-04
  15  norm          6.8371        5.4330        .17401E-05   -.40165E-04
  16  Prefactor     22.322        20.673        .32644E-06   -.39375E-05
  17  Prefactor     .10000E-03    1.7393       -.49621E-07** at limit **
  18  Normalizat    1.3214        .18686        .14805E-05   -.77517E-05
  19  Prefactor     .71457        .13532        .22690E-06    .11846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2807
  norm       = 0.505928
  norm       = 0.713665
  norm       = 18.59
  norm       = 7.12503
  Prefactor  = 27.9046
  norm       = 14.6512
  Prefactor  = 0.000100001
  norm       = 0.91866
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.82374
  norm       = 6.83713
  Prefactor  = 22.3219
  Prefactor  = 0.0001
  Normalizat = 1.32143
  Prefactor  = 0.714572
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.624     FROM HESSE     STATUS=OK           278 CALLS     2137 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1734        .11830E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.281        9.4484        .11431E-03   -1.5007    
   4  norm          .50593        1.4335        .16137E-03   -1.5566    
   5  norm          .71367        .83117        .87949E-03   -1.5539    
   6  norm          18.590        23.643        .92886E-04   -1.4845    
   7  norm          7.1250        4.3286        .12776E-03   -1.5174    
   8  Prefactor     27.905        44.856        .75825E-04   -1.4651    
   9  norm          14.651        21.142        .10461E-03   -1.4942    
  10  Prefactor     .10000E-03    33.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .91866        .93509        .78486E-03   -1.5516    
  12  norm          .10000E-03    1.8026        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    24.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.8237        3.3636        .12128E-03   -1.5269    
  15  norm          6.8371        5.4278        .15345E-03   -1.5185    
  16  Prefactor     22.322        20.727        .84782E-04   -1.4763    
  17  Prefactor     .10000E-03    1.7589        .10602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3214        .22215        .24232E-03   -.82929    
  19  Prefactor     .71457        .16022        .23708E-03   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07767e-09
Minuit parameter uncertainties:
  1  7.01648e-07
  2  6.72797e-05
  3  9.4495
  4  1.43364
  5  0.83118
  6  23.655
  7  4.32881
  8  44.9099
  9  21.1525
  10  0.000436687
  11  0.935107
  12  1.38968e-06
  13  8.41856e-06
  14  3.36368
  15  5.42815
  16  20.7339
  17  4.08912e-07
  18  0.222312
  19  0.160326
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.390e-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:  7.146e-01  1.603e-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.321e+00  2.223e-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: 3.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601095/likelihoodResults_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.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) = 6780.62703299
delta logL = -0.00258206151648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6780.6244509
delta logL = 2.46673153015e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2360       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3214       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71458       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=   6780.624     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      230 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.5828        .10797E-02** at limit **
   2  alpha         2.0027        3.9063        .16578        .88601E-07
   3  Normalizat    1.3214        .20658        .24232E-03    .36313E-04
   4  Prefactor     .71457        .15432        .23708E-03    .42246E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00265
  Normalizat = 1.32143
  Prefactor  = 0.71457
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.624     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8522        .21594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0027        3.9786        .66312E-02   -.20027    
   3  Normalizat    1.3214        .20677        .96927E-05   -.82929    
   4  Prefactor     .71457        .15447        .94833E-05   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.53305e-11
Minuit parameter uncertainties:
  1  1.32721e-05
  2  196.222
  3  0.206902
  4  0.154561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601095': 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) = 6780.62445018
delta logL = 7.41358235246e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.327e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.003e+00  1.962e+02  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.146e-01  1.546e-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.321e+00  2.069e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/601095/cmap_HighResolution_348969601_349228801_4FGL_J0839.8+0105_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-05', job_status='DONE', photon_flux_upper_limit='3.70e-08', time_completed='2021-08-30 03:06:10.878996', job_id='601095', GAL2='0.71', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630317970.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='7.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='423' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:06:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 601095: <4FGL_J0839.8+0105_daily_bin423> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin423 129.963 1.0877 348969601 349228801 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 :                                   801.21 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

