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


Performing analysis on: 4FGL_J1632.2+0854_daily_bin171
RA = 248.06, Dec = 8.9044
tmin = 283651201, tmax = 283910401
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='652544', job_status='RUN', time_executed='2021-09-14 19:46:29.444729', time_epoch_executed='1631673989.44' WHERE source_name='4FGL J1632.2+0854' and cadence='daily' and bin_id='171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652544

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652544/ft1_4FGL_J1632.2+0854_daily_bin171.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652544/ft1_4FGL_J1632.2+0854_daily_bin171.fits outfile=/scratch/kocevski/652544/ft1_filteredMKT_4FGL_J1632.2+0854_daily_bin171.fits ra=248.06 dec=8.9044 rad=12.0 tmin=283651201.0 tmax=283910401.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.70
user 3.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits" evtable="EVENTS" scfile=/scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits sctable="SC_DATA" outfile=/scratch/kocevski/652544/ltcube_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.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/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits
.....................!
real 13.13
user 12.74
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits sctable="SC_DATA" expcube=/scratch/kocevski/652544/ltcube_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.fits outfile=/scratch/kocevski/652544/expmap_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.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/652544/ltcube_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.fits
.....................!
real 191.53
user 186.28
sys 4.86

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/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits scfile=/scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits outfile=/scratch/kocevski/652544/cmap_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.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/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits scfile=/scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits outfile=/scratch/kocevski/652544/cmap_HighResolution_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits evtable="EVENTS" scfile=/scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652544/Model_4FGL_J1632.2+0854_daily_bin171.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/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits.....................!
real 82.77
user 81.28
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits', '/scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits', expMap='/scratch/kocevski/652544/expmap_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.fits', expCube='/scratch/kocevski/652544/ltcube_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652544/Model_4FGL_J1632.2+0854_daily_bin171.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/652544/ft1_filtered_4FGL_J1632.2+0854_daily_bin171.fits
Spacecraft file(s): /scratch/kocevski/652544/ft2_4FGL_J1632.2+0854_daily_bin171.fits
Exposure map: /scratch/kocevski/652544/expmap_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.fits
Exposure cube: /scratch/kocevski/652544/ltcube_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652544/Model_4FGL_J1632.2+0854_daily_bin171.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) = 10672.9416822

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.385       1.0000         .10000E-03   10000.    
     3 'norm      '    20.483       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1950       1.0000         .10000E-03   10000.    
     5 'norm      '    17.094       1.0000         .10000E-03   10000.    
     6 'norm      '    84.683       1.0000         .10000E-03   10000.    
     7 'Prefactor '    63.131       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.119       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.8935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .19887E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    .93294       1.0000         .10000E-01   10.000    
    17 'Prefactor '    1.1044       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=   10672.93     FROM MIGRAD    STATUS=CONVERGED    329 CALLS     1601 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.4924        .90712E-02** at limit **
   2  Prefactor     45.385        58.173        .14878E-02    .30500E-03
   3  norm          20.482        10.267        .22125E-02    .33003E-03
   4  norm          2.1950        1.3383        .69438E-02   -.34851E-03
   5  norm          17.093        15.178        .24218E-02    .24795E-04
   6  norm          84.683        93.425        .10913E-02   -.91880E-05
   7  Prefactor     63.130        62.762        .12626E-02    .57369E-03
   8  Prefactor     .10000E-03    34.852        .90712E-02** at limit **
   9  Prefactor     10.119        10.627        .31492E-02   -.20245E-03
  10  Prefactor     .10000E-03    2.1342        .90712E-02** at limit **
  11  Prefactor     .10000E-03    2.4874        .90712E-02** at limit **
  12  Prefactor     8.8934        7.1106        .33601E-02    .43568E-02
  13  Prefactor     .10002E-03    22.627        .90712E-02** at limit **
  14  Prefactor     .10016E-03    3.5421        .91221E-01** at limit **
  15  Prefactor     .10000E-03    6.4653        .90712E-02** at limit **
  16  Normalizat    .93303        .25853        .10751       -.15037E-04
  17  Prefactor     1.1044        .89815E-01    .37421E-01   -.31744E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 45.3852
  norm       = 20.4822
  norm       = 2.19501
  norm       = 17.0932
  norm       = 84.6833
  Prefactor  = 63.1304
  Prefactor  = 0.000100004
  Prefactor  = 10.1187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.89341
  Prefactor  = 0.000100017
  Prefactor  = 0.000100158
  Prefactor  = 0.0001
  Normalizat = 0.933028
  Prefactor  = 1.10439
 **********
 **   18 **HESSE 
 **********

 FCN=   10672.93     FROM HESSE     STATUS=OK           221 CALLS     1822 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5578        .31841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.385        58.175        .59514E-04   -1.4360    
   3  norm          20.482        10.270        .88500E-04   -1.4803    
   4  norm          2.1950        1.3399        .90169E-04   -1.5412    
   5  norm          17.093        15.188        .96872E-04   -1.4881    
   6  norm          84.683        93.456        .43653E-04   -1.3865    
   7  Prefactor     63.130        62.748        .50504E-04   -1.4117    
   8  Prefactor     .10000E-03    34.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.119        10.612        .12597E-03   -1.5072    
  10  Prefactor     .10000E-03    2.1377        .14736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5117        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8934        7.0718        .67201E-03   -1.5111    
  13  Prefactor     .10002E-03    22.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10016E-03    66.887        .36975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.4763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    .93303        .29324        .47654E-03   -.95309    
  17  Prefactor     1.1044        .10316        .15941E-03   -.89327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.15352e-09
