/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 = 7556
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1037
RA = 247.804, Dec = 10.7753
tmin = 508118401, tmax = 508377601
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='648050', job_status='RUN', time_executed='2021-09-14 19:32:24.207290', time_epoch_executed='1631673144.21' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1037'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648050

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648050/ft1_4FGL_J1631.2+1046_daily_bin1037.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648050/ft1_4FGL_J1631.2+1046_daily_bin1037.fits outfile=/scratch/kocevski/648050/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1037.fits ra=247.804 dec=10.7753 rad=12.0 tmin=508118401.0 tmax=508377601.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.69
user 3.45
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.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/648050/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1037.fits evtable="EVENTS" outfile="/scratch/kocevski/648050/ft1_filtered_4FGL_J1631.2+1046_daily_bin1037.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/648050/ft1_filtered_4FGL_J1631.2+1046_daily_bin1037.fits" evtable="EVENTS" scfile=/scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits sctable="SC_DATA" outfile=/scratch/kocevski/648050/ltcube_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.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/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits
.....................!
real 13.70
user 13.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648050/ft1_filtered_4FGL_J1631.2+1046_daily_bin1037.fits evtable="EVENTS" scfile=/scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits sctable="SC_DATA" expcube=/scratch/kocevski/648050/ltcube_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.fits outfile=/scratch/kocevski/648050/expmap_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.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/648050/ltcube_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.fits
.....................!
real 194.43
user 188.62
sys 5.36

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/648050/ft1_filtered_4FGL_J1631.2+1046_daily_bin1037.fits scfile=/scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits outfile=/scratch/kocevski/648050/cmap_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648050/ft1_filtered_4FGL_J1631.2+1046_daily_bin1037.fits scfile=/scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits outfile=/scratch/kocevski/648050/cmap_HighResolution_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.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.59
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/648050/ft1_filtered_4FGL_J1631.2+1046_daily_bin1037.fits', '/scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits', expMap='/scratch/kocevski/648050/expmap_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.fits', expCube='/scratch/kocevski/648050/ltcube_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/648050/Model_4FGL_J1631.2+1046_daily_bin1037.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/648050/ft1_filtered_4FGL_J1631.2+1046_daily_bin1037.fits
Spacecraft file(s): /scratch/kocevski/648050/ft2_4FGL_J1631.2+1046_daily_bin1037.fits
Exposure map: /scratch/kocevski/648050/expmap_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.fits
Exposure cube: /scratch/kocevski/648050/ltcube_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/648050/Model_4FGL_J1631.2+1046_daily_bin1037.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) = 10468.1556052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76393       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.3541       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.777       1.0000         .10000E-03   10000.    
     5 'norm      '    9.2641       1.0000         .10000E-03   10000.    
     6 'norm      '    3.7301       1.0000         .10000E-03   10000.    
     7 'norm      '    .40641E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.226       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8741       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7308       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.708       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19220       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1914       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0163       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=   10468.12     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2251 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76434        2.2686        .18413E-05    .40470E-03
   2  Prefactor     .10001E-03    53.389        .41667E-05** at limit **
   3  norm          3.3547        3.3510        .18305E-06    .31971E-04
   4  Prefactor     44.764        53.090       -.13297E-05   -.14307E-03
   5  norm          9.2638        8.5800       -.27853E-06   -.14186E-03
   6  norm          3.7301        1.6756        .46094E-08   -.13753E-03
   7  norm          .10000E-03    10.000        .45007E-06** at limit **
   8  norm          .10000E-03    31.640       -.21295E-05** at limit **
   9  Prefactor     17.626        20.570        .57960E-06    .62545E-04
  10  Prefactor     .10000E-03    20.217        .58126E-06** at limit **
  11  Prefactor     45.228        32.596        .52797E-06    .86598E-04
  12  Prefactor     .10000E-03    10.157        .24342E-06** at limit **
  13  Prefactor     .10000E-03    2.2325        .15722E-07** at limit **
  14  Prefactor     6.8775        6.2356        .24738E-06    .14084E-03
  15  Prefactor     1.7301        5.3844        .18787E-05    .10691E-03
  16  Prefactor     38.699        37.861       -.13385E-05   -.27126E-03
  17  Prefactor     .10000E-03    37.330        .64411E-06** at limit **
  18  Prefactor     .10000E-03    12.517       -.23566E-06** at limit **
  19  Prefactor     .28885        10.105        .33045E-05   -.78180E-03
  20  Normalizat    1.1915        .25094       -.32672E-06   -.27660E-03
  21  Prefactor     1.0162        .90155E-01   -.32749E-06   -.52870E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.764339
  Prefactor  = 0.000100013
  norm       = 3.35474
  Prefactor  = 44.7642
  norm       = 9.26385
  norm       = 3.73012
  norm       = 0.000100002
  norm       = 0.000100004
  Prefactor  = 17.6259
  Prefactor  = 0.0001
  Prefactor  = 45.2285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.87746
  Prefactor  = 1.73007
  Prefactor  = 38.6992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.288853
  Normalizat = 1.19146
  Prefactor  = 1.01622
 **********
 **   18 **HESSE 
 **********

 FCN=   10468.12     FROM HESSE     STATUS=OK           319 CALLS     2570 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76434        2.2905        .26015E-03   -1.5533    
   2  Prefactor     .10001E-03    55.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.3547        3.3463        .18131E-03   -1.5342    
   4  Prefactor     44.764        53.557        .59915E-04   -1.4369    
   5  norm          9.2638        8.5557        .13167E-03   -1.5099    
   6  norm          3.7301        1.6736        .85694E-04   -1.5322    
   7  norm          .10000E-03    85.777        .60629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    32.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.626        20.662        .95399E-04   -1.4868    
  10  Prefactor     .10000E-03    20.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.228        32.651        .59618E-04   -1.4362    
  12  Prefactor     .10000E-03    10.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.2368        .14928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.8775        6.2159        .15303E-03   -1.5183    
  15  Prefactor     1.7301        5.4077        .31910E-03   -1.5445    
  16  Prefactor     38.699        38.257        .64423E-04   -1.4463    
  17  Prefactor     .10000E-03    37.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.054        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28885        74.797        .53400E-02   -1.5600    
  20  Normalizat    1.1915        .29561        .41061E-03   -.86867    
  21  Prefactor     1.0162        .10842        .16714E-03   -.92191    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57645e-08
