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


Performing analysis on: 4FGL_J1632.2+0854_daily_bin300
RA = 248.06, Dec = 8.9044
tmin = 317088001, tmax = 317347201
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='652742', job_status='RUN', time_executed='2021-09-14 19:48:18.459555', time_epoch_executed='1631674098.46' WHERE source_name='4FGL J1632.2+0854' and cadence='daily' and bin_id='300'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652742

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652742/ft1_4FGL_J1632.2+0854_daily_bin300.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652742/ft2_4FGL_J1632.2+0854_daily_bin300.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652742/ft1_4FGL_J1632.2+0854_daily_bin300.fits outfile=/scratch/kocevski/652742/ft1_filteredMKT_4FGL_J1632.2+0854_daily_bin300.fits ra=248.06 dec=8.9044 rad=12.0 tmin=317088001.0 tmax=317347201.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.91
user 3.63
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652742/ft2_4FGL_J1632.2+0854_daily_bin300.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/652742/ft1_filteredMKT_4FGL_J1632.2+0854_daily_bin300.fits evtable="EVENTS" outfile="/scratch/kocevski/652742/ft1_filtered_4FGL_J1632.2+0854_daily_bin300.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.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652742/ft1_filtered_4FGL_J1632.2+0854_daily_bin300.fits" evtable="EVENTS" scfile=/scratch/kocevski/652742/ft2_4FGL_J1632.2+0854_daily_bin300.fits sctable="SC_DATA" outfile=/scratch/kocevski/652742/ltcube_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.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/652742/ft2_4FGL_J1632.2+0854_daily_bin300.fits
.....................!
real 13.25
user 12.79
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652742/ft1_filtered_4FGL_J1632.2+0854_daily_bin300.fits evtable="EVENTS" scfile=/scratch/kocevski/652742/ft2_4FGL_J1632.2+0854_daily_bin300.fits sctable="SC_DATA" expcube=/scratch/kocevski/652742/ltcube_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.fits outfile=/scratch/kocevski/652742/expmap_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.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/652742/ltcube_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.fits
.....................!
real 193.25
user 185.92
sys 5.47

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/652742/ft1_filtered_4FGL_J1632.2+0854_daily_bin300.fits scfile=/scratch/kocevski/652742/ft2_4FGL_J1632.2+0854_daily_bin300.fits outfile=/scratch/kocevski/652742/cmap_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652742/ft1_filtered_4FGL_J1632.2+0854_daily_bin300.fits scfile=/scratch/kocevski/652742/ft2_4FGL_J1632.2+0854_daily_bin300.fits outfile=/scratch/kocevski/652742/cmap_HighResolution_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.6434       1.0000         .10000E-03   10000.    
     4 'norm      '    .94630       1.0000         .10000E-03   10000.    
     5 'norm      '    26.790       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17535E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0988       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10556E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.013       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.440       1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .97269       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=   8428.074     FROM MIGRAD    STATUS=CONVERGED    339 CALLS     1601 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2377        4.5776       -.77852E-07   -.21493E-03
   2  Prefactor     .10000E-03    21.816        .74647E-05** at limit **
   3  norm          6.6440        6.0292        .17445E-05   -.54329E-04
   4  norm          .94629        .99818       -.16781E-07    .10011E-03
   5  norm          26.793        16.800       -.22135E-06   -.36939E-05
   6  norm          .10000E-03    86.696        .94876E-04** at limit **
   7  Prefactor     .10000E-03    136.27       -.11199E-03** at limit **
   8  Prefactor     .10000E-03    18.544       -.42756E-05** at limit **
   9  Prefactor     5.0896        10.071       -.31929E-06   -.99886E-04
  10  Prefactor     .10000E-03    13.353        .39723E-06** at limit **
  11  Prefactor     .10000E-03    2.5660        .54714E-07** at limit **
  12  Prefactor     .10000E-03    5.5611        .15385E-06** at limit **
  13  Prefactor     .10000E-03    47.472       -.22717E-04** at limit **
  14  Prefactor     11.017        8.7805        .21963E-06   -.13113E-04
  15  Prefactor     13.445        16.803       -.42084E-06   -.11064E-04
  16  Normalizat    1.1666        .25149       -.48104E-06    .13156E-03
  17  Prefactor     .97264        .90068E-01    .47310E-07    .29171E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.23769
  Prefactor  = 0.0001
  norm       = 6.64403
  norm       = 0.946293
  norm       = 26.7927
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.08962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0172
  Prefactor  = 13.4448
  Normalizat = 1.16657
  Prefactor  = 0.972637
 **********
 **   18 **HESSE 
 **********

 FCN=   8428.074     FROM HESSE     STATUS=OK           221 CALLS     1822 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2377        4.5780        .16074E-03   -1.5208    
   2  Prefactor     .10000E-03    21.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.6440        6.0234        .15569E-03   -1.5192    
   4  norm          .94629        1.0013        .91557E-04   -1.5513    
   5  norm          26.793        16.860        .77398E-04   -1.4672    
   6  norm          .10000E-03    86.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    136.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0896        10.055        .17806E-03   -1.5257    
  10  Prefactor     .10000E-03    13.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.5916        .14357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7023        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.017        8.7782        .12072E-03   -1.5044    
  15  Prefactor     13.445        16.812        .10926E-03   -1.4974    
  16  Normalizat    1.1666        .29870        .39815E-03   -.87642    
  17  Prefactor     .97264        .10755        .15993E-03   -.93647    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10289e-10
