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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1064
RA = 247.804, Dec = 10.7753
tmin = 515116801, tmax = 515376001
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='648088', job_status='RUN', time_executed='2021-09-14 19:32:28.575121', time_epoch_executed='1631673148.58' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1064'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648088

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648088/ft1_4FGL_J1631.2+1046_daily_bin1064.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648088/ft2_4FGL_J1631.2+1046_daily_bin1064.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648088/ft1_4FGL_J1631.2+1046_daily_bin1064.fits outfile=/scratch/kocevski/648088/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1064.fits ra=247.804 dec=10.7753 rad=12.0 tmin=515116801.0 tmax=515376001.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.52
user 3.31
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/648088/ft2_4FGL_J1631.2+1046_daily_bin1064.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/648088/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1064.fits evtable="EVENTS" outfile="/scratch/kocevski/648088/ft1_filtered_4FGL_J1631.2+1046_daily_bin1064.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.53
user 0.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648088/ft1_filtered_4FGL_J1631.2+1046_daily_bin1064.fits evtable="EVENTS" scfile=/scratch/kocevski/648088/ft2_4FGL_J1631.2+1046_daily_bin1064.fits sctable="SC_DATA" expcube=/scratch/kocevski/648088/ltcube_515116801_515376001_4FGL_J1631.2+1046_daily_bin1064.fits outfile=/scratch/kocevski/648088/expmap_515116801_515376001_4FGL_J1631.2+1046_daily_bin1064.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/648088/ltcube_515116801_515376001_4FGL_J1631.2+1046_daily_bin1064.fits
.....................!
real 194.89
user 189.57
sys 4.87

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/648088/ft1_filtered_4FGL_J1631.2+1046_daily_bin1064.fits scfile=/scratch/kocevski/648088/ft2_4FGL_J1631.2+1046_daily_bin1064.fits outfile=/scratch/kocevski/648088/cmap_515116801_515376001_4FGL_J1631.2+1046_daily_bin1064.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648088/ft1_filtered_4FGL_J1631.2+1046_daily_bin1064.fits scfile=/scratch/kocevski/648088/ft2_4FGL_J1631.2+1046_daily_bin1064.fits outfile=/scratch/kocevski/648088/cmap_HighResolution_515116801_515376001_4FGL_J1631.2+1046_daily_bin1064.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9874       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.7086       1.0000         .10000E-03   10000.    
     7 'norm      '    16.151       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.957       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.094       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0101       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86982E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9955       1.0000         .10000E-03   10000.    
    17 'Prefactor '    46.307       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.043       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2796       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .83738       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=   7763.994     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2187 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .84914       -.20702E-07** at limit **
   2  Prefactor     .10000E-03    11.438       -.51331E-06** at limit **
   3  norm          2.9872        3.2671       -.94572E-06   -.18291E-02
   4  Prefactor     .10000E-03    15.676        .92990E-06** at limit **
   5  norm          .10000E-03    5.9078       -.38711E-07** at limit **
   6  norm          4.7088        1.9353       -.12890E-07    .40331E-04
   7  norm          16.154        16.305       -.27899E-06    .10379E-03
   8  norm          .10000E-03    42.351        .12984E-05** at limit **
   9  Prefactor     11.960        14.770       -.30532E-06   -.60288E-04
  10  Prefactor     17.088        57.175        .37759E-05   -.20686E-04
  11  Prefactor     .10000E-03    8.9449        .47492E-07** at limit **
  12  Prefactor     1.9998        8.6466        .36753E-05   -.10933E-03
  13  Prefactor     .10001E-03    35.515        .18958E-04** at limit **
  14  Prefactor     13.052        7.8739        .23266E-07    .20994E-04
  15  Prefactor     1.0458        9.5294        .10474E-06   -.26801E-03
  16  Prefactor     8.9956        25.609       -.54972E-06   -.33347E-04
  17  Prefactor     46.309        68.710       -.12531E-05    .29576E-05
  18  Prefactor     14.588        9.2187       -.29859E-06   -.33602E-03
  19  Prefactor     12.043        12.985       -.20825E-06   -.74374E-04
  20  Normalizat    1.2794        .24896        .18588E-06    .27399E-03
  21  Prefactor     .83744        .92667E-01    .71844E-06    .83175E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.98718
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.70876
  norm       = 16.1538
  norm       = 0.000100001
  Prefactor  = 11.9597
  Prefactor  = 17.0883
  Prefactor  = 0.0001
  Prefactor  = 1.99975
  Prefactor  = 0.000100014
  Prefactor  = 13.0525
  Prefactor  = 1.04577
  Prefactor  = 8.99561
  Prefactor  = 46.3092
  Prefactor  = 14.5882
  Prefactor  = 12.0435
  Normalizat = 1.2794
  Prefactor  = 0.837445
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.994     FROM HESSE     STATUS=OK           323 CALLS     2510 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .85496        .79288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9872        4.5421        .11192E-02   -1.5362    
   4  Prefactor     .10000E-03    15.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.9661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.7088        1.9358        .76360E-04   -1.5274    
   7  norm          16.154        16.381        .99660E-04   -1.4904    
   8  norm          .10000E-03    42.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.960        14.928        .57924E-03   -1.5016    
  10  Prefactor     17.088        57.172        .96871E-04   -1.4881    
  11  Prefactor     .10000E-03    8.9475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9998        15.233        .14600E-02   -1.5425    
  13  Prefactor     .10001E-03    34.735        .37768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.052        7.8552        .11087E-03   -1.4985    
  15  Prefactor     1.0458        9.7528        .48671E-02   -1.5503    
  16  Prefactor     8.9956        25.688        .66817E-03   -1.5108    
  17  Prefactor     46.309        68.770        .58921E-04   -1.4346    
  18  Prefactor     14.588        9.1983        .10487E-03   -1.4944    
  19  Prefactor     12.043        13.032        .57717E-03   -1.5014    
  20  Normalizat    1.2794        .29847        .35619E-03   -.84183    
  21  Prefactor     .83744        .11133        .16708E-03   -.98362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35687e-07
