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


Performing analysis on: 4FGL_J1631.2+1046_daily_bin1416
RA = 247.804, Dec = 10.7753
tmin = 606355201, tmax = 606614401
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='650895', job_status='RUN', time_executed='2021-09-14 19:44:13.523048', time_epoch_executed='1631673853.52' WHERE source_name='4FGL J1631.2+1046' and cadence='daily' and bin_id='1416'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/650895

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/650895/ft1_4FGL_J1631.2+1046_daily_bin1416.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/650895/ft2_4FGL_J1631.2+1046_daily_bin1416.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/650895/ft1_4FGL_J1631.2+1046_daily_bin1416.fits outfile=/scratch/kocevski/650895/ft1_filteredMKT_4FGL_J1631.2+1046_daily_bin1416.fits ra=247.804 dec=10.7753 rad=12.0 tmin=606355201.0 tmax=606614401.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.60
user 3.37
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/650895/ft1_filtered_4FGL_J1631.2+1046_daily_bin1416.fits" evtable="EVENTS" scfile=/scratch/kocevski/650895/ft2_4FGL_J1631.2+1046_daily_bin1416.fits sctable="SC_DATA" outfile=/scratch/kocevski/650895/ltcube_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.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/650895/ft2_4FGL_J1631.2+1046_daily_bin1416.fits
.....................!
real 13.74
user 13.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/650895/ft1_filtered_4FGL_J1631.2+1046_daily_bin1416.fits evtable="EVENTS" scfile=/scratch/kocevski/650895/ft2_4FGL_J1631.2+1046_daily_bin1416.fits sctable="SC_DATA" expcube=/scratch/kocevski/650895/ltcube_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.fits outfile=/scratch/kocevski/650895/expmap_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.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/650895/ltcube_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.fits
.....................!
real 192.10
user 186.06
sys 5.40

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/650895/ft1_filtered_4FGL_J1631.2+1046_daily_bin1416.fits scfile=/scratch/kocevski/650895/ft2_4FGL_J1631.2+1046_daily_bin1416.fits outfile=/scratch/kocevski/650895/cmap_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.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.60
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/650895/ft1_filtered_4FGL_J1631.2+1046_daily_bin1416.fits scfile=/scratch/kocevski/650895/ft2_4FGL_J1631.2+1046_daily_bin1416.fits outfile=/scratch/kocevski/650895/cmap_HighResolution_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.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.61
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.5631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.6035       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1216       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    5.0843       1.0000         .10000E-03   10000.    
     7 'norm      '    12.652       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5977       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2435       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.235       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6762       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3360       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7584       1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.529       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.5235       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0314       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .98280       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5640E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9171.221     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     1569 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.5631        2.4533        .49742E-07    .43596E-04
   2  Prefactor     .10000E-03    20.154       -.10391E-05** at limit **
   3  norm          5.6041        4.1664        .11425E-06   -.92356E-04
   4  Prefactor     1.7773        480.63       -.34272E-04    .37851E-04
   5  norm          .10000E-03    2.4535        .36896E-07** at limit **
   6  norm          5.0848        1.9397        .71164E-07   -.40338E-03
   7  norm          12.650        1.1286       -.10762E-06   -.18522E-04
   8  norm          .10000E-03    37.883       -.20876E-04** at limit **
   9  Prefactor     2.5965        1.7953       -.25220E-05   -.20907E-03
  10  Prefactor     .10000E-03    56.204        .22647E-05** at limit **
  11  Prefactor     4.2378        1.4398       -.29792E-06   -.66863E-04
  12  Prefactor     13.233        1.5694       -.46786E-06    .26841E-03
  13  Prefactor     2.6753        5.7891       -.38678E-05    .38841E-04
  14  Prefactor     4.3342        6.0543        .10048E-05   -.18478E-03
  15  Prefactor     5.7574        6.1220        .39010E-05   -.59563E-04
  16  Prefactor     14.511        3.6520        .98716E-06   -.19595E-02
  17  Prefactor     .10000E-03    35.930        .18979E-04** at limit **
  18  Prefactor     8.5209        8.4930        .61221E-05    .24664E-03
  19  Prefactor     9.0307        1.0400       -.13299E-06    .71891E-04
  20  Normalizat    1.1631        .28260       -.16558E-05   -.15858E-03
  21  Prefactor     .98291        .11133       -.87576E-06   -.30405E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.56313
  Prefactor  = 0.0001
  norm       = 5.60406
  Prefactor  = 1.77727
  norm       = 0.0001
  norm       = 5.08479
  norm       = 12.6498
  norm       = 0.000100001
  Prefactor  = 2.59654
  Prefactor  = 0.000100003
  Prefactor  = 4.23784
  Prefactor  = 13.2334
  Prefactor  = 2.67527
  Prefactor  = 4.3342
  Prefactor  = 5.75741
  Prefactor  = 14.5112
  Prefactor  = 0.000100001
  Prefactor  = 8.52094
  Prefactor  = 9.03068
  Normalizat = 1.16307
  Prefactor  = 0.982911
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.221     FROM HESSE     STATUS=OK           367 CALLS     1936 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.5631        2.4528        .47112E-02   -1.5281    
   2  Prefactor     .10000E-03    20.145        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6041        4.1765        .42427E-02   -1.5234    
   4  Prefactor     1.7773        481.28        .70784E-02   -1.5441    
   5  norm          .10000E-03    2.4493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          5.0848        1.9430        .44579E-02   -1.5257    
   7  norm          12.650        13.342        .28153E-02   -1.4996    
   8  norm          .10000E-03    38.219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5965        15.016        .63285E-02   -1.5386    
  10  Prefactor     .10000E-03    56.309        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.2378        49.220        .48901E-02   -1.5296    
  12  Prefactor     13.233        11.400        .27526E-02   -1.4980    
  13  Prefactor     2.6753        6.0488        .62275E-02   -1.5381    
  14  Prefactor     4.3342        6.0976        .48362E-02   -1.5292    
  15  Prefactor     5.7574        6.1593        .41844E-02   -1.5228    
  16  Prefactor     14.511        29.898        .26270E-02   -1.4946    
  17  Prefactor     .10000E-03    36.226        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.5209        8.6037        .34326E-02   -1.5124    
  19  Prefactor     9.0307        9.7310        .33342E-02   -1.5107    
  20  Normalizat    1.1631        .24650        .88466E-01   -.87752    
  21  Prefactor     .98291        .92805E-01    .46052E-01   -.93301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55099e-07