Minuit parameter uncertainties:
  1  4.5783
  2  2.22597e-06
  3  6.02391
  4  1.00136
  5  16.8631
  6  2.23378e-05
  7  0.000429259
  8  1.56906e-05
  9  10.0582
  10  2.96623e-05
  11  2.16825e-06
  12  3.55416e-06
  13  4.56428e-05
  14  8.77921
  15  16.8179
  16  0.299141
  17  0.107575
Done.

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

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  5.090e+00  1.006e+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:  9.726e-01  1.076e-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.167e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/652742/likelihoodResults_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.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) = 8427.5035165
delta logL = 0.570314125511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8427.49825632
delta logL = 0.575574298431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0000       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6027       1.0000          .0000       10.000    
     3 'Normalizat'    1.0943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98737       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=   8427.498     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      307 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0010        14.479        .13166E-01    .13061E-02
   2  Index         3.6027        2.4911        .99968E-01    .24310E-03
   3  Normalizat    1.0941        .59252E-01    .92447E-01    .25618E-04
   4  Prefactor     .98741        .21833E-01    .46109E-01   -.43468E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.001
  Index      = 3.60268
  Normalizat = 1.09413
  Prefactor  = 0.987415
 **********
 **   18 **HESSE 
 **********

 FCN=   8427.498     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      340 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0010        39.122        .80979E-04   -1.5508    
   2  Index         3.6027        6.7771        .58003E-02   -.28324    
   3  Normalizat    1.0941        .28219        .40949E-03   -.89940    
   4  Prefactor     .98741        .10082        .15881E-03   -.93150    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.98995e-09
Minuit parameter uncertainties:
  1  12.5239
  2  5.51184
  3  0.282579
  4  0.100838
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652742': 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) = 8427.49825575
delta logL = 0.575574871964

Extracting fit parameters...

4FGL J1632.2+0854
   Spectrum: PowerLaw
243    Prefactor:  1.001e+00  1.252e+01  1.000e-04  1.000e+04 ( 1.000e-13)
244        Index:  3.603e+00  5.512e+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:  9.874e-01  1.008e-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.094e+00  2.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 248.060 8.904
Photon Index (Free Index): 3.60 +/- 5.51
Photon Flux (Free Index): 7.90e-08 +/- 8.55e-08
Energy Flux (Free Index): 1.28e-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/652742/cmap_HighResolution_317088001_317347201_4FGL_J1632.2+0854_daily_bin300.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', comment='SUCCESS', energy_flux2='1.28e-05', dlogl='5.76e-01', photon_flux2='7.90e-08', job_status='DONE', time_completed='2021-09-14 19:58:55.787112', photon_index_error2='5.51', photon_index2='3.60', ts='0.30', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.49e-05', EG='1.17', time_epoch_completed='1631674735.79', return_code='0', job_id='652742', GAL2='0.99', EG2='1.09', return_code2='102', photon_flux_error2='8.55e-08', ts2='1.53', photon_index='2.28' WHERE bin_id='300' AND source_name='4FGL J1632.2+0854' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:58:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 652742: <4FGL_J1632.2+0854_daily_bin300> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1632.2+0854_daily_bin300 248.06 8.9044 317088001 317347201 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 :                                   627.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            801 sec.

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

