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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1490
RA = 247.804, Dec = 10.7753
tmin = 625536001, tmax = 625795201
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='651013', job_status='RUN', time_executed='2021-09-14 19:43:28.220365', time_epoch_executed='1631673808.22' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/651013

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/651013/ft1_4FGL_J1631.2+1046_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/651013/ft2_4FGL_J1631.2+1046_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/651013/ft1_4FGL_J1631.2+1046_daily_bin1490.fits outfile=/scratch/kocevski/651013/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1490.fits ra=247.804 dec=10.7753 rad=12.0 tmin=625536001.0 tmax=625795201.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.65
user 3.43
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/651013/ft2_4FGL_J1631.2+1046_daily_bin1490.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/651013/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1490.fits evtable="EVENTS" outfile="/scratch/kocevski/651013/ft1_filtered_4FGL_J1631.2+1046_daily_bin1490.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/651013/ft1_filtered_4FGL_J1631.2+1046_daily_bin1490.fits" evtable="EVENTS" scfile=/scratch/kocevski/651013/ft2_4FGL_J1631.2+1046_daily_bin1490.fits sctable="SC_DATA" outfile=/scratch/kocevski/651013/ltcube_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.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/651013/ft2_4FGL_J1631.2+1046_daily_bin1490.fits
.....................!
real 14.50
user 14.08
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/651013/ft1_filtered_4FGL_J1631.2+1046_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/651013/ft2_4FGL_J1631.2+1046_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/651013/ltcube_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.fits outfile=/scratch/kocevski/651013/expmap_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.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/651013/ltcube_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.fits
.....................!
real 192.37
user 186.95
sys 4.52

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/651013/ft1_filtered_4FGL_J1631.2+1046_daily_bin1490.fits scfile=/scratch/kocevski/651013/ft2_4FGL_J1631.2+1046_daily_bin1490.fits outfile=/scratch/kocevski/651013/cmap_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/651013/ft1_filtered_4FGL_J1631.2+1046_daily_bin1490.fits scfile=/scratch/kocevski/651013/ft2_4FGL_J1631.2+1046_daily_bin1490.fits outfile=/scratch/kocevski/651013/cmap_HighResolution_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.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.57
user 0.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.7053       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15367       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3789       1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.985       1.0000         .10000E-03   10000.    
     5 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.3809       1.0000         .10000E-03   10000.    
     7 'norm      '    13.250       1.0000         .10000E-03   10000.    
     8 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15397E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.432       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4409       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .97008       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9518.322     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2151 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.7056        3.5259        .13513E-06    .10066E-03
   2  Prefactor     .10130E-03    550.86       -.25091E-04** at limit **
   3  norm          2.3802        3.6962       -.34083E-06   -.56510E-04
   4  Prefactor     44.953        2.2979       -.16651E-06    .32645E-02
   5  norm          .10001E-03    7.5177       -.75366E-06** at limit **
   6  norm          5.3813        1.9829        .73614E-07    .10410E-03
   7  norm          13.241        1.2997        .63048E-08   -.29074E-02
   8  norm          .10000E-03    40.468        .24716E-05** at limit **
   9  Prefactor     .10001E-03    8.9333       -.26983E-06** at limit **
  10  Prefactor     48.739        1.0184       -.14048E-07    .95031E-03
  11  Prefactor     .11077E-03    59.585       -.81718E-05** at limit **
  12  Prefactor     .10000E-03    7.5434       -.32994E-06** at limit **
  13  Prefactor     .10009E-03    6.4681        .27776E-06** at limit **
  14  Prefactor     .10000E-03    1.9444       -.41388E-06** at limit **
  15  Prefactor     18.432        1.0043       -.43292E-08   -.51998E-04
  16  Prefactor     .10002E-03    13.877        .56665E-06** at limit **
  17  Prefactor     .10001E-03    17.028        .15107E-05** at limit **
  18  Prefactor     .10000E-03    2.8783        .33185E-07** at limit **
  19  Prefactor     .10008E-03    7.3339       -.74839E-07** at limit **
  20  Normalizat    1.4409        .29332        .23610E-05    .13716E-05
  21  Prefactor     .97006        .11263       -.12057E-05   -.76238E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.70562
  Prefactor  = 0.000101295
  norm       = 2.38018
  Prefactor  = 44.9528
  norm       = 0.000100007
  norm       = 5.3813
  norm       = 13.2413
  norm       = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 48.7387
  Prefactor  = 0.000110775
  Prefactor  = 0.000100004
  Prefactor  = 0.000100087
  Prefactor  = 0.0001
  Prefactor  = 18.432
  Prefactor  = 0.000100019
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.000100084
  Normalizat = 1.44088
  Prefactor  = 0.970057
 **********
 **   18 **HESSE 
 **********

 FCN=   9518.322     FROM HESSE     STATUS=OK           371 CALLS     2522 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.7056        3.5476        .33964E-02   -1.5118    
   2  Prefactor     .10130E-03    27.289        .17779       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3802        3.7285        .66401E-02   -1.5399    
   4  Prefactor     44.953        62.923        .14944E-02   -1.4366    
   5  norm          .10001E-03    7.6637        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.3813        1.9890        .43311E-02   -1.5244    
   7  norm          13.241        15.638        .27510E-02   -1.4980    
   8  norm          .10000E-03    40.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    9.2751        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     48.739        94.735        .14359E-02   -1.4311    
  11  Prefactor     .11077E-03    29.866        .13268       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.6611        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10009E-03    10.512        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.9264        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.432        7.5431        .23322E-02   -1.4849    
  16  Prefactor     .10002E-03    15.064        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    17.493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.8584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10008E-03    11.243        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4409        .25071        .87307E-01   -.79454    
  21  Prefactor     .97006        .93985E-01    .45892E-01   -.93734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5097e-07
