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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin858
RA = 247.804, Dec = 10.7753
tmin = 461721601, tmax = 461980801
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='646972', job_status='RUN', time_executed='2021-09-14 19:26:59.134166', time_epoch_executed='1631672819.13' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='858'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/646972

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/646972/ft1_4FGL_J1631.2+1046_daily_bin858.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/646972/ft2_4FGL_J1631.2+1046_daily_bin858.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/646972/ft1_4FGL_J1631.2+1046_daily_bin858.fits outfile=/scratch/kocevski/646972/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin858.fits ra=247.804 dec=10.7753 rad=12.0 tmin=461721601.0 tmax=461980801.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 4.15
user 3.84
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/646972/ft1_filtered_4FGL_J1631.2+1046_daily_bin858.fits" evtable="EVENTS" scfile=/scratch/kocevski/646972/ft2_4FGL_J1631.2+1046_daily_bin858.fits sctable="SC_DATA" outfile=/scratch/kocevski/646972/ltcube_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.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/646972/ft2_4FGL_J1631.2+1046_daily_bin858.fits
.....................!
real 13.57
user 13.10
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/646972/ft1_filtered_4FGL_J1631.2+1046_daily_bin858.fits evtable="EVENTS" scfile=/scratch/kocevski/646972/ft2_4FGL_J1631.2+1046_daily_bin858.fits sctable="SC_DATA" expcube=/scratch/kocevski/646972/ltcube_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.fits outfile=/scratch/kocevski/646972/expmap_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.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/646972/ltcube_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.fits
.....................!
real 191.84
user 186.50
sys 4.89

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/646972/ft1_filtered_4FGL_J1631.2+1046_daily_bin858.fits scfile=/scratch/kocevski/646972/ft2_4FGL_J1631.2+1046_daily_bin858.fits outfile=/scratch/kocevski/646972/cmap_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/646972/ft1_filtered_4FGL_J1631.2+1046_daily_bin858.fits scfile=/scratch/kocevski/646972/ft2_4FGL_J1631.2+1046_daily_bin858.fits outfile=/scratch/kocevski/646972/cmap_HighResolution_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.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.61
user 0.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .81935       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .71308       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.4369       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    49.800       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24964E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.605       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2358       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10899E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.7219       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.3780       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .85463       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=   9302.300     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2206 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .81676        1.6441       -.35499E-06   -.17297E-02
   2  Prefactor     .10000E-03    23.092        .19487E-06** at limit **
   3  norm          .71227        2.0241       -.87996E-06   -.15603E-02
   4  Prefactor     .10000E-03    48.537       -.58872E-05** at limit **
   5  norm          .10000E-03    2.3272        .26924E-08** at limit **
   6  norm          7.4373        2.1463        .14872E-07    .17321E-03
   7  norm          .10000E-03    8.3436        .79571E-07** at limit **
   8  norm          49.778        59.678       -.23621E-04    .58419E-05
   9  Prefactor     .10011E-03    10.085       -.45542E-06** at limit **
  10  Prefactor     .10000E-03    80.312       -.14556E-04** at limit **
  11  Prefactor     34.614        44.319        .88014E-05    .58409E-05
  12  Prefactor     .10000E-03    3.9699       -.88228E-07** at limit **
  13  Prefactor     .10000E-03    3.0078       -.14057E-07** at limit **
  14  Prefactor     .10000E-03    4.4160        .49951E-07** at limit **
  15  Prefactor     5.2343        5.1398       -.20476E-05   -.26414E-03
  16  Prefactor     .10000E-03    15.159       -.33579E-07** at limit **
  17  Prefactor     .10000E-03    66.851        .20057E-04** at limit **
  18  Prefactor     .10000E-03    8.3516       -.15142E-06** at limit **
  19  Prefactor     8.7229        9.0026       -.15205E-06   -.18170E-03
  20  Normalizat    1.3773        .23632       -.10342E-05    .12801E-03
  21  Prefactor     .85489        .86442E-01    .39257E-06    .34774E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.81676
  Prefactor  = 0.0001
  norm       = 0.712266
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.4373
  norm       = 0.0001
  norm       = 49.7783
  Prefactor  = 0.000100106
  Prefactor  = 0.0001
  Prefactor  = 34.6143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.23427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.72286
  Normalizat = 1.37735
  Prefactor  = 0.854891
 **********
 **   18 **HESSE 
 **********

 FCN=   9302.300     FROM HESSE     STATUS=OK           319 CALLS     2525 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .81676        1.2679        .17249E-02   -1.5527    
   2  Prefactor     .10000E-03    23.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .71227        2.0076        .22840E-03   -1.5539    
   4  Prefactor     .10000E-03    48.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.3335        .14367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.4373        2.1464        .73869E-04   -1.5162    
   7  norm          .10000E-03    8.3763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          49.778        58.950        .28413E-03   -1.4296    
   9  Prefactor     .10011E-03    120.25        .58532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    80.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.614        44.224        .68122E-04   -1.4531    
  12  Prefactor     .10000E-03    3.9810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0193        .16333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5594        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2343        5.1555        .17567E-03   -1.5250    
  16  Prefactor     .10000E-03    15.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    66.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6836        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.7229        9.0058        .67863E-03   -1.5117    
  20  Normalizat    1.3773        .28449        .36342E-03   -.81286    
  21  Prefactor     .85489        .10578        .16759E-03   -.97736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83518e-09
