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


Performing analysis on: 4FGL_J0839.8+0105_daily_bin206
RA = 129.963, Dec = 1.0877
tmin = 292723201, tmax = 292982401
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='598489', job_status='RUN', time_executed='2021-08-30 02:50:53.266802', time_epoch_executed='1630317053.27' WHERE source_name='4FGL J0839.8+0105' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/598489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/598489/ft1_4FGL_J0839.8+0105_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/598489/ft2_4FGL_J0839.8+0105_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/598489/ft1_4FGL_J0839.8+0105_daily_bin206.fits outfile=/scratch/kocevski/598489/ft1_filteredMKT_4FGL_J0839.8+0105_daily_bin206.fits ra=129.963 dec=1.0877 rad=12.0 tmin=292723201.0 tmax=292982401.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 7.50
user 4.17
sys 3.13

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/598489/ft1_filtered_4FGL_J0839.8+0105_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/598489/ft2_4FGL_J0839.8+0105_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/598489/ltcube_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.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/598489/ft2_4FGL_J0839.8+0105_daily_bin206.fits
.....................!
real 15.50
user 11.68
sys 3.68

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/598489/ft1_filtered_4FGL_J0839.8+0105_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/598489/ft2_4FGL_J0839.8+0105_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/598489/ltcube_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.fits outfile=/scratch/kocevski/598489/expmap_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.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/598489/ltcube_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.fits
.....................!
real 194.99
user 185.51
sys 9.01

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/598489/ft1_filtered_4FGL_J0839.8+0105_daily_bin206.fits scfile=/scratch/kocevski/598489/ft2_4FGL_J0839.8+0105_daily_bin206.fits outfile=/scratch/kocevski/598489/cmap_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.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 3.45
user 0.37
sys 3.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/598489/ft1_filtered_4FGL_J0839.8+0105_daily_bin206.fits scfile=/scratch/kocevski/598489/ft2_4FGL_J0839.8+0105_daily_bin206.fits outfile=/scratch/kocevski/598489/cmap_HighResolution_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.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 3.80
user 0.37
sys 3.38

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12690E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .89656       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .71640       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0609       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4713       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11861E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.394       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.325       1.0000         .10000E-03   10000.    
    11 'norm      '    3.3754       1.0000         .10000E-03   10000.    
    12 'norm      '    .53845E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .31973E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    22.213       1.0000         .10000E-03   10000.    
    15 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3850       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92508       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=   7557.811     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     2240 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6789        .10999E-02** at limit **
   2  Prefactor     .10000E-03    30.161        .18142E-02** at limit **
   3  norm          .94671        24.112        .45349E-02   -.50456E-03
   4  norm          .10000E-03    .56259        .63550E-03** at limit **
   5  norm          .71605        1.3629        .13636E-03    .24712E-03
   6  norm          1.0759        82.280        .64226E-02    .14349E-03
   7  norm          3.4717        3.5365        .15868E-03   -.36403E-03
   8  Prefactor     .10000E-03    41.898        .18142E-02** at limit **
   9  norm          11.424        37.899        .11868E-03   -.17346E-03
  10  Prefactor     20.338        19.271        .88841E-04    .17186E-03
  11  norm          3.3753        1.1949        .54093E-04   -.50903E-03
  12  norm          .76373E-01    8.8091        .58474E-01    .15794E-03
  13  Prefactor     .10079E-03    164.47        .69147E-02** at limit **
  14  norm          22.216        5.9369        .84987E-04    .21804E-04
  15  norm          .10000E-03    6.4116        .36285E-03** at limit **
  16  Prefactor     .10000E-03    4.9091        .18142E-02** at limit **
  17  Prefactor     .10000E-03    1.3143        .96776E-03** at limit **
  18  Normalizat    1.3849        .23830        .27604E-03   -.42409E-03
  19  Prefactor     .92496        .17308        .24392E-03   -.54657E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.94671
  norm       = 0.0001
  norm       = 0.716051
  norm       = 1.07587
  norm       = 3.4717
  Prefactor  = 0.0001
  norm       = 11.4236
  Prefactor  = 20.3381
  norm       = 3.37528
  norm       = 0.0763727
  Prefactor  = 0.000100788
  norm       = 22.2158
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.38492
  Prefactor  = 0.924965
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.811     FROM HESSE     STATUS=OK           262 CALLS     2502 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6789        .21997E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.163        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .94671        24.070        .18139E-03   -1.5513    
   4  norm          .10000E-03    .56260        .12710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .71605        1.3626        .54543E-05   -1.5539    
   6  norm          1.0759        82.701        .25690E-03   -1.5501    
   7  norm          3.4717        3.5323        .63472E-05   -1.5335    
   8  Prefactor     .10000E-03    41.904        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.424        37.890        .23737E-04   -1.5032    
  10  Prefactor     20.338        19.269        .35537E-05   -1.4806    
  11  norm          3.3753        1.1948        .21637E-05   -1.5341    
  12  norm          .76373E-01    7.2458        .66515E-01   -1.5653    
  13  Prefactor     .10079E-03    171.67        .27659E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          22.216        5.9344        .33995E-05   -1.4765    
  15  norm          .10000E-03    6.4119        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.9091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.3144        .19355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3849        .23820        .55207E-04   -.81066    
  19  Prefactor     .92496        .17304        .48784E-04   -.95274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.81549e-09
