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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1129
RA = 247.804, Dec = 10.7753
tmin = 531964801, tmax = 532224001
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='648183', job_status='RUN', time_executed='2021-09-14 19:31:37.642671', time_epoch_executed='1631673097.64' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648183

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648183/ft1_4FGL_J1631.2+1046_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648183/ft2_4FGL_J1631.2+1046_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648183/ft1_4FGL_J1631.2+1046_daily_bin1129.fits outfile=/scratch/kocevski/648183/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1129.fits ra=247.804 dec=10.7753 rad=12.0 tmin=531964801.0 tmax=532224001.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.53
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648183/ft1_filtered_4FGL_J1631.2+1046_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/648183/ft2_4FGL_J1631.2+1046_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/648183/ltcube_531964801_532224001_4FGL_J1631.2+1046_daily_bin1129.fits outfile=/scratch/kocevski/648183/expmap_531964801_532224001_4FGL_J1631.2+1046_daily_bin1129.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/648183/ltcube_531964801_532224001_4FGL_J1631.2+1046_daily_bin1129.fits
.....................!
real 192.15
user 186.96
sys 4.78

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/648183/ft1_filtered_4FGL_J1631.2+1046_daily_bin1129.fits scfile=/scratch/kocevski/648183/ft2_4FGL_J1631.2+1046_daily_bin1129.fits outfile=/scratch/kocevski/648183/cmap_531964801_532224001_4FGL_J1631.2+1046_daily_bin1129.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/648183/ft1_filtered_4FGL_J1631.2+1046_daily_bin1129.fits scfile=/scratch/kocevski/648183/ft2_4FGL_J1631.2+1046_daily_bin1129.fits outfile=/scratch/kocevski/648183/cmap_HighResolution_531964801_532224001_4FGL_J1631.2+1046_daily_bin1129.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2811       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .12800E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .19949E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6321       1.0000         .10000E-03   10000.    
     7 'norm      '    8.2601       1.0000         .10000E-03   10000.    
     8 'norm      '    143.92       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .73424       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.153       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22254E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8785       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.883       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.7210       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86016       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=   9664.905     FROM MIGRAD    STATUS=CONVERGED    492 CALLS     2282 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2807        2.5076        .18711E-06    .40300E-03
   2  Prefactor     .10000E-03    13.794       -.69194E-07** at limit **
   3  norm          .10000E-03    2.3007        .43873E-07** at limit **
   4  Prefactor     .10000E-03    29.727       -.12902E-06** at limit **
   5  norm          .10001E-03    4.1284       -.55337E-07** at limit **
   6  norm          6.6316        2.1437        .49525E-07    .38257E-03
   7  norm          8.2570        17.647        .95623E-08    .86392E-04
   8  norm          144.40        177.24        .14504E-05    .13468E-04
   9  Prefactor     .10000E-03    7.0829       -.26886E-06** at limit **
  10  Prefactor     .53739        55.348        .49932E-05   -.16096E-03
  11  Prefactor     26.147        28.911       -.39354E-06    .51584E-04
  12  Prefactor     .10008E-03    6.2586       -.12324E-05** at limit **
  13  Prefactor     2.8784        5.3854        .60284E-06    .27603E-03
  14  Prefactor     .10000E-03    6.0177       -.10032E-05** at limit **
  15  Prefactor     .10000E-03    5.4857       -.76471E-06** at limit **
  16  Prefactor     .10000E-03    13.874       -.16870E-06** at limit **
  17  Prefactor     7.1374        33.396        .83942E-06    .80611E-05
  18  Prefactor     .10000E-03    4.0770       -.65269E-06** at limit **
  19  Prefactor     31.881        17.882        .12157E-06    .40793E-04
  20  Normalizat    1.7210        .30690        .67007E-05    .76362E-04
  21  Prefactor     .86017        .11550       -.34689E-05    .14245E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.28066
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 6.63162
  norm       = 8.257
  norm       = 144.396
  Prefactor  = 0.0001
  Prefactor  = 0.537386
  Prefactor  = 26.1469
  Prefactor  = 0.00010008
  Prefactor  = 2.87842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.13737
  Prefactor  = 0.0001
  Prefactor  = 31.881
  Normalizat = 1.72102
  Prefactor  = 0.860167
 **********
 **   18 **HESSE 
 **********

 FCN=   9664.905     FROM HESSE     STATUS=OK           331 CALLS     2613 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2807        2.5003        .13239E-03   -1.5346    
   2  Prefactor     .10000E-03    13.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.3474        .28987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    29.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10001E-03    34.566        .38078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.6316        2.1281        .78871E-04   -1.5193    
   7  norm          8.2570        17.688        .13949E-03   -1.5133    
   8  norm          144.40        177.18        .16792E-03   -1.3299    
   9  Prefactor     .10000E-03    7.1116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .53739        43.486        .20053       -1.5561    
  11  Prefactor     26.147        28.427        .78334E-04   -1.4685    
  12  Prefactor     .10008E-03    54.541        .44072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8784        5.3686        .23956E-03   -1.5369    
  14  Prefactor     .10000E-03    6.2422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.6230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1374        33.423        .15029E-03   -1.5174    
  18  Prefactor     .10000E-03    4.1419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.881        17.879        .70962E-04   -1.4578    
  20  Normalizat    1.7210        .31189        .36508E-03   -.71743    
  21  Prefactor     .86017        .11524        .18302E-03   -.97547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87634e-09
