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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1107
RA = 247.804, Dec = 10.7753
tmin = 526262401, tmax = 526521601
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='648151', job_status='RUN', time_executed='2021-09-14 19:34:45.057241', time_epoch_executed='1631673285.06' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/648151

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/648151/ft1_4FGL_J1631.2+1046_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/648151/ft2_4FGL_J1631.2+1046_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/648151/ft1_4FGL_J1631.2+1046_daily_bin1107.fits outfile=/scratch/kocevski/648151/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1107.fits ra=247.804 dec=10.7753 rad=12.0 tmin=526262401.0 tmax=526521601.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.01
user 3.79
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/648151/ft1_filtered_4FGL_J1631.2+1046_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/648151/ft2_4FGL_J1631.2+1046_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/648151/ltcube_526262401_526521601_4FGL_J1631.2+1046_daily_bin1107.fits outfile=/scratch/kocevski/648151/expmap_526262401_526521601_4FGL_J1631.2+1046_daily_bin1107.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/648151/ltcube_526262401_526521601_4FGL_J1631.2+1046_daily_bin1107.fits
.....................!
real 191.35
user 186.14
sys 4.59

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/648151/ft1_filtered_4FGL_J1631.2+1046_daily_bin1107.fits scfile=/scratch/kocevski/648151/ft2_4FGL_J1631.2+1046_daily_bin1107.fits outfile=/scratch/kocevski/648151/cmap_526262401_526521601_4FGL_J1631.2+1046_daily_bin1107.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.40
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10113E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.049       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    82.028       1.0000         .10000E-03   10000.    
     5 'norm      '    16.403       1.0000         .10000E-03   10000.    
     6 'norm      '    4.2749       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2514       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.108       1.0000         .10000E-03   10000.    
    10 'Prefactor '    85.557       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.362       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.441       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.991       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4386       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0121       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=   10379.47     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2182 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .95407       -.19188E-07** at limit **
   2  Prefactor     65.050        51.510        .14679E-05    .22542E-05
   3  norm          1.3496        2.6584       -.24839E-06   -.84995E-03
   4  Prefactor     82.014        90.862       -.14280E-04    .25928E-05
   5  norm          16.403        11.918        .11666E-06   -.21899E-04
   6  norm          4.2748        2.0583        .19310E-06    .20970E-04
   7  norm          2.2509        7.5871       -.80920E-06   -.32234E-03
   8  norm          .10000E-03    53.006        .15515E-06** at limit **
   9  Prefactor     16.105        19.230       -.11906E-05   -.14891E-04
  10  Prefactor     85.551        62.891       -.52910E-05    .17181E-05
  11  Prefactor     42.366        32.320        .36501E-05    .56853E-05
  12  Prefactor     .10000E-03    11.704       -.20827E-06** at limit **
  13  Prefactor     11.442        7.9535        .25188E-06   -.40403E-04
  14  Prefactor     .10000E-03    2.0704       -.37433E-08** at limit **
  15  Prefactor     .10000E-03    6.9318       -.14229E-06** at limit **
  16  Prefactor     .10000E-03    24.486        .35409E-07** at limit **
  17  Prefactor     69.990        78.155       -.13133E-06    .13536E-05
  18  Prefactor     .10000E-03    2.2464       -.40730E-08** at limit **
  19  Prefactor     .10000E-03    4.8835       -.51081E-07** at limit **
  20  Normalizat    1.4386        .26366        .10416E-05   -.27509E-04
  21  Prefactor     1.0122        .95298E-01    .94175E-08    .69843E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 65.05
  norm       = 1.3496
  Prefactor  = 82.0141
  norm       = 16.4031
  norm       = 4.27482
  norm       = 2.2509
  norm       = 0.0001
  Prefactor  = 16.1051
  Prefactor  = 85.5515
  Prefactor  = 42.3665
  Prefactor  = 0.0001
  Prefactor  = 11.4417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.9905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43858
  Prefactor  = 1.01215
 **********
 **   18 **HESSE 
 **********

 FCN=   10379.47     FROM HESSE     STATUS=OK           313 CALLS     2495 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5582        .19309E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.050        51.452        .49759E-04   -1.4093    
   3  norm          1.3496        2.6389        .22878E-03   -1.5476    
   4  Prefactor     82.014        89.393        .44348E-04   -1.3894    
   5  norm          16.403        11.911        .98892E-04   -1.4898    
   6  norm          4.2748        2.0561        .96196E-04   -1.5294    
   7  norm          2.2509        7.6417        .27384E-03   -1.5408    
   8  norm          .10000E-03    53.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.105        19.357        .99794E-04   -1.4905    
  10  Prefactor     85.551        62.771        .43432E-04   -1.3855    
  11  Prefactor     42.366        32.299        .61592E-04   -1.4405    
  12  Prefactor     .10000E-03    11.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.442        7.9463        .11844E-03   -1.5031    
  14  Prefactor     .10000E-03    2.0858        .14311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.990        78.247        .47982E-04   -1.4033    
  18  Prefactor     .10000E-03    2.2547        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4386        .31926        .40787E-03   -.79519    
  21  Prefactor     1.0122        .11574        .17826E-03   -.92325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83363e-10
