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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1152
RA = 256.539, Dec = 10.0079
tmin = 537926401, tmax = 538185601
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='391865', job_status='RUN', time_executed='2021-09-16 15:50:39.755823', time_epoch_executed='1631832639.76' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391865

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391865/ft1_4FGL_J1706.1+1000_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391865/ft1_4FGL_J1706.1+1000_daily_bin1152.fits outfile=/scratch/kocevski/391865/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1152.fits ra=256.539 dec=10.0079 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.58
user 6.28
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.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/391865/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1152.fits evtable="EVENTS" outfile="/scratch/kocevski/391865/ft1_filtered_4FGL_J1706.1+1000_daily_bin1152.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391865/ft1_filtered_4FGL_J1706.1+1000_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/391865/ltcube_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.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/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits
.....................!
real 14.21
user 13.80
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391865/ft1_filtered_4FGL_J1706.1+1000_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/391865/ltcube_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.fits outfile=/scratch/kocevski/391865/expmap_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.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/391865/ltcube_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.fits
.....................!
real 192.00
user 186.05
sys 5.31

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/391865/ft1_filtered_4FGL_J1706.1+1000_daily_bin1152.fits scfile=/scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits outfile=/scratch/kocevski/391865/cmap_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391865/ft1_filtered_4FGL_J1706.1+1000_daily_bin1152.fits scfile=/scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits outfile=/scratch/kocevski/391865/cmap_HighResolution_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.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.58
user 0.42
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/391865/ft1_filtered_4FGL_J1706.1+1000_daily_bin1152.fits', '/scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits', expMap='/scratch/kocevski/391865/expmap_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.fits', expCube='/scratch/kocevski/391865/ltcube_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/391865/Model_4FGL_J1706.1+1000_daily_bin1152.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/391865/ft1_filtered_4FGL_J1706.1+1000_daily_bin1152.fits
Spacecraft file(s): /scratch/kocevski/391865/ft2_4FGL_J1706.1+1000_daily_bin1152.fits
Exposure map: /scratch/kocevski/391865/expmap_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.fits
Exposure cube: /scratch/kocevski/391865/ltcube_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/391865/Model_4FGL_J1706.1+1000_daily_bin1152.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) = 3388.87588169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43831E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    46.624       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9773       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.4195       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .23352E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5773       1.0000         .10000E-03   10000.    
    14 'norm      '    13.604       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.9033       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4930       1.0000         .10000E-03   10000.    
    19 'norm      '    14.087       1.0000         .10000E-03   10000.    
    20 'norm      '    5.3047       1.0000         .10000E-03   10000.    
    21 'Normalizat'    2.5401       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65704       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=   3388.850     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2385 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    370.47       -.13470E-04** at limit **
   2  Prefactor     46.645        78.774        .20277E-04   -.14551E-04
   3  Prefactor     15.404        26.151        .18468E-05   -.66118E-04
   4  Prefactor     1.9857        49.126        .91391E-05   -.98236E-04
   5  Prefactor     .10000E-03    14.332        .21521E-06** at limit **
   6  Prefactor     4.9645        13.738       -.81466E-05   -.17706E-03
   7  Prefactor     .10000E-03    19.984       -.10570E-06** at limit **
   8  Prefactor     .10000E-03    119.02        .58383E-05** at limit **
   9  Prefactor     2.4314        24.935        .18817E-04   -.95704E-04
  10  Prefactor     .10000E-03    12.833        .37093E-07** at limit **
  11  Prefactor     .10000E-03    320.42       -.59114E-05** at limit **
  12  norm          .10000E-03    3.4110        .96639E-07** at limit **
  13  Prefactor     8.5789        12.439       -.37600E-05   -.43496E-04
  14  norm          13.606        13.109       -.92085E-06    .63717E-05
  15  Prefactor     .10000E-03    38.963        .61298E-06** at limit **
  16  Prefactor     .10000E-03    1.4171        .23250E-08** at limit **
  17  norm          5.9078        17.440        .92165E-05   -.51628E-04
  18  norm          4.4933        6.4690       -.14711E-06   -.13488E-03
  19  norm          14.089        16.179        .31656E-05   -.19002E-04
  20  norm          5.3053        1.9730        .80871E-07   -.86318E-04
  21  Normalizat    2.5394        .48264       -.47382E-05   -.47336E-04
  22  Prefactor     .65698        .13554       -.94945E-06   -.22534E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 46.6447
  Prefactor  = 15.4041
  Prefactor  = 1.9857
  Prefactor  = 0.0001
  Prefactor  = 4.96453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.57891
  norm       = 13.6057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.90778
  norm       = 4.4933
  norm       = 14.0891
  norm       = 5.3053
  Normalizat = 2.5394
  Prefactor  = 0.656985
 **********
 **   18 **HESSE 
 **********

 FCN=   3388.850     FROM HESSE     STATUS=OK           340 CALLS     2725 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    370.79        .19378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     46.645        78.992        .58722E-04   -1.4341    
   3  Prefactor     15.404        25.830        .10201E-03   -1.4923    
   4  Prefactor     1.9857        47.390        .29479E-03   -1.5426    
   5  Prefactor     .10000E-03    14.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9645        13.872        .18054E-03   -1.5262    
   7  Prefactor     .10000E-03    19.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    119.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.4314        24.305        .26314E-03   -1.5396    
  10  Prefactor     .10000E-03    12.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    320.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.4552        .10498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5789        12.451        .13687E-03   -1.5122    
  14  norm          13.606        13.109        .10860E-03   -1.4970    
  15  Prefactor     .10000E-03    38.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4210        .67667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.9078        17.386        .16528E-03   -1.5222    
  18  norm          4.4933        6.4753        .17162E-03   -1.5284    
  19  norm          14.089        16.200        .10672E-03   -1.4957    
  20  norm          5.3053        1.9743        .48114E-04   -1.5247    
  21  Normalizat    2.5394        .56761        .37353E-03   -.51624    
  22  Prefactor     .65698        .15969        .18677E-03   -1.0524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46724e-10