Minuit parameter uncertainties:
  1  7.49246e-07
  2  58.2474
  3  10.2708
  4  1.3399
  5  15.1911
  6  93.6191
  7  62.8141
  8  0.000723148
  9  10.6141
  10  5.92415e-06
  11  3.34835e-05
  12  7.07251
  13  0.00125894
  14  0.00651122
  15  1.06737e-05
  16  0.293742
  17  0.103174
Done.

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

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  1.012e+01  1.061e+01  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.104e+00  1.032e-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:  9.330e-01  2.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 248.060 8.904
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 4.47e-08
Energy Flux (Fixed Index): 1.66e-05 +/- 1.74e-05

TS (Fixed Index): 1.21
Ra Dec: 248.060 8.904
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652544/likelihoodResults_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.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) = 10672.3990524
delta logL = 0.527567287132

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10672.3947789
delta logL = 0.531840843831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6787       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9924       1.0000          .0000       10.000    
     3 'Normalizat'    .88026       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1146       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=   10672.39     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      279 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6812        72.060        .46512E-02    .66598E-03
   2  Index         2.9918        2.7715        .10758        .27529E-03
   3  Normalizat    .88021        .87146E-01    .11033        .43027E-04
   4  Prefactor     1.1146        .29027E-01    .37058E-01   -.22045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.68118
  Index      = 2.99177
  Normalizat = 0.88021
  Prefactor  = 1.11458
 **********
 **   18 **HESSE 
 **********

 FCN=   10672.39     FROM HESSE     STATUS=OK            33 CALLS      312 TOTAL
                     EDM=   .88E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6812        12.164        .15858E-03   -1.5275    
   2  Index         2.9918        1.2097        .60468E-02   -.41331    
   3  Normalizat    .88021        .29069        .48913E-03   -.97159    
   4  Prefactor     1.1146        .10369        .15871E-03   -.89002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.84521e-08
Minuit parameter uncertainties:
  1  12.1701
  2  1.22421
  3  0.291207
  4  0.103704
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652544': 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) = 10672.3947782
delta logL = 0.531841546113

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  4.681e+00  1.217e+01  1.000e-04  1.000e+04 ( 1.000e-13)
244        Index:  2.992e+00  1.224e+00  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.115e+00  1.037e-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:  8.802e-01  2.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 248.060 8.904
Photon Index (Free Index): 2.99 +/- 1.22
Photon Flux (Free Index): 8.96e-08 +/- 7.19e-08
Energy Flux (Free Index): 1.79e-05 +/- 1.49e-05

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/652544/cmap_HighResolution_283651201_283910401_4FGL_J1632.2+0854_daily_bin171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='1.79e-05', photon_flux_error='4.47e-08', dlogl='5.32e-01', energy_flux='1.66e-05', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-14 19:58:06.226371', photon_index_error2='1.22', photon_index2='2.99', ts='1.21', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.49e-05', EG='0.93', time_epoch_completed='1631674686.23', return_code='0', job_id='652544', GAL2='1.11', EG2='0.88', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='7.19e-08', ts2='2.33', photon_index='2.28' WHERE bin_id='171' AND source_name='4FGL J1632.2+0854' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:58:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 652544: <4FGL_J1632.2+0854_daily_bin171> in cluster <slac> Done

Job <4FGL_J1632.2+0854_daily_bin171> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 19:45:22 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 19:46:15 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:15 2021
Terminated at Tue Sep 14 19:58:07 2021
Results reported at Tue Sep 14 19:58:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1632.2+0854_daily_bin171 248.06 8.9044 283651201 283910401 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 :                                   689.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             349.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            765 sec.

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

