/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 23 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 = 7432
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0840.8+1317_daily_bin42
RA = 130.222, Dec = 13.2871
tmin = 250214401, tmax = 250473601
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='610145', job_status='RUN', time_executed='2021-08-30 03:16:19.723950', time_epoch_executed='1630318579.72' WHERE source_name='4FGL J0840.8+1317' and cadence='daily' and bin_id='42'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/610145

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/610145/ft1_4FGL_J0840.8+1317_daily_bin42.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/610145/ft1_4FGL_J0840.8+1317_daily_bin42.fits outfile=/scratch/kocevski/610145/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin42.fits ra=130.222 dec=13.2871 rad=12.0 tmin=250214401.0 tmax=250473601.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 2.58
user 1.25
sys 1.01

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.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/610145/ft1_filteredMKT_4FGL_J0840.8+1317_daily_bin42.fits evtable="EVENTS" outfile="/scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.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 1.50
user 0.33
sys 0.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits" evtable="EVENTS" scfile=/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits sctable="SC_DATA" outfile=/scratch/kocevski/610145/ltcube_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.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/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits
.....................!
real 20.12
user 13.32
sys 1.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits sctable="SC_DATA" expcube=/scratch/kocevski/610145/ltcube_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.fits outfile=/scratch/kocevski/610145/expmap_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.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/610145/ltcube_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.fits
.....................!
real 192.99
user 185.26
sys 5.84

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J0840.8+1317 @ 130.222 13.2871

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits scfile=/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits outfile=/scratch/kocevski/610145/cmap_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.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=130.222 yref=13.2871 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 1.66
user 0.36
sys 0.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits scfile=/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits outfile=/scratch/kocevski/610145/cmap_HighResolution_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.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=130.222 yref=13.2871 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 1.47
user 0.38
sys 0.97

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits evtable="EVENTS" scfile=/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/610145/Model_4FGL_J0840.8+1317_daily_bin42.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/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits.....................!
real 54.03
user 49.49
sys 2.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits', '/scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits', expMap='/scratch/kocevski/610145/expmap_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.fits', expCube='/scratch/kocevski/610145/ltcube_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/610145/Model_4FGL_J0840.8+1317_daily_bin42.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0840.8+1317'

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  5.096e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/610145/ft1_filtered_4FGL_J0840.8+1317_daily_bin42.fits
Spacecraft file(s): /scratch/kocevski/610145/ft2_4FGL_J0840.8+1317_daily_bin42.fits
Exposure map: /scratch/kocevski/610145/expmap_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.fits
Exposure cube: /scratch/kocevski/610145/ltcube_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/610145/Model_4FGL_J0840.8+1317_daily_bin42.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) = 4784.27252605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2952       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.4846       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2131       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.299       1.0000         .10000E-03   10000.    
     7 'norm      '    1.5886       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .87805       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.840       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6252       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    35.308       1.0000         .10000E-03   10000.    
    16 'Normalizat'    .86192       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .95165       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4784.255     FROM MIGRAD    STATUS=CONVERGED    325 CALLS     1355 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2869        14.795       -.15686E-04    .17990E-03
   2  Prefactor     .10000E-03    66.490        .57588E-05** at limit **
   3  norm          .10000E-03    102.71       -.69712E-05** at limit **
   4  norm          5.4829        15.927       -.19411E-05    .10758E-04
   5  Prefactor     2.2117        100.33       -.38281E-05    .11682E-05
   6  Prefactor     15.299        13.145       -.11082E-05    .13014E-03
   7  norm          1.5890        1.2524       -.82857E-07   -.15728E-03
   8  norm          .10000E-03    .25570       -.13651E-07** at limit **
   9  Prefactor     .10000E-03    8.8445       -.18330E-07** at limit **
  10  Prefactor     .87811        6.1893       -.30733E-05   -.92288E-03
  11  Prefactor     14.828        24.343       -.16491E-05    .34549E-04
  12  norm          1.6252        .75969       -.35006E-07    .14734E-03
  13  Prefactor     .10000E-03    7.1252       -.34174E-07** at limit **
  14  norm          .10000E-03    3.4398       -.23793E-07** at limit **
  15  norm          35.308        36.945       -.14364E-06    .20007E-05
  16  Normalizat    .86195        .18497        .19428E-05    .95335E-04
  17  Prefactor     .95164        .15503        .55192E-06    .15245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.28687
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 5.48288
  Prefactor  = 2.21174
  Prefactor  = 15.2987
  norm       = 1.58899
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.878114
  Prefactor  = 14.8282
  norm       = 1.62519
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 35.3076
  Normalizat = 0.861955
  Prefactor  = 0.951642
 **********
 **   18 **HESSE 
 **********

 FCN=   4784.255     FROM HESSE     STATUS=OK           221 CALLS     1576 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2869        14.511        .19439E-03   -1.5294    
   2  Prefactor     .10000E-03    66.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    102.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.4829        15.833        .17157E-03   -1.5240    
   5  Prefactor     2.2117        99.360        .27648E-03   -1.5411    
   6  Prefactor     15.299        13.129        .10240E-03   -1.4925    
   7  norm          1.5890        1.2412        .66482E-04   -1.5456    
   8  norm          .10000E-03    .25987        .34140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.9770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .87811        7.0800        .35225E-03   -1.5521    
  11  Prefactor     14.828        24.329        .10397E-03   -1.4938    
  12  norm          1.6252        .75942        .39684E-04   -1.5453    
  13  Prefactor     .10000E-03    7.1503        .18028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.4540        .12529E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          35.308        36.950        .67443E-04   -1.4519    
  16  Normalizat    .86195        .21743        .24858E-03   -.97810    
  17  Prefactor     .95164        .18289        .20321E-03   -.94359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63402e-09