Minuit parameter uncertainties:
  1  1.15149e-06
  2  6.40376e-05
  3  4.54266
  4  0.000140671
  5  9.87089e-06
  6  1.93586
  7  16.3854
  8  0.000348253
  9  14.9325
  10  57.356
  11  4.70823e-05
  12  11.0421
  13  0.00141182
  14  7.85577
  15  6.38832
  16  25.7193
  17  68.888
  18  9.19918
  19  13.0347
  20  0.298876
  21  0.111361
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  4.708e-05  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.374e-01  1.114e-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.279e+00  2.989e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 247.804 10.775
Photon Flux Upper Limit: 6.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/648088/likelihoodResults_515116801_515376001_4FGL_J1631.2+1046_daily_bin1064.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): 102
logL (Free Index) = 7763.99492444
delta logL = -0.000532511273377

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7763.99439253
delta logL = -6.00030034548e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4446       1.0000          .0000       10.000    
     3 'Normalizat'    1.2793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83747       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=   7763.994     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      257 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    62.540        .18142E-01** at limit **
   2  Index         1.8716        5.8262        .50000       -.67550E-06
   3  Normalizat    1.2794        .14435E-01    .35619E-03    .12753E-02
   4  Prefactor     .83744        .56450E-02    .16708E-03    .26837E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.8716
  Normalizat = 1.27941
  Prefactor  = 0.837445
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.994     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      284 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    439.33        .29147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8716        7.7700        .50000       -.67600    
   3  Normalizat    1.2794        .39942E-01    .71237E-04   -.84183    
   4  Prefactor     .83744        .15620E-01    .33415E-04   -.98362    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.96373e-08
Minuit parameter uncertainties:
  1  0.000343728
  2  1318.78
  3  0.0399432
  4  0.0156202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648088': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7763.99439069
delta logL = 1.23402060126e-06

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  1.000e-04  3.437e-04  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  1.872e+00  1.319e+03  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.374e-01  1.562e-02  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.279e+00  3.994e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 247.804 10.775

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/648088/cmap_HighResolution_515116801_515376001_4FGL_J1631.2+1046_daily_bin1064.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.77e-08', time_completed='2021-09-14 19:44:26.489863', job_id='648088', GAL2='0.84', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631673866.49', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1064' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:44:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 648088: <4FGL_J1631.2+1046_daily_bin1064> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1064 247.804 10.7753 515116801 515376001 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 :                                   702.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            845 sec.

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

