/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 = 7474
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1631.2+1046_daily_bin332
RA = 247.804, Dec = 10.7753
tmin = 325382401, tmax = 325641601
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='642673', job_status='RUN', time_executed='2021-09-14 19:10:50.916718', time_epoch_executed='1631671850.92' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/642673

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/642673/ft1_4FGL_J1631.2+1046_daily_bin332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/642673/ft2_4FGL_J1631.2+1046_daily_bin332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/642673/ft1_4FGL_J1631.2+1046_daily_bin332.fits outfile=/scratch/kocevski/642673/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin332.fits ra=247.804 dec=10.7753 rad=12.0 tmin=325382401.0 tmax=325641601.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 2.93
user 2.71
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/642673/ft2_4FGL_J1631.2+1046_daily_bin332.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/642673/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin332.fits evtable="EVENTS" outfile="/scratch/kocevski/642673/ft1_filtered_4FGL_J1631.2+1046_daily_bin332.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.44
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/642673/ft1_filtered_4FGL_J1631.2+1046_daily_bin332.fits" evtable="EVENTS" scfile=/scratch/kocevski/642673/ft2_4FGL_J1631.2+1046_daily_bin332.fits sctable="SC_DATA" outfile=/scratch/kocevski/642673/ltcube_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.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/642673/ft2_4FGL_J1631.2+1046_daily_bin332.fits
.....................!
real 11.57
user 11.22
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/642673/ft1_filtered_4FGL_J1631.2+1046_daily_bin332.fits evtable="EVENTS" scfile=/scratch/kocevski/642673/ft2_4FGL_J1631.2+1046_daily_bin332.fits sctable="SC_DATA" expcube=/scratch/kocevski/642673/ltcube_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.fits outfile=/scratch/kocevski/642673/expmap_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.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/642673/ltcube_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.fits
.....................!
real 157.23
user 152.78
sys 4.04

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/642673/ft1_filtered_4FGL_J1631.2+1046_daily_bin332.fits scfile=/scratch/kocevski/642673/ft2_4FGL_J1631.2+1046_daily_bin332.fits outfile=/scratch/kocevski/642673/cmap_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/642673/ft1_filtered_4FGL_J1631.2+1046_daily_bin332.fits scfile=/scratch/kocevski/642673/ft2_4FGL_J1631.2+1046_daily_bin332.fits outfile=/scratch/kocevski/642673/cmap_HighResolution_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.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.49
user 0.33
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6044       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.858       1.0000         .10000E-03   10000.    
     6 'norm      '    1.4044       1.0000         .10000E-03   10000.    
     7 'norm      '    13.425       1.0000         .10000E-03   10000.    
     8 'norm      '    .22531E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.932       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13451E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6899       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.688       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24053       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1957       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0194       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=   9876.922     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2199 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6042        2.5440       -.99604E-07   -.12709E-03
   2  Prefactor     .10000E-03    32.309        .55433E-05** at limit **
   3  norm          .10000E-03    .79064       -.21718E-06** at limit **
   4  Prefactor     .10000E-03    13.815       -.15100E-05** at limit **
   5  norm          13.860        9.7518       -.11886E-05   -.21868E-04
   6  norm          1.4042        1.1477       -.36911E-07   -.76535E-04
   7  norm          13.429        12.919       -.12970E-05    .52243E-05
   8  norm          .10000E-03    251.72        .46244E-06** at limit **
   9  Prefactor     10.934        19.693       -.14832E-04   -.11400E-05
  10  Prefactor     .10000E-03    21.902       -.19349E-04** at limit **
  11  Prefactor     19.453        35.122       -.17540E-05    .44979E-04
  12  Prefactor     .10000E-03    8.0422       -.87757E-06** at limit **
  13  Prefactor     .10000E-03    9.5274       -.32298E-06** at limit **
  14  Prefactor     .10000E-03    3.6296       -.19193E-07** at limit **
  15  Prefactor     7.6931        8.3111        .22652E-05    .30967E-03
  16  Prefactor     19.650        39.255       -.19116E-04    .11481E-04
  17  Prefactor     .10000E-03    20.809        .16918E-04** at limit **
  18  Prefactor     .25844        3.7837       -.44570E-05    .12261E-02
  19  Prefactor     .10000E-03    4.9029       -.20370E-06** at limit **
  20  Normalizat    1.1955        .25675        .71245E-05    .21736E-03
  21  Prefactor     1.0195        .90946E-01   -.78307E-06    .12991E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.60416
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8602
  norm       = 1.40424
  norm       = 13.4286
  norm       = 0.0001
  Prefactor  = 10.934
  Prefactor  = 0.0001
  Prefactor  = 19.4534
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.69311
  Prefactor  = 19.6499
  Prefactor  = 0.0001
  Prefactor  = 0.258441
  Prefactor  = 0.0001
  Normalizat = 1.19546
  Prefactor  = 1.01948
 **********
 **   18 **HESSE 
 **********

 FCN=   9876.922     FROM HESSE     STATUS=OK           317 CALLS     2516 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6042        2.5392        .14975E-03   -1.5385    
   2  Prefactor     .10000E-03    32.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .79161        .86303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.860        9.7536        .10760E-03   -1.4963    
   6  norm          1.4042        1.1455        .93349E-04   -1.5471    
   7  norm          13.429        12.939        .10932E-03   -1.4975    
   8  norm          .10000E-03    253.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.934        19.835        .12117E-03   -1.5047    
  10  Prefactor     .10000E-03    21.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.453        35.203        .90521E-04   -1.4826    
  12  Prefactor     .10000E-03    8.1132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6931        8.2804        .14461E-03   -1.5153    
  16  Prefactor     19.650        39.328        .90267E-04   -1.4821    
  17  Prefactor     .10000E-03    20.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .25844        18.665        .35965E-02   -1.5606    
  19  Prefactor     .10000E-03    4.9123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1955        .30466        .41050E-03   -.86743    
  21  Prefactor     1.0195        .10913        .16622E-03   -.92083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3844e-08
