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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1020
RA = 256.539, Dec = 10.0079
tmin = 503712001, tmax = 503971201
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='391670', job_status='RUN', time_executed='2021-09-16 15:46:23.800138', time_epoch_executed='1631832383.8' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391670

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391670/ft1_4FGL_J1706.1+1000_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391670/ft2_4FGL_J1706.1+1000_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391670/ft1_4FGL_J1706.1+1000_daily_bin1020.fits outfile=/scratch/kocevski/391670/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1020.fits ra=256.539 dec=10.0079 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.59
user 5.32
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391670/ft1_filtered_4FGL_J1706.1+1000_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/391670/ft2_4FGL_J1706.1+1000_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/391670/ltcube_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.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/391670/ft2_4FGL_J1706.1+1000_daily_bin1020.fits
.....................!
real 13.61
user 13.22
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391670/ft1_filtered_4FGL_J1706.1+1000_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/391670/ft2_4FGL_J1706.1+1000_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/391670/ltcube_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.fits outfile=/scratch/kocevski/391670/expmap_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.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/391670/ltcube_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.fits
.....................!
real 192.16
user 186.11
sys 5.67

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/391670/ft1_filtered_4FGL_J1706.1+1000_daily_bin1020.fits scfile=/scratch/kocevski/391670/ft2_4FGL_J1706.1+1000_daily_bin1020.fits outfile=/scratch/kocevski/391670/cmap_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391670/ft1_filtered_4FGL_J1706.1+1000_daily_bin1020.fits scfile=/scratch/kocevski/391670/ft2_4FGL_J1706.1+1000_daily_bin1020.fits outfile=/scratch/kocevski/391670/cmap_HighResolution_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .51520       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .80068       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6388       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    40.977       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    110.35       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    32.890       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6765       1.0000         .10000E-03   10000.    
    17 'norm      '    22.423       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.8493       1.0000         .10000E-03   10000.    
    20 'norm      '    .40850       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1463       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86510       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=   8368.280     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2460 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.384        .63056E-07** at limit **
   2  Prefactor     .10000E-03    21.255        .43456E-06** at limit **
   3  Prefactor     .10000E-03    5.4192        .18026E-06** at limit **
   4  Prefactor     .55114        6.9149       -.10547E-05    .50536E-03
   5  Prefactor     .79900        4.8281        .33878E-05    .15612E-03
   6  Prefactor     2.6431        7.7148        .11734E-05    .81927E-06
   7  Prefactor     .10000E-03    76.152        .23334E-05** at limit **
   8  Prefactor     40.958        60.800        .35577E-06   -.16750E-04
   9  Prefactor     .10000E-03    3.4809        .79734E-07** at limit **
  10  Prefactor     .10000E-03    7.0876        .39647E-06** at limit **
  11  Prefactor     109.73        178.41       -.25309E-05   -.42596E-04
  12  norm          .10000E-03    1.0827        .25783E-06** at limit **
  13  Prefactor     .10000E-03    5.2691        .10203E-06** at limit **
  14  norm          32.882        16.730       -.94606E-06   -.10885E-03
  15  Prefactor     .10000E-03    48.358        .24386E-06** at limit **
  16  Prefactor     1.6789        3.7156        .19725E-05    .18024E-03
  17  norm          22.420        12.297       -.86166E-07   -.15107E-04
  18  norm          .10000E-03    1.1738        .55314E-07** at limit **
  19  norm          3.8464        8.3320        .12334E-06    .10912E-04
  20  norm          .40836        .77723        .65182E-06    .48788E-03
  21  Normalizat    1.1454        .30930       -.98439E-05   -.67122E-04
  22  Prefactor     .86536        .87795E-01    .18495E-05   -.88548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.551141
  Prefactor  = 0.799003
  Prefactor  = 2.6431
  Prefactor  = 0.000100001
  Prefactor  = 40.958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 109.735
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 32.8823
  Prefactor  = 0.0001
  Prefactor  = 1.67892
  norm       = 22.4197
  norm       = 0.0001
  norm       = 3.84638
  norm       = 0.408356
  Normalizat = 1.14541
  Prefactor  = 0.865356
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.280     FROM HESSE     STATUS=OK           338 CALLS     2798 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55114        39.268        .44974E-02   -1.5559    
   5  Prefactor     .79900        4.9241        .39021E-03   -1.5529    
   6  Prefactor     2.6431        7.6595        .25100E-03   -1.5383    
   7  Prefactor     .10000E-03    76.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     40.958        60.817        .62621E-04   -1.4427    
   9  Prefactor     .10000E-03    3.4950        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.1097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     109.73        178.96        .19145E-03   -1.3609    
  12  norm          .10000E-03    1.0910        .93030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.2745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          32.882        16.570        .69871E-04   -1.4560    
  15  Prefactor     .10000E-03    48.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6789        3.7030        .22788E-03   -1.5449    
  17  norm          22.420        12.313        .84588E-04   -1.4761    
  18  norm          .10000E-03    1.1775        .96788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.8464        8.3344        .20569E-03   -1.5316    
  20  norm          .40836        .78267        .10746E-03   -1.5580    
  21  Normalizat    1.1454        .33423        .44702E-03   -.88307    
  22  Prefactor     .86536        .97091E-01    .14676E-03   -.97362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.16323e-09
