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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1616
RA = 256.539, Dec = 10.0079
tmin = 658195201, tmax = 658454401
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='400126', job_status='RUN', time_executed='2021-12-08 03:11:10.969621', time_epoch_executed='1638961870.97' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400126

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400126/ft1_4FGL_J1706.1+1000_daily_bin1616.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400126/ft1_4FGL_J1706.1+1000_daily_bin1616.fits outfile=/scratch/kocevski/400126/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1616.fits ra=256.539 dec=10.0079 rad=12.0 tmin=658195201.0 tmax=658454401.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.76
user 4.47
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.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/400126/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1616.fits evtable="EVENTS" outfile="/scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.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.56
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits" evtable="EVENTS" scfile=/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits sctable="SC_DATA" outfile=/scratch/kocevski/400126/ltcube_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.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/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits
.....................!
real 16.22
user 15.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits sctable="SC_DATA" expcube=/scratch/kocevski/400126/ltcube_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.fits outfile=/scratch/kocevski/400126/expmap_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.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/400126/ltcube_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.fits
.....................!
real 196.24
user 189.49
sys 5.88

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 175 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 J1706.1+1000 @ 256.539 10.0079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits scfile=/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits outfile=/scratch/kocevski/400126/cmap_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.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=256.539 yref=10.0079 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits scfile=/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits outfile=/scratch/kocevski/400126/cmap_HighResolution_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.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=256.539 yref=10.0079 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits evtable="EVENTS" scfile=/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/400126/Model_4FGL_J1706.1+1000_daily_bin1616.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/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits.....................!
real 95.16
user 93.31
sys 1.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits', '/scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits', expMap='/scratch/kocevski/400126/expmap_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.fits', expCube='/scratch/kocevski/400126/ltcube_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/400126/Model_4FGL_J1706.1+1000_daily_bin1616.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1706.1+1000'

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.311e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.699e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  6.133e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/400126/ft1_filtered_4FGL_J1706.1+1000_daily_bin1616.fits
Spacecraft file(s): /scratch/kocevski/400126/ft2_4FGL_J1706.1+1000_daily_bin1616.fits
Exposure map: /scratch/kocevski/400126/expmap_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.fits
Exposure cube: /scratch/kocevski/400126/ltcube_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/400126/Model_4FGL_J1706.1+1000_daily_bin1616.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) = 11213.1823092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11499E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1207       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7871       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.8763       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.2113       1.0000         .10000E-03   10000.    
    15 'Prefactor '    44.202       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7503       1.0000         .10000E-03   10000.    
    17 'norm      '    .10076E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10922E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .52907       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2456       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11213.17     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2373 TOTAL
                     EDM=   .33E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    117.07       -.10377E-05** at limit **
   2  Prefactor     .10000E-03    119.17       -.36860E-06** at limit **
   3  Prefactor     .10000E-03    6.9756       -.11423E-06** at limit **
   4  Prefactor     5.1172        7.0902        .76241E-07   -.27675E-05
   5  Prefactor     .10000E-03    4.5961       -.13024E-06** at limit **
   6  Prefactor     10.440        7.7298        .40106E-07    .39581E-05
   7  Prefactor     4.7898        53.327       -.67096E-06    .13643E-07
   8  Prefactor     .10000E-03    31.017       -.43566E-07** at limit **
   9  Prefactor     .10000E-03    2.7089        .19251E-07** at limit **
  10  Prefactor     2.8773        9.1148        .23344E-05   -.23813E-04
  11  Prefactor     .10000E-03    57.359        .96487E-07** at limit **
  12  norm          .10000E-03    .71527       -.80811E-09** at limit **
  13  Prefactor     .10000E-03    3.7751        .66357E-07** at limit **
  14  norm          6.2115        6.2089        .25575E-07   -.91334E-06
  15  Prefactor     44.287        84.718       -.80387E-05    .14990E-04
  16  Prefactor     2.7507        2.4396        .57716E-07    .22914E-04
  17  norm          .10000E-03    9.4101        .67776E-06** at limit **
  18  norm          .10000E-03    .97777       -.77257E-08** at limit **
  19  norm          .10000E-03    17.579        .16152E-05** at limit **
  20  norm          .52927        .68625       -.71503E-07   -.48672E-03
  21  Normalizat    1.2455        .26912        .10074E-05    .56083E-05
  22  Prefactor     1.0149        .76725E-01   -.65950E-07    .17378E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.11723
  Prefactor  = 0.0001
  Prefactor  = 10.4402
  Prefactor  = 4.7898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.87727
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.2115
  Prefactor  = 44.2872
  Prefactor  = 2.7507
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.529273
  Normalizat = 1.24547
  Prefactor  = 1.01488
 **********
 **   18 **HESSE 
 **********

 FCN=   11213.17     FROM HESSE     STATUS=OK           340 CALLS     2713 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    117.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    121.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1172        7.0809        .17767E-03   -1.5256    
   5  Prefactor     .10000E-03    4.6771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.440        7.7405        .12400E-03   -1.5062    
   7  Prefactor     4.7898        53.484        .18388E-03   -1.5270    
   8  Prefactor     .10000E-03    31.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7172        .17016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8773        9.1341        .11983E-02   -1.5369    
  11  Prefactor     .10000E-03    57.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .71765        .87454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.2115        6.2098        .16107E-03   -1.5209    
  15  Prefactor     44.287        84.433        .60302E-04   -1.4376    
  16  Prefactor     2.7507        2.4310        .14845E-03   -1.5376    
  17  norm          .10000E-03    9.5378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .98599        .10225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .52927        .57938        .97243E-03   -1.5562    
  21  Normalizat    1.2455        .31453        .47766E-03   -.85209    
  22  Prefactor     1.0149        .90331E-01    .15295E-03   -.92235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8212e-11
