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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1318
RA = 247.804, Dec = 10.7753
tmin = 580953601, tmax = 581212801
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='649583', job_status='RUN', time_executed='2021-09-14 19:39:59.238883', time_epoch_executed='1631673599.24' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/649583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/649583/ft1_4FGL_J1631.2+1046_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/649583/ft2_4FGL_J1631.2+1046_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/649583/ft1_4FGL_J1631.2+1046_daily_bin1318.fits outfile=/scratch/kocevski/649583/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1318.fits ra=247.804 dec=10.7753 rad=12.0 tmin=580953601.0 tmax=581212801.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 2.98
user 2.77
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/649583/ft2_4FGL_J1631.2+1046_daily_bin1318.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/649583/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/649583/ft1_filtered_4FGL_J1631.2+1046_daily_bin1318.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/649583/ft1_filtered_4FGL_J1631.2+1046_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/649583/ft2_4FGL_J1631.2+1046_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/649583/ltcube_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.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/649583/ft2_4FGL_J1631.2+1046_daily_bin1318.fits
.....................!
real 14.81
user 14.39
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/649583/ft1_filtered_4FGL_J1631.2+1046_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/649583/ft2_4FGL_J1631.2+1046_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/649583/ltcube_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.fits outfile=/scratch/kocevski/649583/expmap_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.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/649583/ltcube_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.fits
.....................!
real 191.08
user 186.37
sys 4.13

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/649583/ft1_filtered_4FGL_J1631.2+1046_daily_bin1318.fits scfile=/scratch/kocevski/649583/ft2_4FGL_J1631.2+1046_daily_bin1318.fits outfile=/scratch/kocevski/649583/cmap_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/649583/ft1_filtered_4FGL_J1631.2+1046_daily_bin1318.fits scfile=/scratch/kocevski/649583/ft2_4FGL_J1631.2+1046_daily_bin1318.fits outfile=/scratch/kocevski/649583/cmap_HighResolution_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10355E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5413       1.0000         .10000E-03   10000.    
     6 'norm      '    10.718       1.0000         .10000E-03   10000.    
     7 'norm      '    15.669       1.0000         .10000E-03   10000.    
     8 'norm      '    .85833E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11841E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.139       1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    182.39       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6818       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4554       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83594       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=   4765.743     FROM MIGRAD    STATUS=CONVERGED    450 CALLS     2207 TOTAL
                     EDM=   .41E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.283        4.8737       -.81897E-07    .21794E-04
   2  Prefactor     .10000E-03    38.763       -.54331E-06** at limit **
   3  norm          .10000E-03    11.228       -.21478E-06** at limit **
   4  Prefactor     .10000E-03    44.447        .12262E-06** at limit **
   5  norm          2.5414        9.5389        .39566E-05   -.20027E-04
   6  norm          10.718        3.4895       -.12922E-06    .20137E-04
   7  norm          15.669        20.142        .22604E-06    .97668E-05
   8  norm          .10000E-03    395.69        .86160E-05** at limit **
   9  Prefactor     15.796        18.745        .68443E-07    .14144E-04
  10  Prefactor     .10000E-03    210.16       -.20517E-05** at limit **
  11  Prefactor     23.229        89.766       -.14365E-04   -.74041E-06
  12  Prefactor     16.864        24.120        .25130E-05    .25456E-04
  13  Prefactor     .10000E-03    17.447        .92521E-07** at limit **
  14  Prefactor     .10000E-03    7.8093       -.15856E-07** at limit **
  15  Prefactor     .10000E-03    7.0839        .12494E-06** at limit **
  16  Prefactor     .10000E-03    15.971       -.13088E-06** at limit **
  17  Prefactor     182.45        145.36       -.42673E-05    .52331E-05
  18  Prefactor     3.6791        23.511        .38902E-05    .68170E-05
  19  Prefactor     .10000E-03    40.678       -.11601E-06** at limit **
  20  Normalizat    1.4552        .36856        .22926E-06    .77546E-05
  21  Prefactor     .83599        .13986        .32528E-06    .59347E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.2834
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.54142
  norm       = 10.718
  norm       = 15.6692
  norm       = 0.0001
  Prefactor  = 15.7957
  Prefactor  = 0.0001
  Prefactor  = 23.2285
  Prefactor  = 16.8636
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 182.452
  Prefactor  = 3.67912
  Prefactor  = 0.0001
  Normalizat = 1.45517
  Prefactor  = 0.835988
 **********
 **   18 **HESSE 
 **********

 FCN=   4765.743     FROM HESSE     STATUS=OK           317 CALLS     2524 TOTAL
                     EDM=   .69E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.283        4.8769        .92504E-04   -1.5007    
   2  Prefactor     .10000E-03    38.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    11.549        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    44.453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5414        9.5468        .12809E-02   -1.5389    
   6  norm          10.718        3.4901        .70194E-04   -1.5053    
   7  norm          15.669        20.155        .10118E-03   -1.4916    
   8  norm          .10000E-03    395.46        .20860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.796        18.957        .10080E-03   -1.4913    
  10  Prefactor     .10000E-03    210.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.229        89.828        .83272E-04   -1.4744    
  12  Prefactor     16.864        24.134        .97513E-04   -1.4886    
  13  Prefactor     .10000E-03    17.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.8182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.0984        .17943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     182.45        145.37        .14946E-03   -1.2998    
  18  Prefactor     3.6791        23.472        .10525E-02   -1.5324    
  19  Prefactor     .10000E-03    41.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4552        .44870        .38899E-03   -.79046    
  21  Prefactor     .83599        .17057        .19220E-03   -.98415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91213e-12
