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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin588
RA = 129.963, Dec = 1.0877
tmin = 391737601, tmax = 391996801
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='601382', job_status='RUN', time_executed='2021-08-30 02:53:50.096540', time_epoch_executed='1630317230.1' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/601382

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/601382/ft1_4FGL_J0839.8+0105_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/601382/ft2_4FGL_J0839.8+0105_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/601382/ft1_4FGL_J0839.8+0105_daily_bin588.fits outfile=/scratch/kocevski/601382/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin588.fits ra=129.963 dec=1.0877 rad=12.0 tmin=391737601.0 tmax=391996801.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.22
user 3.07
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/601382/ft2_4FGL_J0839.8+0105_daily_bin588.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/601382/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/601382/ft1_filtered_4FGL_J0839.8+0105_daily_bin588.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 2.85
user 0.35
sys 2.09

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/601382/ft1_filtered_4FGL_J0839.8+0105_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/601382/ft2_4FGL_J0839.8+0105_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/601382/ltcube_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.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/601382/ft2_4FGL_J0839.8+0105_daily_bin588.fits
.....................!
real 14.44
user 11.88
sys 2.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/601382/ft1_filtered_4FGL_J0839.8+0105_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/601382/ft2_4FGL_J0839.8+0105_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/601382/ltcube_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.fits outfile=/scratch/kocevski/601382/expmap_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.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/601382/ltcube_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.fits
.....................!
real 192.66
user 185.23
sys 6.85

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/601382/ft1_filtered_4FGL_J0839.8+0105_daily_bin588.fits scfile=/scratch/kocevski/601382/ft2_4FGL_J0839.8+0105_daily_bin588.fits outfile=/scratch/kocevski/601382/cmap_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.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 2.28
user 0.39
sys 1.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/601382/ft1_filtered_4FGL_J0839.8+0105_daily_bin588.fits scfile=/scratch/kocevski/601382/ft2_4FGL_J0839.8+0105_daily_bin588.fits outfile=/scratch/kocevski/601382/cmap_HighResolution_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.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 2.29
user 0.39
sys 1.87

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.923       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7177       1.0000         .10000E-03   10000.    
     5 'norm      '    3.8956       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.0953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.079       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4626       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    14.740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.6081       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .51071       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=   6152.188     FROM MIGRAD    STATUS=CONVERGED    375 CALLS     1607 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.0272       -.14085E-06** at limit **
   2  Prefactor     .10000E-03    22.664       -.93151E-06** at limit **
   3  norm          20.922        13.611        .42125E-07   -.17911E-04
   4  norm          2.7176        2.4103       -.22173E-07   -.18764E-03
   5  norm          3.8957        1.7888       -.16794E-07   -.74528E-04
   6  norm          .10000E-03    6.8699        .65450E-09** at limit **
   7  norm          .10000E-03    2.2097       -.65622E-07** at limit **
   8  Prefactor     .10000E-03    15.013       -.48682E-05** at limit **
   9  norm          9.0955        25.641        .15054E-06   -.12170E-04
  10  Prefactor     15.081        16.944        .70743E-06   -.13370E-04
  11  norm          3.4626        1.2595        .18087E-07   -.63129E-04
  12  norm          .10000E-03    5.0196       -.25786E-08** at limit **
  13  Prefactor     .10000E-03    23.633       -.58099E-05** at limit **
  14  norm          .10000E-03    1.8696        .37878E-06** at limit **
  15  norm          14.739        7.6912       -.43347E-07   -.10793E-03
  16  Prefactor     .10000E-03    18.514        .87187E-05** at limit **
  17  Prefactor     .10000E-03    1.3503        .22728E-06** at limit **
  18  Normalizat    1.6080        .20174       -.62480E-06   -.52402E-04
  19  Prefactor     .51071        .14681       -.11558E-05   -.68209E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.9222
  norm       = 2.71764
  norm       = 3.89567
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.0955
  Prefactor  = 15.0808
  norm       = 3.46264
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.7394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.60803
  Prefactor  = 0.510707
 **********
 **   18 **HESSE 
 **********

 FCN=   6152.188     FROM HESSE     STATUS=OK           264 CALLS     1871 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.922        13.597        .87564E-04   -1.4793    
   4  norm          2.7176        2.4048        .10873E-03   -1.5378    
   5  norm          3.8957        1.7875        .66987E-04   -1.5313    
   6  norm          .10000E-03    6.8796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.2629        .22755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.0955        25.677        .13290E-03   -1.5105    
  10  Prefactor     15.081        16.969        .10314E-03   -1.4931    
  11  norm          3.4626        1.2598        .50824E-04   -1.5336    
  12  norm          .10000E-03    5.0527        .17158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.8970        .10477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          14.739        7.7006        .10432E-03   -1.4940    
  16  Prefactor     .10000E-03    18.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3579        .89028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.6080        .23680        .23456E-03   -.74786    
  19  Prefactor     .51071        .17138        .28188E-03   -1.1149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56068e-11