Minuit parameter uncertainties:
  1  2.53932
  2  5.93392e-06
  3  1.29419e-06
  4  4.79271e-06
  5  9.75475
  6  1.14549
  7  12.9417
  8  0.000204792
  9  19.8474
  10  2.28118e-05
  11  35.2404
  12  3.82706e-05
  13  8.55733e-05
  14  3.48206e-05
  15  8.2816
  16  39.3798
  17  3.62861e-06
  18  4.39316
  19  1.21508e-06
  20  0.305116
  21  0.10915
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  1.945e+01  3.524e+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.019e+00  1.091e-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.195e+00  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/642673/likelihoodResults_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.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) = 9874.79656633
delta logL = 2.12535308633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9874.74166089
delta logL = 2.18025852967

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62539       1.0000         .10000E-03   10000.    
     2 'Index     '    5.3719       1.0000          .0000       10.000    
     3 'Normalizat'    1.0044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0662       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.

 FCN=   9874.742     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      285 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .61199        3.5931        .87423E-02   -.77460E-03
   2  Index         5.3828        1.9911        .11230        .62856E-04
   3  Normalizat    1.0044        .64225E-01    .99929E-01   -.64173E-04
   4  Prefactor     1.0661        .24281E-01    .39042E-01   -.20718E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.611994
  Index      = 5.38284
  Normalizat = 1.00445
  Prefactor  = 1.06607
 **********
 **   18 **HESSE 
 **********

 FCN=   9874.742     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .61199        8.0393        .39522E-04   -1.5552    
   2  Index         5.3828        3.3293        .42817E-02    .76642E-01
   3  Normalizat    1.0044        .25257        .44274E-03   -.92881    
   4  Prefactor     1.0661        .93647E-01    .16284E-03   -.90558    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.40968e-10
Minuit parameter uncertainties:
  1  4.43659
  2  3.64571
  3  0.252873
  4  0.0936611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/642673': 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) = 9874.74164799
delta logL = 2.1802714262

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  6.120e-01  4.437e+00  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  5.383e+00  3.646e+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:  1.066e+00  9.366e-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.004e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.23
Ra Dec: 247.804 10.775
Photon Index (Free Index): 5.38 +/- 3.65
Photon Flux (Free Index): 1.87e-07 +/- 9.86e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.48e-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/642673/cmap_HighResolution_325382401_325641601_4FGL_J1631.2+1046_daily_bin332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='2.42e-05', dlogl='2.18e+00', photon_flux2='1.87e-07', job_status='DONE', time_completed='2021-09-14 19:21:43.596420', photon_index_error2='3.65', photon_index2='5.38', ts='0.36', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.48e-05', EG='1.20', time_epoch_completed='1631672503.6', return_code='0', job_id='642673', GAL2='1.07', EG2='1.00', return_code2='102', photon_flux_error2='9.86e-08', ts2='5.23', photon_index='2.46' WHERE bin_id='332' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:21:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 642673: <4FGL_J1631.2+1046_daily_bin332> in cluster <slac> Done

Job <4FGL_J1631.2+1046_daily_bin332> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 14 19:10:22 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 19:10:36 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:10:36 2021
Terminated at Tue Sep 14 19:21:44 2021
Results reported at Tue Sep 14 19:21:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin332 247.804 10.7753 325382401 325641601 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 :                                   649.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            682 sec.

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