Minuit parameter uncertainties:
  1  1.26798
  2  8.29208e-06
  3  2.00779
  4  2.37633e-05
  5  5.57353e-07
  6  2.1464
  7  1.00745e-05
  8  59.0193
  9  0.00717095
  10  5.18981e-05
  11  44.2656
  12  2.35755e-05
  13  4.74e-06
  14  5.68327e-06
  15  5.15596
  16  1.33795e-06
  17  4.30092e-05
  18  1.92312e-05
  19  9.00721
  20  0.284813
  21  0.105806
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  3.461e+01  4.427e+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.549e-01  1.058e-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.377e+00  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/646972/likelihoodResults_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.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) = 9302.15133655
delta logL = 0.14865630703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9302.14469291
delta logL = 0.155299950931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.393       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9119       1.0000          .0000       10.000    
     3 'Normalizat'    1.3450       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86237       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=   9302.145     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      300 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.412        47.731        .79495E-04   -.28311E-03
   2  Index         2.9120        1.0458        .87156E-02   -.89506E-04
   3  Normalizat    1.3448        .29157        .36708E-03   -.53269E-05
   4  Prefactor     .86233        .10684        .16692E-03   -.11761E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.4118
  Index      = 2.91199
  Normalizat = 1.34482
  Prefactor  = 0.862329
 **********
 **   18 **HESSE 
 **********

 FCN=   9302.145     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.412        39.781        .15899E-04   -1.4699    
   2  Index         2.9120        .87118        .34862E-03   -.43081    
   3  Normalizat    1.3448        .29151        .14683E-04   -.82238    
   4  Prefactor     .86233        .10661        .33384E-04   -.97470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89198e-10
Minuit parameter uncertainties:
  1  39.8226
  2  0.876611
  3  0.291874
  4  0.106641
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/646972': 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) = 9302.14469047
delta logL = 0.15530238992

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  2.541e+01  3.982e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.912e+00  8.766e-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:  8.623e-01  1.066e-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.345e+00  2.919e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 247.804 10.775
Photon Index (Free Index): 2.91 +/- 0.88
Photon Flux (Free Index): 7.87e-08 +/- 8.66e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.77e-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/646972/cmap_HighResolution_461721601_461980801_4FGL_J1631.2+1046_daily_bin858.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', energy_flux2='1.65e-05', dlogl='1.55e-01', photon_flux2='7.87e-08', job_status='DONE', time_completed='2021-09-14 19:39:39.009969', photon_index_error2='0.88', photon_index2='2.91', ts='0.71', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.77e-05', EG='1.38', time_epoch_completed='1631673579.01', return_code='0', job_id='646972', GAL2='0.86', EG2='1.34', return_code2='0', photon_flux_error2='8.66e-08', ts2='1.04', photon_index='2.46' WHERE bin_id='858' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:39:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 646972: <4FGL_J1631.2+1046_daily_bin858> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin858 247.804 10.7753 461721601 461980801 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 :                                   755.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            842 sec.

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