Minuit parameter uncertainties:
  1  0.000120675
  2  79.1696
  3  25.8484
  4  19.418
  5  8.86538e-05
  6  13.8811
  7  9.41411e-06
  8  0.000338886
  9  15.3826
  10  1.72334e-05
  11  0.000146749
  12  1.24208e-05
  13  12.4552
  14  13.1121
  15  3.88381e-05
  16  2.95453e-06
  17  17.4011
  18  6.47632
  19  16.2048
  20  1.97431
  21  0.569233
  22  0.159798
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  2.431e+00  1.538e+01  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:  6.570e-01  1.598e-01  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:  2.539e+00  5.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 256.539 10.008
Photon Flux Upper Limit: 3.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/391865/likelihoodResults_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.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) = 3388.84448024
delta logL = 0.00574271156438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3388.55930831
delta logL = 0.290914639763

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   3388.559     FROM MIGRAD    STATUS=FAILED       118 CALLS      395 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10916E-03    .85588E-03    .15071E-04** at limit **
   2  Index        10.0000        6.3728        .50000    ** at limit **
   3  Normalizat    2.4510        .56542        .37770E-03    .58096E-04
   4  Prefactor     .67434        .15785        .18455E-03    .14054E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   3388.559     FROM SIMPLEX   STATUS=UNCHANGED    130 CALLS      525 TOTAL
                     EDM=   .42E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10916E-03    .85588E-03    .47451E-07   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.3728        .10054E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    2.4510        .56542        .24861E-05   -.53672    
   4  Prefactor     .67434        .15785        .19639E-06   -1.0454    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3388.559     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      568 TOTAL
                     EDM=   .17E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10916E-03    .81059E-03    .30143E-05** at limit **
   2  Index        10.0000        6.3077        .50000    ** at limit **
   3  Normalizat    2.4510        .56477        .75539E-04    .15818E-04
   4  Prefactor     .67434        .15786        .36910E-04    .30154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109158
  Index      = 10
  Normalizat = 2.45097
  Prefactor  = 0.674344
 **********
 **   18 **HESSE 
 **********

 FCN=   3388.559     FROM HESSE     STATUS=OK            31 CALLS      599 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10916E-03    .80003E-03    .12057E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.2951        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    2.4510        .56458        .15108E-04   -.53672    
   4  Prefactor     .67434        .15785        .73821E-05   -1.0454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.9767e-12
Minuit parameter uncertainties:
  1  0.000171194
  2  2.62653e-05
  3  0.566216
  4  0.157956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391865': 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) = 3388.55930623
delta logL = 0.290916720162

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.092e-04  1.712e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  1.000e+01  2.627e-05  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:  6.743e-01  1.580e-01  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:  2.451e+00  5.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 256.539 10.008

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/391865/cmap_HighResolution_537926401_538185601_4FGL_J1706.1+1000_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-02', job_status='DONE', photon_flux_upper_limit='3.10e-07', time_completed='2021-09-16 15:59:39.616632', job_id='391865', GAL2='0.67', fit_tolerance='1e-08', EG2='2.45', EG='2.54', time_epoch_completed='1631833179.62', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.91e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1152' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 15:59:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 391865: <4FGL_J1706.1+1000_daily_bin1152> in cluster <slac> Done

Job <4FGL_J1706.1+1000_daily_bin1152> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 15:45:37 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 15:47:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 15:47:44 2021
Terminated at Thu Sep 16 15:59:40 2021
Results reported at Thu Sep 16 15:59:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1152 256.539 10.0079 537926401 538185601 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 :                                   538.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            843 sec.

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