Minuit parameter uncertainties:
  1  2.43304e-06
  2  5.2646e-05
  3  9.55104
  4  1.15283e-05
  5  1.36266
  6  18.8916
  7  3.53252
  8  0.000120592
  9  37.9698
  10  19.2749
  11  1.19481
  12  1.487
  13  0.0233265
  14  5.93451
  15  2.08656e-06
  16  2.97033e-06
  17  1.62495e-06
  18  0.238388
  19  0.173144
Done.

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

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  7.637e-02  1.487e+00  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  2.241e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.924e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  6.486e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
498    Prefactor:  9.250e-01  1.731e-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.385e+00  2.384e-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: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/598489/likelihoodResults_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.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) = 7557.81054508
delta logL = 7.00409846104e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7557.43215015
delta logL = 0.378464980809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29769       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3225       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95285       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=   7557.432     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      328 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29799        .46903        .57825E-03    .88518E-02
   2  alpha         5.0000        3.9275        .50000    ** at limit **
   3  Normalizat    1.3227        .23878        .28132E-03   -.89713E-04
   4  Prefactor     .95279        .17199        .24073E-03    .63756E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.297992
  alpha      = 5
  Normalizat = 1.32266
  Prefactor  = 0.952792
 **********
 **   18 **HESSE 
 **********

 FCN=   7557.432     FROM HESSE     STATUS=OK            31 CALLS      359 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29799        .44389        .11565E-03   -1.5599    
   2  alpha         5.0000        3.8167        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3227        .23937        .11253E-04   -.82893    
   4  Prefactor     .95279        .17229        .96291E-05   -.94320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25208e-11
Minuit parameter uncertainties:
  1  0.443899
  2  6.86644e-05
  3  0.239574
  4  0.172388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/598489': 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) = 7557.43214941
delta logL = 0.378465716549

Extracting fit parameters...

4FGL J0839.8+0105
   Spectrum: LogParabola
295         norm:  2.980e-01  4.439e-01  1.000e-04  1.000e+04 ( 1.000e-12)
296        alpha:  5.000e+00  6.866e-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:  9.528e-01  1.724e-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.323e+00  2.396e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/598489/cmap_HighResolution_292723201_292982401_4FGL_J0839.8+0105_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-08-30 03:02:23.707370', job_id='598489', GAL2='0.95', fit_tolerance='1e-08', EG2='1.32', EG='1.38', time_epoch_completed='1630317743.71', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.78e-01', ts2='0.82', photon_index_error='0.00', photon_index='2.24' WHERE bin_id='206' AND source_name='4FGL J0839.8+0105' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:02:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 598489: <4FGL_J0839.8+0105_daily_bin206> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0839.8+0105_daily_bin206 129.963 1.0877 292723201 292982401 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 :                                   731.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             240.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