Minuit parameter uncertainties:
  1  14.5229
  2  0.000304241
  3  0.000516944
  4  15.8452
  5  29.7004
  6  13.1319
  7  1.24122
  8  6.16748e-07
  9  1.0573e-05
  10  4.98731
  11  24.3455
  12  0.759425
  13  8.93415e-06
  14  3.13961e-06
  15  36.9736
  16  0.217646
  17  0.183011
Done.

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

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  1.483e+01  2.435e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  2.494e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.516e-01  1.830e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  8.620e-01  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.55
Ra Dec: 130.222 13.287
Photon Flux Upper Limit: 9.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/610145/likelihoodResults_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.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) = 4784.13516451
delta logL = 0.119683566365

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4784.13406927
delta logL = 0.120778806833

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.112       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9720       1.0000          .0000       10.000    
     3 'Normalizat'    .87195       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   4784.134     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      289 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.114        29.784        .89311E-04   -.63408E-03
   2  Index         1.9719        .92130        .12467E-01   -.21548E-03
   3  Normalizat    .87196        .21253        .24725E-03    .12907E-03
   4  Prefactor     .94503        .18261        .20378E-03    .18127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.1139
  Index      = 1.97189
  Normalizat = 0.871965
  Prefactor  = 0.945026
 **********
 **   18 **HESSE 
 **********

 FCN=   4784.134     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.114        29.810        .17862E-04   -1.4811    
   2  Index         1.9719        .92226        .49870E-03   -.65055    
   3  Normalizat    .87196        .21268        .98902E-05   -.97452    
   4  Prefactor     .94503        .18275        .40756E-04   -.94585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56559e-09
Minuit parameter uncertainties:
  1  29.8319
  2  0.930723
  3  0.21288
  4  0.182871
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/610145': 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) = 4784.13406923
delta logL = 0.120778844531

Extracting fit parameters...

4FGL J0840.8+1317
   Spectrum: PowerLaw
297    Prefactor:  2.011e+01  2.983e+01  1.000e-04  1.000e+04 ( 1.000e-13)
298        Index:  1.972e+00  9.307e-01  0.000e+00  1.000e+01 (-1.000e+00)
299        Scale:  7.999e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.450e-01  1.829e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  8.720e-01  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
Ra Dec: 130.222 13.287

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/610145/cmap_HighResolution_250214401_250473601_4FGL_J0840.8+1317_daily_bin42.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.88e-08', time_completed='2021-08-30 03:26:52.570473', job_id='610145', GAL2='0.95', fit_tolerance='1e-08', EG2='0.87', EG='0.86', time_epoch_completed='1630319212.57', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.21e-01', ts2='0.80', photon_index_error='0.00', photon_index='2.49' WHERE bin_id='42' AND source_name='4FGL J0840.8+1317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 03:26:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 610145: <4FGL_J0840.8+1317_daily_bin42> in cluster <slac> Done

Job <4FGL_J0840.8+1317_daily_bin42> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 03:15:33 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 03:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 03:15:34 2021
Terminated at Mon Aug 30 03:26:53 2021
Results reported at Mon Aug 30 03:26:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0840.8+1317_daily_bin42 130.222 13.2871 250214401 250473601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0840.8+1317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   480.41 sec.
    Max Memory :                                 1128 MB
    Average Memory :                             327.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            680 sec.

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

