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


Performing analysis on: 4FGL_J1632.2+0854_daily_bin160
RA = 248.06, Dec = 8.9044
tmin = 280800001, tmax = 281059201
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='652528', job_status='RUN', time_executed='2021-09-14 19:50:00.472260', time_epoch_executed='1631674200.47' WHERE source_name='4FGL J1632.2+0854' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652528/ft1_4FGL_J1632.2+0854_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652528/ft1_4FGL_J1632.2+0854_daily_bin160.fits outfile=/scratch/kocevski/652528/ft1_filteredMKT_4FGL_J1632.2+0854_daily_bin160.fits ra=248.06 dec=8.9044 rad=12.0 tmin=280800001.0 tmax=281059201.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 3.84
user 3.55
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.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/652528/ft1_filteredMKT_4FGL_J1632.2+0854_daily_bin160.fits evtable="EVENTS" outfile="/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.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 0.51
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/652528/ltcube_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.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/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits
.....................!
real 14.26
user 13.90
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/652528/ltcube_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.fits outfile=/scratch/kocevski/652528/expmap_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.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/652528/ltcube_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.fits
.....................!
real 192.14
user 186.68
sys 5.03

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
Extended source FHES J1723.5-0501 in ROI with RadialGaussian spatial model.
Added 164 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1632.2+0854 @ 248.06 8.9044

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits scfile=/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits outfile=/scratch/kocevski/652528/cmap_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.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=248.06 yref=8.9044 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 0.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits scfile=/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits outfile=/scratch/kocevski/652528/cmap_HighResolution_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.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=248.06 yref=8.9044 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 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652528/Model_4FGL_J1632.2+0854_daily_bin160.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 FHES J1723.5-0501
adding source GAL_V02
Working on...
/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits.....................!
real 78.49
user 77.04
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits', '/scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits', expMap='/scratch/kocevski/652528/expmap_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.fits', expCube='/scratch/kocevski/652528/ltcube_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652528/Model_4FGL_J1632.2+0854_daily_bin160.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1632.2+0854'

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  1.570e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
244        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
245        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/652528/ft1_filtered_4FGL_J1632.2+0854_daily_bin160.fits
Spacecraft file(s): /scratch/kocevski/652528/ft2_4FGL_J1632.2+0854_daily_bin160.fits
Exposure map: /scratch/kocevski/652528/expmap_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.fits
Exposure cube: /scratch/kocevski/652528/ltcube_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652528/Model_4FGL_J1632.2+0854_daily_bin160.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) = 9863.02167057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.912       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5414       1.0000         .10000E-03   10000.    
     4 'norm      '    2.4189       1.0000         .10000E-03   10000.    
     5 'norm      '    13.906       1.0000         .10000E-03   10000.    
     6 'norm      '    .73183E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10297E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.454       1.0000         .10000E-03   10000.    
    13 'Prefactor '    84.198       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4236       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.280       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.2144       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1724       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9863.008     FROM MIGRAD    STATUS=CONVERGED    312 CALLS     1783 TOTAL
                     EDM=   .34E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9148        .64854E-09** at limit **
   2  Prefactor     27.910        41.382        .28552E-06    .19954E-07
   3  norm          5.5410        8.1682        .67930E-07   -.21489E-05
   4  norm          2.4189        1.3300        .11922E-08   -.40470E-05
   5  norm          13.905        14.597        .15485E-06   -.17829E-05
   6  norm          .10000E-03    1681.4        .37983E-04** at limit **
   7  Prefactor     .10000E-03    21.314       -.83523E-08** at limit **
   8  Prefactor     37.017        33.281        .18178E-05    .12323E-04
   9  Prefactor     .10000E-03    6.6474       -.48714E-06** at limit **
  10  Prefactor     .10000E-03    6.4204        .16732E-06** at limit **
  11  Prefactor     .10000E-03    5.5039       -.29562E-07** at limit **
  12  Prefactor     11.454        6.9243       -.21860E-08   -.15491E-05
  13  Prefactor     84.191        69.325        .17526E-06    .89029E-06
  14  Prefactor     4.4231        8.5074        .17010E-05   -.54855E-05
  15  Prefactor     14.281        13.220        .11802E-06   -.13090E-05
  16  Normalizat    1.2146        .27850       -.15045E-06   -.20221E-04
  17  Prefactor     1.1723        .10131       -.31489E-06   -.54421E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 27.9104
  norm       = 5.54096
  norm       = 2.41894
  norm       = 13.9047
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 37.0168
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4545
  Prefactor  = 84.1905
  Prefactor  = 4.42309
  Prefactor  = 14.2807
  Normalizat = 1.21464
  Prefactor  = 1.1723
 **********
 **   18 **HESSE 
 **********

 FCN=   9863.008     FROM HESSE     STATUS=OK           225 CALLS     2008 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.910        41.393        .75830E-04   -1.4651    
   3  norm          5.5410        8.1679        .17067E-03   -1.5237    
   4  norm          2.4189        1.3310        .82496E-04   -1.5397    
   5  norm          13.905        14.657        .10741E-03   -1.4962    
   6  norm          .10000E-03    1685.9        .41909E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.017        33.466        .65860E-04   -1.4490    
   9  Prefactor     .10000E-03    6.7223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.5264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.454        6.9229        .11837E-03   -1.5031    
  13  Prefactor     84.191        69.391        .43778E-04   -1.3870    
  14  Prefactor     4.4231        8.5230        .95735E-03   -1.5287    
  15  Prefactor     14.281        13.220        .52996E-03   -1.4952    
  16  Normalizat    1.2146        .32220        .44523E-03   -.86152    
  17  Prefactor     1.1723        .11735        .17019E-03   -.87188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80757e-11