Minuit parameter uncertainties:
  1  3.83118e-06
  2  51.4869
  3  2.63913
  4  89.5404
  5  11.9124
  6  2.05613
  7  7.64499
  8  6.37942e-07
  9  19.3642
  10  62.8199
  11  32.312
  12  9.26562e-05
  13  7.94706
  14  2.15352e-06
  15  2.71148e-05
  16  1.00554e-05
  17  78.3623
  18  2.24054e-06
  19  2.52163e-06
  20  0.319708
  21  0.11577
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  4.237e+01  3.231e+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.012e+00  1.158e-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.439e+00  3.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.04
Ra Dec: 247.804 10.775
Photon Index (Fixed Index): 2.46 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 4.88e-08
Energy Flux (Fixed Index): 1.94e-05 +/- 1.48e-05

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) = 10378.8701442
delta logL = 0.596488507981

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10378.8565894
delta logL = 0.610043317842

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.463       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6646       1.0000          .0000       10.000    
     3 'Normalizat'    1.4852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0038       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=   10378.86     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      265 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.451        45.123        .32313E-03   -.30582E-03
   2  Index         1.6645        .67875        .10573E-01    .19267E-03
   3  Normalizat    1.4849        .30194        .40256E-03    .91867E-03
   4  Prefactor     1.0039        .11392        .17893E-03    .17855E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.4509
  Index      = 1.66452
  Normalizat = 1.48486
  Prefactor  = 1.00392
 **********
 **   18 **HESSE 
 **********

 FCN=   10378.86     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.451        46.907        .64627E-04   -1.4467    
   2  Index         1.6645        .70556        .42291E-03   -.73030    
   3  Normalizat    1.4849        .30223        .80513E-04   -.78205    
   4  Prefactor     1.0039        .11402        .35787E-04   -.92599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13413e-09
Minuit parameter uncertainties:
  1  46.9517
  2  0.709845
  3  0.302596
  4  0.114051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/648151': 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) = 10378.8565882
delta logL = 0.610044436698

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  3.845e+01  4.695e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  1.665e+00  7.098e-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.004e+00  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.485e+00  3.026e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.25
Ra Dec: 247.804 10.775
Photon Index (Free Index): 1.66 +/- 0.71
Photon Flux (Free Index): 2.20e-08 +/- 3.59e-08
Energy Flux (Free Index): 4.03e-05 +/- 5.31e-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/648151/cmap_HighResolution_526262401_526521601_4FGL_J1631.2+1046_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='4.03e-05', photon_flux_error='4.88e-08', dlogl='6.10e-01', energy_flux='1.94e-05', photon_flux2='2.20e-08', job_status='DONE', time_completed='2021-09-14 19:46:48.449270', photon_index_error2='0.71', photon_index2='1.66', ts='4.04', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='5.31e-05', EG='1.44', time_epoch_completed='1631674008.45', return_code='0', job_id='648151', GAL2='1.00', EG2='1.48', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='3.59e-08', ts2='5.25', photon_index='2.46' WHERE bin_id='1107' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:46:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 648151: <4FGL_J1631.2+1046_daily_bin1107> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1107 247.804 10.7753 526262401 526521601 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 :                                   716.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            983 sec.

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

