/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 91 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 = 7404
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1039
RA = 247.804, Dec = 10.7753
tmin = 508636801, tmax = 508896001
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='648053', job_status='RUN', time_executed='2021-09-14 19:32:27.068388', time_epoch_executed='1631673147.07' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1039'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648053

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648053/ft1_4FGL_J1631.2+1046_daily_bin1039.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648053/ft1_4FGL_J1631.2+1046_daily_bin1039.fits outfile=/scratch/kocevski/648053/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1039.fits ra=247.804 dec=10.7753 rad=12.0 tmin=508636801.0 tmax=508896001.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.80
user 3.56
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.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/648053/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1039.fits evtable="EVENTS" outfile="/scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits" evtable="EVENTS" scfile=/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits sctable="SC_DATA" outfile=/scratch/kocevski/648053/ltcube_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.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/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits
.....................!
real 14.35
user 13.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits sctable="SC_DATA" expcube=/scratch/kocevski/648053/ltcube_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.fits outfile=/scratch/kocevski/648053/expmap_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.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/648053/ltcube_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.fits
.....................!
real 190.91
user 186.03
sys 4.17

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 168 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 J1631.2+1046 @ 247.804 10.7753

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits scfile=/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits outfile=/scratch/kocevski/648053/cmap_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.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=247.804 yref=10.7753 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits scfile=/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits outfile=/scratch/kocevski/648053/cmap_HighResolution_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.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=247.804 yref=10.7753 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits evtable="EVENTS" scfile=/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/648053/Model_4FGL_J1631.2+1046_daily_bin1039.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/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits.....................!
real 83.25
user 81.68
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits', '/scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits', expMap='/scratch/kocevski/648053/expmap_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.fits', expCube='/scratch/kocevski/648053/ltcube_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648053/Model_4FGL_J1631.2+1046_daily_bin1039.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1631.2+1046'

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  8.500e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  8.952e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/648053/ft1_filtered_4FGL_J1631.2+1046_daily_bin1039.fits
Spacecraft file(s): /scratch/kocevski/648053/ft2_4FGL_J1631.2+1046_daily_bin1039.fits
Exposure map: /scratch/kocevski/648053/expmap_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.fits
Exposure cube: /scratch/kocevski/648053/ltcube_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648053/Model_4FGL_J1631.2+1046_daily_bin1039.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) = 10497.8750985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    9.9063       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9305       1.0000         .10000E-03   10000.    
     7 'norm      '    .51110E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    57.972       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34865E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    109.28       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8661       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.282       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.140       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .97748       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0409       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10497.85     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2232 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .63176        .68127E-07** at limit **
   2  Prefactor     .10000E-03    15.879        .55343E-06** at limit **
   3  norm          .10000E-03    2.3560        .54500E-07** at limit **
   4  Prefactor     .10000E-03    35.430       -.17604E-05** at limit **
   5  norm          9.9100        8.5469       -.18050E-05   -.57625E-04
   6  norm          2.9307        1.3738        .12311E-06    .27160E-03
   7  norm          .11530E-03    7.1594       -.83922E-06** at limit **
   8  norm          57.957        59.329       -.75481E-05   -.63857E-05
   9  Prefactor     .10000E-03    20.378       -.44824E-06** at limit **
  10  Prefactor     .10005E-03    249.33        .21800E-03** at limit **
  11  Prefactor     109.28        47.992        .34097E-06   -.59598E-04
  12  Prefactor     3.8875        13.023        .32512E-05   -.19692E-03
  13  Prefactor     .10000E-03    2.6758        .12172E-09** at limit **
  14  Prefactor     .10000E-03    1.3581        .31341E-07** at limit **
  15  Prefactor     .10000E-03    1.9783        .11571E-07** at limit **
  16  Prefactor     .10000E-03    24.606        .20875E-05** at limit **
  17  Prefactor     72.275        78.992       -.72834E-05   -.78569E-05
  18  Prefactor     5.0729        8.6644        .95632E-06   -.22057E-03
  19  Prefactor     12.137        15.384        .15192E-05   -.38106E-04
  20  Normalizat    .97767        .23701        .80989E-06   -.40634E-03
  21  Prefactor     1.0408        .88478E-01   -.12039E-06   -.90056E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.91
  norm       = 2.93068
  norm       = 0.000115295
  norm       = 57.9566
  Prefactor  = 0.0001
  Prefactor  = 0.000100053
  Prefactor  = 109.277
  Prefactor  = 3.8875
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 72.2753
  Prefactor  = 5.07286
  Prefactor  = 12.1375
  Normalizat = 0.977671
  Prefactor  = 1.04085
 **********
 **   18 **HESSE 
 **********

 FCN=   10497.85     FROM HESSE     STATUS=OK           317 CALLS     2549 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .63397        .79515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.4346        .30707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          9.9100        8.5573        .12731E-03   -1.5078    
   6  norm          2.9307        1.3742        .79588E-04   -1.5366    
   7  norm          .11530E-03    8.0811        .84396E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          57.957        59.348        .52690E-04   -1.4184    
   9  Prefactor     .10000E-03    20.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10005E-03    249.75        .21325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     109.28        47.558        .38475E-04   -1.3613    
  12  Prefactor     3.8875        12.847        .20523E-03   -1.5314    
  13  Prefactor     .10000E-03    2.6830        .16358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.3642        .11658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.9875        .14069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.275        78.789        .47221E-04   -1.4006    
  18  Prefactor     5.0729        8.6281        .17849E-03   -1.5257    
  19  Prefactor     12.137        15.386        .11497E-03   -1.5011    
  20  Normalizat    .97767        .27617        .43220E-03   -.93782    
  21  Prefactor     1.0408        .10428        .16171E-03   -.91380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04129e-09