Minuit parameter uncertainties:
  1  2.13396e-06
  2  41.4356
  3  8.16951
  4  1.33106
  5  14.6611
  6  0.00385212
  7  9.35091e-07
  8  33.4827
  9  2.03626e-05
  10  4.56482e-06
  11  2.79942e-06
  12  6.92339
  13  69.4579
  14  8.5253
  15  13.2226
  16  0.322728
  17  0.117376
Done.

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

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  1.000e-04  2.036e-05  1.000e-04  1.000e+04 ( 1.000e-13)
244        Index:  2.284e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
245        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.172e+00  1.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.215e+00  3.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 248.060 8.904
Photon Flux Upper Limit: 8.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652528/likelihoodResults_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.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) = 9863.0089405
delta logL = -0.000708949104592

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9863.00823167
delta logL = -1.21719494928e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2820       1.0000          .0000       10.000    
     3 'Normalizat'    1.2146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1723       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5520E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9863.008     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      209 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1133        .90712E-02** at limit **
   2  Index         2.2802        6.0479        .50000        .22266E-05
   3  Normalizat    1.2146        .45621E-02    .10048        .54648E-04
   4  Prefactor     1.1723        .17244E-02    .35320E-01    .62637E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.28018
  Normalizat = 1.21464
  Prefactor  = 1.1723
 **********
 **   18 **HESSE 
 **********

 FCN=   9863.008     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      242 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    73.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2802        8.3296        .50000       -.57515    
   3  Normalizat    1.2146        .22336E-01    .44523E-03   -.86152    
   4  Prefactor     1.1723        .84661E-02    .17019E-03   -.87188    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.74272e-08
Minuit parameter uncertainties:
  1  2.57328e-06
  2  409.995
  3  0.0223358
  4  0.00846607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652528': 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): 102
logL (Free Index) = 9863.00823155
delta logL = 2.01907823794e-09

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  1.000e-04  2.573e-06  1.000e-04  1.000e+04 ( 1.000e-13)
244        Index:  2.280e+00  4.100e+02  0.000e+00  1.000e+01 (-1.000e+00)
245        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
549    Prefactor:  1.172e+00  8.466e-03  0.000e+00  1.000e+01 ( 1.000e+00)
550        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
551        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.215e+00  2.234e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 248.060 8.904

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/652528/cmap_HighResolution_280800001_281059201_4FGL_J1632.2+0854_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.62e-03', job_status='DONE', photon_flux_upper_limit='8.64e-08', time_completed='2021-09-14 20:01:36.661196', job_id='652528', GAL2='1.17', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1631674896.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='2.02e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='160' AND source_name='4FGL J1632.2+0854' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 20:01:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 652528: <4FGL_J1632.2+0854_daily_bin160> in cluster <slac> Done

Job <4FGL_J1632.2+0854_daily_bin160> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 19:45:21 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 19:46:10 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 19:46:10 2021
Terminated at Tue Sep 14 20:01:37 2021
Results reported at Tue Sep 14 20:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1632.2+0854_daily_bin160 248.06 8.9044 280800001 281059201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1632.2+0854 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   694.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            976 sec.

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

