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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1608
RA = 247.804, Dec = 10.7753
tmin = 656121601, tmax = 656380801
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='392217', job_status='RUN', time_executed='2021-12-08 02:40:52.139007', time_epoch_executed='1638960052.14' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/392217

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/392217/ft1_4FGL_J1631.2+1046_daily_bin1608.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/392217/ft2_4FGL_J1631.2+1046_daily_bin1608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/392217/ft1_4FGL_J1631.2+1046_daily_bin1608.fits outfile=/scratch/kocevski/392217/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1608.fits ra=247.804 dec=10.7753 rad=12.0 tmin=656121601.0 tmax=656380801.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.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/392217/ft1_filtered_4FGL_J1631.2+1046_daily_bin1608.fits" evtable="EVENTS" scfile=/scratch/kocevski/392217/ft2_4FGL_J1631.2+1046_daily_bin1608.fits sctable="SC_DATA" outfile=/scratch/kocevski/392217/ltcube_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.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/392217/ft2_4FGL_J1631.2+1046_daily_bin1608.fits
.....................!
real 13.90
user 13.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/392217/ft1_filtered_4FGL_J1631.2+1046_daily_bin1608.fits evtable="EVENTS" scfile=/scratch/kocevski/392217/ft2_4FGL_J1631.2+1046_daily_bin1608.fits sctable="SC_DATA" expcube=/scratch/kocevski/392217/ltcube_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.fits outfile=/scratch/kocevski/392217/expmap_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.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/392217/ltcube_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.fits
.....................!
real 191.63
user 185.89
sys 5.22

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/392217/ft1_filtered_4FGL_J1631.2+1046_daily_bin1608.fits scfile=/scratch/kocevski/392217/ft2_4FGL_J1631.2+1046_daily_bin1608.fits outfile=/scratch/kocevski/392217/cmap_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/392217/ft1_filtered_4FGL_J1631.2+1046_daily_bin1608.fits scfile=/scratch/kocevski/392217/ft2_4FGL_J1631.2+1046_daily_bin1608.fits outfile=/scratch/kocevski/392217/cmap_HighResolution_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=247.804 yref=10.7753 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8525       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.172       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2411       1.0000         .10000E-03   10000.    
     7 'norm      '    30.311       1.0000         .10000E-03   10000.    
     8 'norm      '    78.419       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    38.395       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38977E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11956E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4356       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    57.489       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5041       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .92036       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0415       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=   8676.410     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2178 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8518        3.5567        .40053E-07   -.37952E-04
   2  Prefactor     .10000E-03    17.708       -.57617E-07** at limit **
   3  norm          .10000E-03    2.6160        .67175E-07** at limit **
   4  Prefactor     .10000E-03    40.425       -.42544E-06** at limit **
   5  norm          12.168        8.4297        .17499E-06   -.37359E-04
   6  norm          5.2410        1.8224       -.25478E-07   -.25820E-03
   7  norm          30.306        16.469        .14266E-06   -.15897E-03
   8  norm          78.418        79.537        .16371E-07   -.25319E-05
   9  Prefactor     .10000E-03    4.7471        .66297E-07** at limit **
  10  Prefactor     .10000E-03    31.464        .52994E-06** at limit **
  11  Prefactor     38.416        33.816       -.18512E-05   -.31200E-03
  12  Prefactor     .10000E-03    5.2699       -.64506E-06** at limit **
  13  Prefactor     .10046E-03    9.5656        .36803E-05** at limit **
  14  Prefactor     .10000E-03    3.0940        .33876E-07** at limit **
  15  Prefactor     1.4381        7.0919        .42136E-05    .43136E-03
  16  Prefactor     .10000E-03    9.4680        .46411E-07** at limit **
  17  Prefactor     57.431        73.177       -.30053E-06   -.91353E-04
  18  Prefactor     3.4999        8.5742       -.33180E-06   -.11782E-03
  19  Prefactor     .10000E-03    7.1191       -.31299E-06** at limit **
  20  Normalizat    .92091        .25325       -.35426E-05   -.50163E-03
  21  Prefactor     1.0414        .97819E-01    .46420E-06   -.11718E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.85182
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1685
  norm       = 5.24104
  norm       = 30.3062
  norm       = 78.4177
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 38.4161
  Prefactor  = 0.0001
  Prefactor  = 0.000100457
  Prefactor  = 0.0001
  Prefactor  = 1.43805
  Prefactor  = 0.0001
  Prefactor  = 57.4305
  Prefactor  = 3.49989
  Prefactor  = 0.0001
  Normalizat = 0.92091
  Prefactor  = 1.0414
 **********
 **   18 **HESSE 
 **********

 FCN=   8676.410     FROM HESSE     STATUS=OK           315 CALLS     2493 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8518        3.5565        .10719E-03   -1.5113    
   2  Prefactor     .10000E-03    17.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6799        .14713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.168        8.4369        .11482E-03   -1.5010    
   6  norm          5.2410        1.8234        .72071E-04   -1.5250    
   7  norm          30.306        16.491        .72774E-04   -1.4606    
   8  norm          78.418        79.548        .45349E-04   -1.3935    
   9  Prefactor     .10000E-03    4.7575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     38.416        33.615        .64684E-04   -1.4468    
  12  Prefactor     .10000E-03    16.296        .39517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10046E-03    32.545        .36936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1455        .15992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.4381        7.5267        .36030E-03   -1.5468    
  16  Prefactor     .10000E-03    9.4736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     57.431        72.987        .52910E-04   -1.4191    
  18  Prefactor     3.4999        8.4990        .21598E-03   -1.5334    
  19  Prefactor     .10000E-03    7.1843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .92091        .29004        .42214E-03   -.95729    
  21  Prefactor     1.0414        .11382        .15889E-03   -.91362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.462e-08
