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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1196
RA = 256.539, Dec = 10.0079
tmin = 549331201, tmax = 549590401
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='391930', job_status='RUN', time_executed='2021-09-16 15:50:29.026289', time_epoch_executed='1631832629.03' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1196'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391930/ft1_4FGL_J1706.1+1000_daily_bin1196.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391930/ft2_4FGL_J1706.1+1000_daily_bin1196.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391930/ft1_4FGL_J1706.1+1000_daily_bin1196.fits outfile=/scratch/kocevski/391930/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1196.fits ra=256.539 dec=10.0079 rad=12.0 tmin=549331201.0 tmax=549590401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.86
user 2.62
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391930/ft1_filtered_4FGL_J1706.1+1000_daily_bin1196.fits evtable="EVENTS" scfile=/scratch/kocevski/391930/ft2_4FGL_J1706.1+1000_daily_bin1196.fits sctable="SC_DATA" expcube=/scratch/kocevski/391930/ltcube_549331201_549590401_4FGL_J1706.1+1000_daily_bin1196.fits outfile=/scratch/kocevski/391930/expmap_549331201_549590401_4FGL_J1706.1+1000_daily_bin1196.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/391930/ltcube_549331201_549590401_4FGL_J1706.1+1000_daily_bin1196.fits
.....................!
real 193.38
user 187.79
sys 5.07

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/391930/ft1_filtered_4FGL_J1706.1+1000_daily_bin1196.fits scfile=/scratch/kocevski/391930/ft2_4FGL_J1706.1+1000_daily_bin1196.fits outfile=/scratch/kocevski/391930/cmap_549331201_549590401_4FGL_J1706.1+1000_daily_bin1196.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/391930/ft1_filtered_4FGL_J1706.1+1000_daily_bin1196.fits scfile=/scratch/kocevski/391930/ft2_4FGL_J1706.1+1000_daily_bin1196.fits outfile=/scratch/kocevski/391930/cmap_HighResolution_549331201_549590401_4FGL_J1706.1+1000_daily_bin1196.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11609E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.245       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.618       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13365       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .20140E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    136.23       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.756       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15509E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10438E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.2813       1.0000         .10000E-03   10000.    
    17 'norm      '    .25280E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.488       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1820       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93897       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97968       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=   4170.286     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2432 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    320.50        .97166E-06** at limit **
   2  Prefactor     94.266        92.144        .13537E-05    .20427E-03
   3  Prefactor     29.627        35.157        .17578E-05    .38255E-03
   4  Prefactor     .10000E-03    7.3929       -.31248E-07** at limit **
   5  Prefactor     .43227E-03    44.533       -.64036E-05** at limit **
   6  Prefactor     .10021E-03    15.958       -.34227E-05** at limit **
   7  Prefactor     .10000E-03    199.22        .48629E-06** at limit **
   8  Prefactor     136.42        173.50       -.13826E-05    .86443E-04
   9  Prefactor     23.765        25.974        .29855E-05    .67403E-03
  10  Prefactor     .10000E-03    10.946        .48900E-06** at limit **
  11  Prefactor     .10000E-03    1209.8       -.74796E-06** at limit **
  12  norm          .10000E-03    3.4846        .84012E-06** at limit **
  13  Prefactor     .10000E-03    15.155       -.14853E-05** at limit **
  14  norm          .10000E-03    7.6889       -.64319E-07** at limit **
  15  Prefactor     .10000E-03    179.90       -.22617E-05** at limit **
  16  Prefactor     1.2806        5.4485        .11803E-05    .30643E-03
  17  norm          .10000E-03    26.855       -.10619E-05** at limit **
  18  norm          .10000E-03    7.1593       -.24378E-07** at limit **
  19  norm          17.492        26.400        .19757E-05    .26043E-03
  20  norm          1.1819        1.5713        .22557E-06    .51631E-03
  21  Normalizat    .93891        .41654       -.60862E-06    .20406E-03
  22  Prefactor     .97972        .13363       -.15821E-06    .72807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Prefactor  = 94.2665
  Prefactor  = 29.6269
  Prefactor  = 0.0001
  Prefactor  = 0.000432267
  Prefactor  = 0.000100212
  Prefactor  = 0.0001
  Prefactor  = 136.417
  Prefactor  = 23.7654
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.28064
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 17.4921
  norm       = 1.18194
  Normalizat = 0.938908
  Prefactor  = 0.979725
 **********
 **   18 **HESSE 
 **********

 FCN=   4170.286     FROM HESSE     STATUS=OK           344 CALLS     2776 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    319.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     94.266        92.157        .41399E-04   -1.3763    
   3  Prefactor     29.627        35.224        .73618E-04   -1.4619    
   4  Prefactor     .10000E-03    7.3945        .17149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .43227E-03    28.949        .91207E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10021E-03    80.949        .42450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    202.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     136.42        173.21        .17253E-03   -1.3367    
   9  Prefactor     23.765        26.211        .82184E-04   -1.4733    
  10  Prefactor     .10000E-03    10.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1209.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.9410        .22370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.6973        .17483E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    180.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.2806        5.2839        .27321E-03   -1.5482    
  17  norm          .10000E-03    287.40        .62180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.1606        .16877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.492        25.865        .95773E-04   -1.4871    
  20  norm          1.1819        1.5475        .88805E-04   -1.5491    
  21  Normalizat    .93891        .47928        .50509E-03   -.95106    
  22  Prefactor     .97972        .15791        .15819E-03   -.93408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32812e-09