Minuit parameter uncertainties:
  1  3.54764
  2  0.0118961
  3  3.72887
  4  63.0164
  5  0.000463931
  6  1.989
  7  15.643
  8  0.000291385
  9  0.000566067
  10  95.0293
  11  0.035895
  12  0.000339177
  13  0.00191234
  14  5.46125e-06
  15  7.54348
  16  0.00105628
  17  0.0006454
  18  5.07261e-07
  19  0.0019468
  20  0.250921
  21  0.0940006
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  1.108e-04  3.589e-02  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:  9.701e-01  9.400e-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.441e+00  2.509e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/651013/likelihoodResults_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.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) = 9518.32186486
delta logL = -1.00679753814e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9518.32186486
delta logL = -1.00665729406e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4626       1.0000          .0000       10.000    
     3 'Normalizat'    1.4409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9517.879     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56160E-01    .95461        .36626E-05   -.22084E-02
   2  Index         6.0211        3.5981       -.15565E-03   -.55972E-04
   3  Normalizat    1.3659        .30277        .38407E-05   -.15505E-03
   4  Prefactor     .98758        .11480        .88200E-06   -.52299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0561602
  Index      = 6.02114
  Normalizat = 1.36587
  Prefactor  = 0.987583
 **********
 **   18 **HESSE 
 **********

 FCN=   9517.879     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      302 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56160E-01    .89488        .57734E-02   -1.5661    
   2  Index         6.0211        2.7409        .13687        .20567    
   3  Normalizat    1.3659        .45154E-01    .89261E-01   -.81621    
   4  Prefactor     .98758        .17363E-01    .45892E-01   -.93145    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.05037e-10
Minuit parameter uncertainties:
  1  0.447968
  2  2.90917
  3  0.0451556
  4  0.0173627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/651013': 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) = 9517.87947087
delta logL = 0.442383922316

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  5.616e-02  4.480e-01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  6.021e+00  2.909e+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:  9.876e-01  1.736e-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.366e+00  4.516e-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/651013/cmap_HighResolution_625536001_625795201_4FGL_J1631.2+1046_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.25e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-14 19:56:35.355194', job_id='651013', GAL2='0.99', fit_tolerance='1e-08', EG2='1.37', EG='1.44', time_epoch_completed='1631674595.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.42e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1490' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:56:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 651013: <4FGL_J1631.2+1046_daily_bin1490> in cluster <slac> Done

Job <4FGL_J1631.2+1046_daily_bin1490> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 19:40:24 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 19:41:00 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:41:00 2021
Terminated at Tue Sep 14 19:56:36 2021
Results reported at Tue Sep 14 19:56:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1490 247.804 10.7753 625536001 625795201 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 :                                   766.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            972 sec.

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