Minuit parameter uncertainties:
  1  2.40476e-05
  2  3.14614e-05
  3  13.5991
  4  2.40489
  5  1.78754
  6  5.6713e-06
  7  6.48203e-06
  8  9.33858e-06
  9  25.7078
  10  16.9744
  11  1.25985
  12  1.07804e-05
  13  4.25491e-05
  14  4.04533e-06
  15  7.70107
  16  6.86311e-06
  17  1.77291e-06
  18  0.236964
  19  0.171557
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  1.000e-04  1.078e-05  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:  5.107e-01  1.716e-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.608e+00  2.370e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/601382/likelihoodResults_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.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) = 6152.18852038
delta logL = -0.000941494683502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6152.18757886
delta logL = 2.72038960247e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2625       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6081       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51070       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=   6151.953     FROM MIGRAD    STATUS=FAILED       149 CALLS      289 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25848        16.406        .12829E-01    .27122E-02
   2  alpha         5.0000        4.9220        .50000    ** at limit **
   3  Normalizat    1.5527        .80988E-01    .23456E-03   -.30777E-04
   4  Prefactor     .53586        .49862E-01    .28188E-03   -.36379E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6151.953     FROM SIMPLEX   STATUS=UNCHANGED    137 CALLS      426 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25848        16.406        .35710E-05    .27122E-02
   2  alpha         5.0000        4.9220        .95563E-02** at limit **
   3  Normalizat    1.5527        .80988E-01    .95274E-06   -.30777E-04
   4  Prefactor     .53586        .49862E-01    .18477E-06   -.36379E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6151.953     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      464 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .25848        .43263        .56817E-04    .43820E-04
   2  alpha         5.0000        3.8598        .50000    ** at limit **
   3  Normalizat    1.5527        .24818        .46912E-04   -.58210E-04
   4  Prefactor     .53586        .17266        .11275E-04   -.47390E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.258476
  alpha      = 5
  Normalizat = 1.55271
  Prefactor  = 0.535861
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.953     FROM HESSE     STATUS=OK            29 CALLS      493 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .25848        .43108        .22727E-05   -1.5606    
   2  alpha         5.0000        3.8528        .50000        45.553    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.5527        .24833        .93825E-05   -.76308    
   4  Prefactor     .53586        .17275        .22550E-05   -1.1036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80043e-11
Minuit parameter uncertainties:
  1  0.431088
  2  5.18275e-05
  3  0.248528
  4  0.172919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/601382': 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) = 6151.95261152
delta logL = 0.234967361405

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.585e-01  4.311e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  5.183e-05  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:  5.359e-01  1.729e-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.553e+00  2.485e-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/601382/cmap_HighResolution_391737601_391996801_4FGL_J0839.8+0105_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.50e-05', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-08-30 03:03:28.568482', job_id='601382', GAL2='0.54', fit_tolerance='1e-08', EG2='1.55', EG='1.61', time_epoch_completed='1630317808.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='2.35e-01', ts2='0.50', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='588' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:03:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 601382: <4FGL_J0839.8+0105_daily_bin588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin588 129.963 1.0877 391737601 391996801 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 :                                   599.19 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             254.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            759 sec.

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