Minuit parameter uncertainties:
  1  3.31301e-06
  2  0.000258503
  3  8.809e-06
  4  7.08202
  5  6.74224e-06
  6  7.74123
  7  32.0472
  8  8.75537e-06
  9  3.72178e-07
  10  9.13847
  11  7.71745e-06
  12  5.98962e-07
  13  3.54083e-06
  14  6.21046
  15  84.6617
  16  2.43111
  17  6.07053e-05
  18  2.89722e-08
  19  0.000185276
  20  0.579381
  21  0.315013
  22  0.0903446
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.722e-07  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.699e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
267        Scale:  6.133e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.015e+00  9.034e-02  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.245e+00  3.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.539 10.008
Photon Flux Upper Limit: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/400126/likelihoodResults_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.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): 102
logL (Free Index) = 11213.1760037
delta logL = -0.00175350301288

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11213.1742502
delta logL = -2.122578735e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6983       1.0000          .0000       10.000    
     3 'Normalizat'    1.2455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0149       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11213.17     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.710        .90712E-02** at limit **
   2  Index         2.6981        6.3490        .50000        .84697E-06
   3  Normalizat    1.2455        .16975E-01    .10776        .21462E-04
   4  Prefactor     1.0149        .49909E-02    .42692E-01   -.34981E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69808
  Normalizat = 1.24547
  Prefactor  = 1.01488
 **********
 **   18 **HESSE 
 **********

 FCN=   11213.17     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    128.77        .17016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6981        8.1531        .50000       -.47843    
   3  Normalizat    1.2455        .49267E-01    .47767E-03   -.85209    
   4  Prefactor     1.0149        .14530E-01    .15295E-03   -.92235    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.64632e-08
Minuit parameter uncertainties:
  1  1.99642e-05
  2  1019.93
  3  0.0492691
  4  0.0145302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400126': 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) = 11213.1742502
delta logL = 1.03682396002e-10

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  1.996e-05  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.698e+00  1.020e+03  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  6.133e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.015e+00  1.453e-02  0.000e+00  1.000e+01 ( 1.000e+00)
593        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
594        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.245e+00  4.927e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.539 10.008

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/400126/cmap_HighResolution_658195201_658454401_4FGL_J1706.1+1000_daily_bin1616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.68e-03', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-12-08 03:26:39.515285', job_id='400126', GAL2='1.01', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1638962799.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.04e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1616' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 03:26:39 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 400126: <4FGL_J1706.1+1000_daily_bin1616> in cluster <slac> Done

Job <4FGL_J1706.1+1000_daily_bin1616> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Dec  8 03:10:20 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 03:10:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 03:10:55 2021
Terminated at Wed Dec  8 03:26:40 2021
Results reported at Wed Dec  8 03:26:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1616 256.539 10.0079 658195201 658454401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1706.1+1000 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   927.35 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             340.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            980 sec.

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