Minuit parameter uncertainties:
  1  2.50036
  2  1.30584e-05
  3  3.36868e-06
  4  3.55134e-05
  5  0.000862706
  6  2.12811
  7  17.6989
  8  177.842
  9  3.77339e-05
  10  9.67462
  11  28.4416
  12  0.00417657
  13  5.36952
  14  9.68518e-05
  15  6.64623e-05
  16  3.05633e-05
  17  30.9185
  18  5.22244e-05
  19  17.8821
  20  0.312248
  21  0.115272
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  2.615e+01  2.844e+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.602e-01  1.153e-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.721e+00  3.122e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.68
Ra Dec: 247.804 10.775
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 3.95e-08 +/- 4.30e-08
Energy Flux (Fixed Index): 1.20e-05 +/- 1.30e-05

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

Saving results to:
/scratch/kocevski/648183/likelihoodResults_531964801_532224001_4FGL_J1631.2+1046_daily_bin1129.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) = 9664.88877719
delta logL = 0.0161725914058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9664.88772071
delta logL = 0.0172290775045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.192       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2942       1.0000          .0000       10.000    
     3 'Normalizat'    1.7297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85841       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=   9664.888     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      263 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.194        30.489        .76825E-04   -.41719E-03
   2  Index         2.2943        .91514        .13459E-01   -.19060E-03
   3  Normalizat    1.7293        .30801        .36438E-03    .18726E-03
   4  Prefactor     .85855        .11399        .18318E-03    .41622E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1945
  Index      = 2.29429
  Normalizat = 1.72934
  Prefactor  = 0.858548
 **********
 **   18 **HESSE 
 **********

 FCN=   9664.888     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.194        30.377        .15365E-04   -1.4665    
   2  Index         2.2943        .91148        .53835E-03   -.57179    
   3  Normalizat    1.7293        .30816        .72876E-04   -.71522    
   4  Prefactor     .85855        .11407        .36636E-04   -.97605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56394e-09
Minuit parameter uncertainties:
  1  30.3946
  2  0.918773
  3  0.308501
  4  0.1141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648183': 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) = 9664.88771991
delta logL = 0.0172298756042

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  2.719e+01  3.039e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.294e+00  9.188e-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.585e-01  1.141e-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.729e+00  3.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.71
Ra Dec: 247.804 10.775
Photon Index (Free Index): 2.29 +/- 0.92
Photon Flux (Free Index): 3.21e-08 +/- 5.42e-08
Energy Flux (Free Index): 1.23e-05 +/- 1.39e-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/648183/cmap_HighResolution_531964801_532224001_4FGL_J1631.2+1046_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='3.95e-08', energy_flux2='1.23e-05', photon_flux_error='4.30e-08', dlogl='1.72e-02', energy_flux='1.20e-05', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-09-14 19:44:48.928940', photon_index_error2='0.92', photon_index2='2.29', ts='1.68', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='1.39e-05', EG='1.72', time_epoch_completed='1631673888.93', return_code='0', job_id='648183', GAL2='0.86', EG2='1.73', return_code2='0', energy_flux_error='1.30e-05', photon_flux_error2='5.42e-08', ts2='1.71', photon_index='2.46' WHERE bin_id='1129' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:44:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 648183: <4FGL_J1631.2+1046_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1129 247.804 10.7753 531964801 532224001 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 :                                   785.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            861 sec.

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