Minuit parameter uncertainties:
  1  2.29075
  2  0.00169065
  3  3.34652
  4  53.6148
  5  8.55685
  6  1.6736
  7  0.000829699
  8  0.000682194
  9  20.6708
  10  0.000146485
  11  32.6638
  12  6.08271e-06
  13  7.69127e-07
  14  6.21649
  15  5.40918
  16  38.2814
  17  0.000220201
  18  3.89866e-05
  19  9.30649
  20  0.296021
  21  0.108446
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  4.523e+01  3.266e+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.016e+00  1.084e-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:  1.191e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.80
Ra Dec: 247.804 10.775
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.84e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 2.07e-05 +/- 1.50e-05

TS (Fixed Index): 2.80
Ra Dec: 247.804 10.775
Photon Flux Upper Limit: 1.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648050/likelihoodResults_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.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) = 10467.6986423
delta logL = 0.417253164136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10467.6972902
delta logL = 0.418605213374

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.675       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0449       1.0000          .0000       10.000    
     3 'Normalizat'    1.2160       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0085       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.

 FCN=   10467.70     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      269 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.546        1137.0        .12475E-02    .13378E-04
   2  Index         2.0431        6.0067        .22867        .28457E-04
   3  Normalizat    1.2160        .13589        .91879E-01    .28285E-04
   4  Prefactor     1.0086        .45489E-01    .43552E-01   -.23057E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.546
  Index      = 2.0431
  Normalizat = 1.21604
  Prefactor  = 1.00858
 **********
 **   18 **HESSE 
 **********

 FCN=   10467.70     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.546        43.499        .49902E-04   -1.4099    
   2  Index         2.0431        .41856        .79504E-02   -.63277    
   3  Normalizat    1.2160        .28083        .40696E-03   -.86109    
   4  Prefactor     1.0086        .10718        .16764E-03   -.92444    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48073e-10
Minuit parameter uncertainties:
  1  43.5206
  2  0.419314
  3  0.28118
  4  0.107204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648050': 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) = 10467.6972738
delta logL = 0.418621652607

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  6.455e+01  4.352e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.043e+00  4.193e-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.009e+00  1.072e-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:  1.216e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.63
Ra Dec: 247.804 10.775
Photon Index (Free Index): 2.04 +/- 0.42
Photon Flux (Free Index): 5.45e-08 +/- 4.21e-08
Energy Flux (Free Index): 3.40e-05 +/- 2.99e-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/648050/cmap_HighResolution_508118401_508377601_4FGL_J1631.2+1046_daily_bin1037.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.84e-08', energy_flux2='3.40e-05', photon_flux_error='4.93e-08', dlogl='4.19e-01', energy_flux='2.07e-05', photon_flux2='5.45e-08', job_status='DONE', time_completed='2021-09-14 19:46:28.552050', photon_index_error2='0.42', photon_index2='2.04', ts='2.80', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='2.99e-05', EG='1.19', time_epoch_completed='1631673988.55', return_code='0', job_id='648050', GAL2='1.01', EG2='1.22', return_code2='0', energy_flux_error='1.50e-05', photon_flux_error2='4.21e-08', ts2='3.63', photon_index='2.46' WHERE bin_id='1037' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:46:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0134>
Subject: Job 648050: <4FGL_J1631.2+1046_daily_bin1037> in cluster <slac> Done

Job <4FGL_J1631.2+1046_daily_bin1037> 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) <bullet0134>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 19:30:39 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:39 2021
Terminated at Tue Sep 14 19:46:29 2021
Results reported at Tue Sep 14 19:46:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1037 247.804 10.7753 508118401 508377601 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 :                                   828.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            970 sec.

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