Minuit parameter uncertainties:
  1  1.60372e-05
  2  6.91062e-05
  3  2.58061e-05
  4  9.30975
  5  3.96728
  6  7.66234
  7  0.000441541
  8  60.9095
  9  8.66556e-06
  10  2.64256e-05
  11  179.854
  12  4.66926e-06
  13  1.24507e-07
  14  16.5726
  15  3.57301e-05
  16  3.70351
  17  12.3147
  18  9.81073e-07
  19  8.33693
  20  0.782689
  21  0.334854
  22  0.0971102
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  8.666e-06  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:  8.654e-01  9.711e-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.145e+00  3.349e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/391670/likelihoodResults_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.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) = 8368.2817398
delta logL = -0.00136335378374

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8368.28037644
delta logL = 2.51748133451e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6921       1.0000          .0000       10.000    
     3 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86536       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=   8368.280     FROM MIGRAD    STATUS=FAILED        97 CALLS      256 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    592.34        .16695E-02** at limit **
   2  Index         2.3748        5.7335        .50000       -.37780E-06
   3  Normalizat    1.1454        .12262        .44702E-03    .15976E-03
   4  Prefactor     .86536        .35804E-01    .14676E-03    .57995E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8368.280     FROM SIMPLEX   STATUS=UNCHANGED    183 CALLS      439 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    592.34        .33342E-03** at limit **
   2  Index         2.3748        5.7335        .30019E-05   -.37780E-06
   3  Normalizat    1.1454        .12262        .16105E-06    .15976E-03
   4  Prefactor     .86536        .35804E-01    .23788E-07    .57995E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8368.280     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      473 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2806        .33390E-03** at limit **
   2  Index         2.3779        5.6468        .50000       -.18854E-06
   3  Normalizat    1.1454        .31847        .17881E-04    .15946E-03
   4  Prefactor     .86536        .93114E-01    .29351E-04    .57852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37793
  Normalizat = 1.1454
  Prefactor  = 0.865359
 **********
 **   18 **HESSE 
 **********

 FCN=   8368.280     FROM HESSE     STATUS=OK            29 CALLS      502 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6819        .66779E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3779        7.7572        .50000       -.55203    
   3  Normalizat    1.1454        .31836        .35762E-05   -.88307    
   4  Prefactor     .86536        .93086E-01    .58702E-05   -.97362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56014e-10
Minuit parameter uncertainties:
  1  3.49062e-05
  2  155.521
  3  0.318894
  4  0.0931029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391670': 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) = 8368.2803758
delta logL = 6.46552507533e-07

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  3.491e-05  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.378e+00  1.555e+02  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:  8.654e-01  9.310e-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.145e+00  3.189e-01  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/391670/cmap_HighResolution_503712001_503971201_4FGL_J1706.1+1000_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-16 15:59:46.944387', job_id='391670', GAL2='0.87', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631833186.94', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='6.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1020' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 15:59:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 391670: <4FGL_J1706.1+1000_daily_bin1020> in cluster <slac> Done

Job <4FGL_J1706.1+1000_daily_bin1020> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 15:45:23 2021
Job was executed on host(s) <bullet0298>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 15:46:15 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:46:15 2021
Terminated at Thu Sep 16 15:59:47 2021
Results reported at Thu Sep 16 15:59:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1020 256.539 10.0079 503712001 503971201 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 :                                   800.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            864 sec.

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

