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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin325
RA = 129.963, Dec = 1.0877
tmin = 323568001, tmax = 323827201
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='600863', job_status='RUN', time_executed='2021-08-30 02:55:13.002582', time_epoch_executed='1630317313.0' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='325'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600863/ft1_4FGL_J0839.8+0105_daily_bin325.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600863/ft2_4FGL_J0839.8+0105_daily_bin325.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600863/ft1_4FGL_J0839.8+0105_daily_bin325.fits outfile=/scratch/kocevski/600863/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin325.fits ra=129.963 dec=1.0877 rad=12.0 tmin=323568001.0 tmax=323827201.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 9.43
user 3.10
sys 6.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600863/ft1_filtered_4FGL_J0839.8+0105_daily_bin325.fits" evtable="EVENTS" scfile=/scratch/kocevski/600863/ft2_4FGL_J0839.8+0105_daily_bin325.fits sctable="SC_DATA" outfile=/scratch/kocevski/600863/ltcube_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.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/600863/ft2_4FGL_J0839.8+0105_daily_bin325.fits
.....................!
real 20.04
user 12.06
sys 7.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600863/ft1_filtered_4FGL_J0839.8+0105_daily_bin325.fits evtable="EVENTS" scfile=/scratch/kocevski/600863/ft2_4FGL_J0839.8+0105_daily_bin325.fits sctable="SC_DATA" expcube=/scratch/kocevski/600863/ltcube_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.fits outfile=/scratch/kocevski/600863/expmap_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.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/600863/ltcube_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.fits
.....................!
real 198.04
user 185.59
sys 11.44

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/600863/ft1_filtered_4FGL_J0839.8+0105_daily_bin325.fits scfile=/scratch/kocevski/600863/ft2_4FGL_J0839.8+0105_daily_bin325.fits outfile=/scratch/kocevski/600863/cmap_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.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.02
user 0.41
sys 6.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600863/ft1_filtered_4FGL_J0839.8+0105_daily_bin325.fits scfile=/scratch/kocevski/600863/ft2_4FGL_J0839.8+0105_daily_bin325.fits outfile=/scratch/kocevski/600863/cmap_HighResolution_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.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 7.17
user 0.39
sys 6.69

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24499E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.9418       1.0000         .10000E-03   10000.    
     4 'norm      '    .30496       1.0000         .10000E-03   10000.    
     5 'norm      '    3.1363       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.9409       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5878       1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .62191       1.0000         .10000E-03   10000.    
    11 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.882       1.0000         .10000E-03   10000.    
    14 'norm      '    3.6993       1.0000         .10000E-03   10000.    
    15 'norm      '    16.427       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.673       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11630E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .75508       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.3241       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=   5382.921     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2245 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1511       -.31213E-06** at limit **
   2  Prefactor     .10000E-03    8.8582        .21362E-07** at limit **
   3  norm          9.9406        10.052       -.47337E-07   -.16497E-04
   4  norm          .30493        2.0119        .24745E-05    .86464E-03
   5  norm          3.1358        1.8019       -.12905E-06   -.39394E-03
   6  norm          .10000E-03    5.4566        .64699E-07** at limit **
   7  norm          8.9406        5.2037       -.15602E-07   -.53639E-04
   8  Prefactor     3.5984        35.130        .74786E-07    .10522E-04
   9  norm          .10000E-03    18.983       -.98619E-07** at limit **
  10  Prefactor     .59507        16.969        .44691E-05   -.54831E-03
  11  norm          .10000E-03    .44332        .10288E-06** at limit **
  12  norm          .10000E-03    4.2353        .65237E-07** at limit **
  13  Prefactor     33.856        41.418       -.15127E-05   -.28710E-03
  14  norm          3.6989        3.4682       -.17186E-07   -.25608E-04
  15  norm          16.426        8.7465       -.18779E-07   -.82728E-05
  16  Prefactor     25.667        32.569       -.56643E-06   -.75695E-04
  17  Prefactor     .10000E-03    2.7587        .23140E-06** at limit **
  18  Normalizat    .75512        .22924        .29022E-05   -.13930E-03
  19  Prefactor     1.3242        .17837       -.17461E-05   -.12932E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 9.94062
  norm       = 0.304929
  norm       = 3.1358
  norm       = 0.0001
  norm       = 8.94058
  Prefactor  = 3.59845
  norm       = 0.0001
  Prefactor  = 0.595073
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 33.8561
  norm       = 3.6989
  norm       = 16.4259
  Prefactor  = 25.6668
  Prefactor  = 0.000100001
  Normalizat = 0.755118
  Prefactor  = 1.32422
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.921     FROM HESSE     STATUS=OK           278 CALLS     2523 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.870        .31988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.9406        9.9960        .12709E-03   -1.5077    
   4  norm          .30493        2.2111        .21178E-03   -1.5598    
   5  norm          3.1358        1.8062        .72230E-04   -1.5354    
   6  norm          .10000E-03    5.4582        .16738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.9406        5.2009        .12269E-03   -1.5110    
   8  Prefactor     3.5984        35.069        .21334E-03   -1.5329    
   9  norm          .10000E-03    18.996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .59507        38.800        .43017E-02   -1.5554    
  11  norm          .10000E-03    .62816        .93969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.2580        .14744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.856        41.982        .68843E-04   -1.4544    
  14  norm          3.6989        3.4600        .12752E-03   -1.5323    
  15  norm          16.426        8.7422        .98819E-04   -1.4897    
  16  Prefactor     25.667        32.640        .79061E-04   -1.4694    
  17  Prefactor     .10000E-03    9.7727        .23223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .75512        .25797        .16455E-02   -1.0176    
  19  Prefactor     1.3242        .20360        .20516E-03   -.82590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96434e-09