Minuit parameter uncertainties:
  1  2.45284
  2  9.25545e-05
  3  4.17673
  4  58.9768
  5  1.10382e-05
  6  1.94304
  7  13.345
  8  0.000278295
  9  12.4927
  10  0.000863557
  11  28.9145
  12  11.4021
  13  6.05015
  14  6.09847
  15  6.15997
  16  29.9285
  17  0.000347224
  18  8.60493
  19  9.73273
  20  0.24675
  21  0.0928199
Done.

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

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  4.238e+00  2.891e+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:  9.829e-01  9.282e-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.163e+00  2.468e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 247.804 10.775
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/650895/likelihoodResults_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.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) = 9171.21786929
delta logL = 0.00267779006208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9171.21692106
delta logL = 0.00362602010136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.6193       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3070       1.0000          .0000       10.000    
     3 'Normalizat'    1.1640       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98281       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=   9171.217     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      286 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6522        52.614        .16947E-03   -.91638E-04
   2  Index         2.3030        1.7304        .11310E-01   -.93398E-04
   3  Normalizat    1.1637        .27738        .39169E-03   -.66351E-04
   4  Prefactor     .98252        .11020        .16638E-03    .15713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.65221
  Index      = 2.30304
  Normalizat = 1.16366
  Prefactor  = 0.982518
 **********
 **   18 **HESSE 
 **********

 FCN=   9171.217     FROM HESSE     STATUS=OK            23 CALLS      309 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6522        48.829        .67787E-05   -1.5232    
   2  Index         2.3030        1.6721        .45242E-03   -.56971    
   3  Normalizat    1.1637        .27759        .15668E-04   -.87733    
   4  Prefactor     .98252        .11025        .33276E-04   -.93315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48686e-09
Minuit parameter uncertainties:
  1  33.2624
  2  1.71955
  3  0.277944
  4  0.110278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/650895': 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) = 9171.21688596
delta logL = 0.00366112099073

Extracting fit parameters...

4FGL J1631.2+1046
   Spectrum: PowerLaw
254    Prefactor:  5.652e+00  3.326e+01  1.000e-04  1.000e+04 ( 1.000e-13)
255        Index:  2.303e+00  1.720e+00  0.000e+00  1.000e+01 (-1.000e+00)
256        Scale:  8.952e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
561    Prefactor:  9.825e-01  1.103e-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.164e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 247.804 10.775

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/650895/cmap_HighResolution_606355201_606614401_4FGL_J1631.2+1046_daily_bin1416.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.37e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-14 19:56:08.315529', job_id='650895', GAL2='0.98', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631674568.32', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.66e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.46' WHERE bin_id='1416' AND source_name='4FGL J1631.2+1046' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 19:56:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 650895: <4FGL_J1631.2+1046_daily_bin1416> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1631.2+1046_daily_bin1416 247.804 10.7753 606355201 606614401 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 :                                   701.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            953 sec.

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

