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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1027
RA = 247.804, Dec = 10.7753
tmin = 505526401, tmax = 505785601
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='648036', job_status='RUN', time_executed='2021-09-14 19:33:22.344343', time_epoch_executed='1631673202.34' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648036

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648036/ft1_4FGL_J1631.2+1046_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648036/ft2_4FGL_J1631.2+1046_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648036/ft1_4FGL_J1631.2+1046_daily_bin1027.fits outfile=/scratch/kocevski/648036/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1027.fits ra=247.804 dec=10.7753 rad=12.0 tmin=505526401.0 tmax=505785601.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.55
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/648036/ft1_filtered_4FGL_J1631.2+1046_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/648036/ft2_4FGL_J1631.2+1046_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/648036/ltcube_505526401_505785601_4FGL_J1631.2+1046_daily_bin1027.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/648036/ft2_4FGL_J1631.2+1046_daily_bin1027.fits
.....................!
real 14.19
user 13.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648036/ft1_filtered_4FGL_J1631.2+1046_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/648036/ft2_4FGL_J1631.2+1046_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/648036/ltcube_505526401_505785601_4FGL_J1631.2+1046_daily_bin1027.fits outfile=/scratch/kocevski/648036/expmap_505526401_505785601_4FGL_J1631.2+1046_daily_bin1027.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/648036/ltcube_505526401_505785601_4FGL_J1631.2+1046_daily_bin1027.fits
.....................!
real 191.44
user 186.04
sys 4.83

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/648036/ft1_filtered_4FGL_J1631.2+1046_daily_bin1027.fits scfile=/scratch/kocevski/648036/ft2_4FGL_J1631.2+1046_daily_bin1027.fits outfile=/scratch/kocevski/648036/cmap_505526401_505785601_4FGL_J1631.2+1046_daily_bin1027.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648036/ft1_filtered_4FGL_J1631.2+1046_daily_bin1027.fits scfile=/scratch/kocevski/648036/ft2_4FGL_J1631.2+1046_daily_bin1027.fits outfile=/scratch/kocevski/648036/cmap_HighResolution_505526401_505785601_4FGL_J1631.2+1046_daily_bin1027.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10506E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.651       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.4484       1.0000         .10000E-03   10000.    
     6 'norm      '    2.2177       1.0000         .10000E-03   10000.    
     7 'norm      '    .10565E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.721       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12022E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    45.309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0171       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1178       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9102       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .89909       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1179       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=   8765.219     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     2858 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1201        .19718E-02** at limit **
   2  Prefactor     20.702        43.596        .88139E-04   -.27861E-04
   3  norm          .10000E-03    1.4676        .11037E-02** at limit **
   4  Prefactor     .10000E-03    43.991        .18142E-02** at limit **
   5  norm          5.4550        7.7905        .17215E-03   -.37709E-03
   6  norm          2.2176        1.5951        .96429E-04   -.37727E-05
   7  norm          .10000E-03    5.2883        .18142E-02** at limit **
   8  norm          .10000E-03    33.514        .18142E-02** at limit **
   9  Prefactor     13.716        13.272        .10813E-03   -.77801E-05
  10  Prefactor     .10001E-03    68.492        .21663    ** at limit **
  11  Prefactor     45.321        30.688        .59563E-04    .16796E-04
  12  Prefactor     .10000E-03    3.5305        .17160E-02** at limit **
  13  Prefactor     4.0166        7.2876        .10060E-02    .24670E-03
  14  Prefactor     .10000E-03    2.9938        .15688E-02** at limit **
  15  Prefactor     2.1179        6.2010        .14171E-02    .65735E-04
  16  Prefactor     5.9117        17.036        .16518E-03    .74331E-05
  17  Prefactor     .10000E-03    24.506        .18142E-02** at limit **
  18  Prefactor     .10000E-03    1.7546        .12088E-02** at limit **
  19  Prefactor     .10000E-03    11.236        .36285E-03** at limit **
  20  Normalizat    .89909        .29106        .42846E-03   -.14265E-03
  21  Prefactor     1.1178        .11490        .15679E-03   -.12517E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 20.7017
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.45495
  norm       = 2.21756
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7157
  Prefactor  = 0.00010001
  Prefactor  = 45.321
  Prefactor  = 0.0001
  Prefactor  = 4.01662
  Prefactor  = 0.0001
  Prefactor  = 2.11791
  Prefactor  = 5.91166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.899094
  Prefactor  = 1.11782
 **********
 **   18 **HESSE 
 **********

 FCN=   8765.219     FROM HESSE     STATUS=OK           309 CALLS     3167 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1264        .39436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.702        43.575        .35256E-05   -1.4798    
   3  norm          .10000E-03    1.4677        .22074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    43.993        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.4550        7.7894        .68859E-05   -1.5241    
   6  norm          2.2176        1.5950        .38571E-05   -1.5410    
   7  norm          .10000E-03    5.2890        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    33.514        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.716        13.271        .43253E-05   -1.4967    
  10  Prefactor     .10001E-03    70.747        .21197       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     45.321        30.686        .23825E-05   -1.4361    
  12  Prefactor     .10000E-03    3.5307        .34319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0166        7.2853        .20121E-03   -1.5307    
  14  Prefactor     .10000E-03    2.9952        .31376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1179        6.1933        .56685E-04   -1.5417    
  16  Prefactor     5.9117        17.036        .66073E-05   -1.5222    
  17  Prefactor     .10000E-03    24.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.7547        .24177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.237        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .89909        .29116        .17138E-04   -.96492    
  21  Prefactor     1.1178        .11498        .31359E-04   -.88899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51979e-09