Minuit parameter uncertainties:
  1  0.0017857
  2  92.2969
  3  35.2489
  4  4.86999e-06
  5  0.196245
  6  0.00830075
  7  8.42358e-05
  8  173.864
  9  26.2241
  10  6.25286e-05
  11  0.00236583
  12  1.84064e-05
  13  0.000258806
  14  1.70681e-05
  15  0.00145426
  16  5.20319
  17  0.000846732
  18  2.59124e-06
  19  25.8819
  20  1.54753
  21  0.481486
  22  0.157983
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  2.377e+01  2.622e+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:  9.797e-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:  9.389e-01  4.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 256.539 10.008
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 1.87e-07 +/- 2.06e-07
Energy Flux (Fixed Index): 4.51e-05 +/- 4.97e-05

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

Saving results to:
/scratch/kocevski/391930/likelihoodResults_549331201_549590401_4FGL_J1706.1+1000_daily_bin1196.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) = 4169.84537134
delta logL = 0.440297332069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4169.81494338
delta logL = 0.470725289539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1160       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4096       1.0000          .0000       10.000    
     3 'Normalizat'    .80910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0135       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=   4169.815     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      252 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1160        67.460        .49675E-02    .74460E-04
   2  Index         4.4097        3.9962        .14309        .84604E-04
   3  Normalizat    .80895        .14057        .12158        .20462E-04
   4  Prefactor     1.0136        .44431E-01    .42854E-01   -.25930E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.116
  Index      = 4.40971
  Normalizat = 0.808945
  Prefactor  = 1.01359
 **********
 **   18 **HESSE 
 **********

 FCN=   4169.815     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1160        113.92        .94944E-04   -1.5302    
   2  Index         4.4097        7.2042        .53939E-02   -.11833    
   3  Normalizat    .80895        .45275        .53942E-03   -.99738    
   4  Prefactor     1.0136        .14978        .15573E-03   -.92278    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.49994e-09
Minuit parameter uncertainties:
  1  43.3991
  2  7.09927
  3  0.454887
  4  0.149843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391930': 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) = 4169.8149433
delta logL = 0.470725373862

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  4.116e+00  4.340e+01  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  4.410e+00  7.099e+00  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.014e+00  1.498e-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:  8.089e-01  4.549e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.31
Ra Dec: 256.539 10.008
Photon Index (Free Index): 4.41 +/- 7.10
Photon Flux (Free Index): 3.61e-07 +/- 2.96e-07
Energy Flux (Free Index): 5.09e-05 +/- 4.93e-05

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/391930/cmap_HighResolution_549331201_549590401_4FGL_J1706.1+1000_daily_bin1196.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-02', comment='SUCCESS', photon_flux='1.87e-07', energy_flux2='5.09e-05', photon_flux_error='2.06e-07', dlogl='4.71e-01', energy_flux='4.51e-05', photon_flux2='3.61e-07', job_status='DONE', time_completed='2021-09-16 15:59:21.895107', photon_index_error2='7.10', photon_index2='4.41', ts='1.21', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.57e-07', energy_flux_error2='4.93e-05', EG='0.94', time_epoch_completed='1631833161.9', return_code='0', job_id='391930', GAL2='1.01', EG2='0.81', return_code2='102', energy_flux_error='4.97e-05', photon_flux_error2='2.96e-07', ts2='2.31', photon_index='2.70' WHERE bin_id='1196' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 15:59:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 391930: <4FGL_J1706.1+1000_daily_bin1196> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1196 256.539 10.0079 549331201 549590401 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 :                                   533.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            821 sec.

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