Minuit parameter uncertainties:
  1  4.87707
  2  2.31797e-05
  3  2.0729e-05
  4  1.22633e-05
  5  9.55249
  6  3.49015
  7  20.1634
  8  0.000274632
  9  18.9638
  10  1.39073e-05
  11  90.3581
  12  24.1483
  13  8.52097e-06
  14  1.9138e-06
  15  6.0463e-06
  16  1.01672e-05
  17  145.662
  18  18.596
  19  6.18177e-05
  20  0.449924
  21  0.170679
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  2.323e+01  9.036e+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:  8.360e-01  1.707e-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.455e+00  4.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/649583/likelihoodResults_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.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) = 4765.5717434
delta logL = 0.171583758604

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4765.55930296
delta logL = 0.184024197082

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.675       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3013       1.0000          .0000       10.000    
     3 'Normalizat'    1.4027       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84580       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=   4765.559     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      281 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.677        147.55        .95267E-04    .12029E-03
   2  Index         3.3013        2.8340        .84022E-02    .72946E-04
   3  Normalizat    1.4025        .43340        .39484E-03    .16187E-03
   4  Prefactor     .84587        .16794        .19112E-03    .31421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6769
  Index      = 3.30127
  Normalizat = 1.40252
  Prefactor  = 0.845875
 **********
 **   18 **HESSE 
 **********

 FCN=   4765.559     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.677        55.146        .38107E-05   -1.4867    
   2  Index         3.3013        1.6058        .33609E-03   -.34665    
   3  Normalizat    1.4025        .43304        .15794E-04   -.80556    
   4  Prefactor     .84587        .16578        .38224E-04   -.98059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64836e-10
Minuit parameter uncertainties:
  1  55.3054
  2  1.63874
  3  0.434183
  4  0.165876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/649583': 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) = 4765.55930286
delta logL = 0.184024299471

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  1.768e+01  5.531e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  3.301e+00  1.639e+00  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:  8.459e-01  1.659e-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.403e+00  4.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.10
Ra Dec: 247.804 10.775

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/649583/cmap_HighResolution_580953601_581212801_4FGL_J1631.2+1046_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-02', job_status='DONE', photon_flux_upper_limit='3.00e-07', time_completed='2021-09-14 19:49:36.284008', job_id='649583', GAL2='0.85', fit_tolerance='1e-08', EG2='1.40', EG='1.46', time_epoch_completed='1631674176.28', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.84e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1318' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:49:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 649583: <4FGL_J1631.2+1046_daily_bin1318> in cluster <slac> Done

Job <4FGL_J1631.2+1046_daily_bin1318> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Tue Sep 14 19:35:26 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 19:36:14 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:36:14 2021
Terminated at Tue Sep 14 19:49:37 2021
Results reported at Tue Sep 14 19:49:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1318 247.804 10.7753 580953601 581212801 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 :                                   529.00 sec.
    Max Memory :                                 1224 MB
    Average Memory :                             274.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            851 sec.

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