Minuit parameter uncertainties:
  1  4.76107e-05
  2  43.6424
  3  5.98668e-06
  4  1.82254e-06
  5  7.79083
  6  1.59508
  7  3.39198e-05
  8  0.000200266
  9  13.2735
  10  0.0016904
  11  30.6971
  12  1.31988e-05
  13  7.28686
  14  1.92815e-05
  15  6.1952
  16  17.0495
  17  3.91206e-05
  18  4.93247e-06
  19  3.98354e-05
  20  0.291669
  21  0.115002
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  4.532e+01  3.070e+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.118e+00  1.150e-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:  8.991e-01  2.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.42
Ra Dec: 247.804 10.775
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.85e-08 +/- 4.64e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.41e-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) = 8764.74944941
delta logL = 0.469342442268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8764.74351635
delta logL = 0.475275507384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.273       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7281       1.0000          .0000       10.000    
     3 'Normalizat'    .95124       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1079       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=   8764.744     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      273 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.258        43.944        .31198E-03    .21136E-05
   2  Index         1.7280        .70917        .10124E-01   -.30077E-03
   3  Normalizat    .95046        .28135        .41800E-03    .38077E-06
   4  Prefactor     1.1083        .11391        .15743E-03   -.25888E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.2577
  Index      = 1.72798
  Normalizat = 0.950455
  Prefactor  = 1.10828
 **********
 **   18 **HESSE 
 **********

 FCN=   8764.744     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.258        45.140        .12479E-04   -1.4422    
   2  Index         1.7280        .72838        .20249E-02   -.71339    
   3  Normalizat    .95046        .28156        .16720E-04   -.94709    
   4  Prefactor     1.1083        .11398        .31486E-04   -.89202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.43617e-11
Minuit parameter uncertainties:
  1  45.1771
  2  0.732964
  3  0.281995
  4  0.114003
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648036': 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) = 8764.74351093
delta logL = 0.475280925793

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  4.126e+01  4.518e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  1.728e+00  7.330e-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.108e+00  1.140e-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.505e-01  2.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.35
Ra Dec: 247.804 10.775
Photon Index (Free Index): 1.73 +/- 0.73
Photon Flux (Free Index): 2.49e-08 +/- 3.93e-08
Energy Flux (Free Index): 3.71e-05 +/- 4.73e-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/648036/cmap_HighResolution_505526401_505785601_4FGL_J1631.2+1046_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.85e-08', energy_flux2='3.71e-05', photon_flux_error='4.64e-08', dlogl='4.75e-01', energy_flux='2.08e-05', photon_flux2='2.49e-08', job_status='DONE', time_completed='2021-09-14 19:45:49.415519', photon_index_error2='0.73', photon_index2='1.73', ts='6.42', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='4.73e-05', EG='0.90', time_epoch_completed='1631673949.42', return_code='0', job_id='648036', GAL2='1.11', EG2='0.95', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='3.93e-08', ts2='7.35', photon_index='2.46' WHERE bin_id='1027' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:45:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 648036: <4FGL_J1631.2+1046_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1027 247.804 10.7753 505526401 505785601 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 :                                   735.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            933 sec.

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