Minuit parameter uncertainties:
  1  1.35503e-06
  2  5.32543e-06
  3  1.21893e-06
  4  8.63517e-06
  5  8.55832
  6  1.3742
  7  0.0222384
  8  59.4084
  9  8.21845e-06
  10  0.00728041
  11  47.5745
  12  12.8557
  13  1.40071e-05
  14  2.67746e-06
  15  3.87348e-06
  16  1.30597e-05
  17  78.9033
  18  8.63019
  19  15.391
  20  0.276577
  21  0.104304
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  1.093e+02  4.757e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.463e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
256        Scale:  8.952e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.041e+00  1.043e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.777e-01  2.766e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.25
Ra Dec: 247.804 10.775
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 1.65e-07 +/- 7.18e-08
Energy Flux (Fixed Index): 5.00e-05 +/- 2.18e-05

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) = 10497.8099724
delta logL = 0.0418836393528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10497.8067555
delta logL = 0.0451005163686

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.714       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5743       1.0000          .0000       10.000    
     3 'Normalizat'    .96008       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0453       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+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=   10497.81     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      291 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.752        54.748        .20130E-03    .86975E-04
   2  Index         2.5748        .39963        .51120E-02    .71094E-03
   3  Normalizat    .95997        .27540        .43568E-03   -.56833E-04
   4  Prefactor     1.0452        .10424        .16140E-03    .99600E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.7521
  Index      = 2.57483
  Normalizat = 0.959972
  Prefactor  = 1.04524
 **********
 **   18 **HESSE 
 **********

 FCN=   10497.81     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.752        52.527        .80518E-05   -1.3707    
   2  Index         2.5748        .38296        .10224E-02   -.50640    
   3  Normalizat    .95997        .27521        .17427E-04   -.94384    
   4  Prefactor     1.0452        .10420        .64559E-05   -.91236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80533e-11
Minuit parameter uncertainties:
  1  52.5512
  2  0.383451
  3  0.275613
  4  0.104219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648053': 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) = 10497.8067513
delta logL = 0.045104683697

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  9.975e+01  5.255e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.575e+00  3.835e-01  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  8.952e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  1.045e+00  1.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
562        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
563        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  9.600e-01  2.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.36
Ra Dec: 247.804 10.775
Photon Index (Free Index): 2.57 +/- 0.38
Photon Flux (Free Index): 1.79e-07 +/- 8.24e-08
Energy Flux (Free Index): 4.81e-05 +/- 1.98e-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/648053/cmap_HighResolution_508636801_508896001_4FGL_J1631.2+1046_daily_bin1039.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.65e-07', energy_flux2='4.81e-05', photon_flux_error='7.18e-08', dlogl='4.51e-02', energy_flux='5.00e-05', photon_flux2='1.79e-07', job_status='DONE', time_completed='2021-09-14 19:45:50.745886', photon_index_error2='0.38', photon_index2='2.57', ts='11.25', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='0.98', time_epoch_completed='1631673950.75', return_code='0', job_id='648053', GAL2='1.05', EG2='0.96', return_code2='0', energy_flux_error='2.18e-05', photon_flux_error2='8.24e-08', ts2='11.36', photon_index='2.46' WHERE bin_id='1039' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:45:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0270>
Subject: Job 648053: <4FGL_J1631.2+1046_daily_bin1039> in cluster <slac> Done

Job <4FGL_J1631.2+1046_daily_bin1039> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 14 19:30:19 2021
Job was executed on host(s) <bullet0270>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 19:30:41 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:30:41 2021
Terminated at Tue Sep 14 19:45:51 2021
Results reported at Tue Sep 14 19:45:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1039 247.804 10.7753 508636801 508896001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1631.2+1046 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   734.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            932 sec.

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