Minuit parameter uncertainties:
  1  3.5566
  2  3.07969e-05
  3  7.39199e-06
  4  0.000250461
  5  8.43768
  6  1.82343
  7  16.4939
  8  79.656
  9  9.83988e-06
  10  0.0002604
  11  33.6316
  12  0.00011168
  13  0.00771619
  14  5.39873e-07
  15  6.58098
  16  1.60289e-05
  17  73.1006
  18  8.50189
  19  2.90598e-05
  20  0.290537
  21  0.113846
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  3.842e+01  3.363e+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:  1.041e+00  1.138e-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:  9.209e-01  2.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.78
Ra Dec: 247.804 10.775
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 5.81e-08 +/- 5.08e-08
Energy Flux (Fixed Index): 1.76e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/392217/likelihoodResults_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.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) = 8676.38804685
delta logL = 0.0220203016743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8676.37720247
delta logL = 0.0328646838898

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.166       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6373       1.0000          .0000       10.000    
     3 'Normalizat'    .91038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0440       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=   8676.377     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      265 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.173        40.246        .69580E-04   -.24509E-04
   2  Index         2.6371        .76094        .85274E-02   -.22995E-04
   3  Normalizat    .91041        .28492        .42433E-03   -.10213E-03
   4  Prefactor     1.0440        .11275        .15871E-03   -.26440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1731
  Index      = 2.6371
  Normalizat = 0.910407
  Prefactor  = 1.044
 **********
 **   18 **HESSE 
 **********

 FCN=   8676.377     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.173        37.037        .27832E-05   -1.4555    
   2  Index         2.6371        .69971        .34110E-03   -.49222    
   3  Normalizat    .91041        .28478        .16973E-04   -.96095    
   4  Prefactor     1.0440        .11269        .31743E-04   -.91277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.56652e-11
Minuit parameter uncertainties:
  1  37.0629
  2  0.702681
  3  0.28525
  4  0.112719
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/392217': 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) = 8676.37720243
delta logL = 0.0328647263359

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  3.317e+01  3.706e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.637e+00  7.027e-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:  1.044e+00  1.127e-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:  9.104e-01  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 247.804 10.775
Photon Index (Free Index): 2.64 +/- 0.70
Photon Flux (Free Index): 6.57e-08 +/- 6.10e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.46e-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/392217/cmap_HighResolution_656121601_656380801_4FGL_J1631.2+1046_daily_bin1608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.27e-02', comment='SUCCESS', photon_flux='5.81e-08', energy_flux2='1.67e-05', photon_flux_error='5.08e-08', dlogl='3.29e-02', energy_flux='1.76e-05', photon_flux2='6.57e-08', job_status='DONE', time_completed='2021-12-08 02:53:00.893109', photon_index_error2='0.70', photon_index2='2.64', ts='1.78', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='1.46e-05', EG='0.92', time_epoch_completed='1638960780.89', return_code='0', job_id='392217', GAL2='1.04', EG2='0.91', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='6.10e-08', ts2='1.85', photon_index='2.46' WHERE bin_id='1608' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 02:53:00 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 392217: <4FGL_J1631.2+1046_daily_bin1608> in cluster <slac> Done

Job <4FGL_J1631.2+1046_daily_bin1608> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Dec  8 02:40:15 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 02:40:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 02:40:44 2021
Terminated at Wed Dec  8 02:53:01 2021
Results reported at Wed Dec  8 02:53:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1608 247.804 10.7753 656121601 656380801 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 :                                   727.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            766 sec.

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