Minuit parameter uncertainties:
  1  0.000959644
  2  4.52992e-06
  3  9.99768
  4  1.64205
  5  1.80622
  6  3.3816e-06
  7  5.20117
  8  22.4841
  9  3.19651e-05
  10  9.61589
  11  4.46931e-06
  12  3.38805e-06
  13  42.0185
  14  3.46021
  15  8.74292
  16  32.663
  17  0.000171753
  18  0.258384
  19  0.203722
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  3.388e-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:  1.324e+00  2.037e-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.551e-01  2.584e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/600863/likelihoodResults_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.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) = 5382.92233439
delta logL = -0.00111500317325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5382.92121939
delta logL = -2.29192664847e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2336       1.0000          .0000       5.0000    
     3 'Normalizat'    .75509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3243       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=   5382.921     FROM MIGRAD    STATUS=FAILED        95 CALLS      236 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    900.42        .14778E-02** at limit **
   2  alpha         2.0413        2.6029        .16580        .68979E-07
   3  Normalizat    .75512        .13321        .32910E-03   -.28292E-04
   4  Prefactor     1.3242        .10749        .20516E-03   -.34002E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5382.921     FROM SIMPLEX   STATUS=UNCHANGED    188 CALLS      424 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    900.42        .32374E-03** at limit **
   2  alpha         2.0413        2.6029        .23117E-06    .68979E-07
   3  Normalizat    .75512        .13321        .35594E-07   -.28292E-04
   4  Prefactor     1.3242        .10749        .13220E-07   -.34002E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5382.921     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      452 TOTAL
                     EDM=   .46E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3987        .29556E-03** at limit **
   2  alpha         2.0400        2.7208        .66321E-02    .99423E-08
   3  Normalizat    .75512        .24789        .13164E-04   -.28672E-04
   4  Prefactor     1.3242        .20014        .41031E-04   -.34246E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.03999
  Normalizat = 0.755119
  Prefactor  = 1.32422
 **********
 **   18 **HESSE 
 **********

 FCN=   5382.921     FROM HESSE     STATUS=OK            23 CALLS      475 TOTAL
                     EDM=   .44E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3981        .59112E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0400        2.9476        .13264E-02   -.18506    
   3  Normalizat    .75512        .24779        .26328E-05   -1.0176    
   4  Prefactor     1.3242        .20007        .82063E-05   -.82590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37658e-12
Minuit parameter uncertainties:
  1  1.21263e-05
  2  232.549
  3  0.24816
  4  0.200181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600863': 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) = 5382.92121902
delta logL = 3.72569047613e-07

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.213e-05  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.040e+00  2.325e+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:  1.324e+00  2.002e-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.551e-01  2.482e-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/600863/cmap_HighResolution_323568001_323827201_4FGL_J0839.8+0105_daily_bin325.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='6.54e-08', time_completed='2021-08-30 03:06:04.775999', job_id='600863', GAL2='1.32', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630317964.78', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='3.73e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='325' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:06:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 600863: <4FGL_J0839.8+0105_daily_bin325> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin325 129.963 1.0877 323568001 323827201 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             229.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

