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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1183
RA = 256.539, Dec = 10.0079
tmin = 545961601, tmax = 546220801
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='391911', job_status='RUN', time_executed='2021-09-16 15:50:59.469476', time_epoch_executed='1631832659.47' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391911

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391911/ft1_4FGL_J1706.1+1000_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391911/ft2_4FGL_J1706.1+1000_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391911/ft1_4FGL_J1706.1+1000_daily_bin1183.fits outfile=/scratch/kocevski/391911/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1183.fits ra=256.539 dec=10.0079 rad=12.0 tmin=545961601.0 tmax=546220801.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.11
user 3.86
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/391911/ft1_filtered_4FGL_J1706.1+1000_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/391911/ft2_4FGL_J1706.1+1000_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/391911/ltcube_545961601_546220801_4FGL_J1706.1+1000_daily_bin1183.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/391911/ft2_4FGL_J1706.1+1000_daily_bin1183.fits
.....................!
real 14.36
user 14.00
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391911/ft1_filtered_4FGL_J1706.1+1000_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/391911/ft2_4FGL_J1706.1+1000_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/391911/ltcube_545961601_546220801_4FGL_J1706.1+1000_daily_bin1183.fits outfile=/scratch/kocevski/391911/expmap_545961601_546220801_4FGL_J1706.1+1000_daily_bin1183.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/391911/ltcube_545961601_546220801_4FGL_J1706.1+1000_daily_bin1183.fits
.....................!
real 191.39
user 186.39
sys 4.48

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/391911/ft1_filtered_4FGL_J1706.1+1000_daily_bin1183.fits scfile=/scratch/kocevski/391911/ft2_4FGL_J1706.1+1000_daily_bin1183.fits outfile=/scratch/kocevski/391911/cmap_545961601_546220801_4FGL_J1706.1+1000_daily_bin1183.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.137       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.503       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .97482E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.329       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.010       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    31.311       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.897       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .77358       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .86797       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .97253       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=   3040.658     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2403 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.175        92.734        .60688E-06   -.17322E-04
   2  Prefactor     35.510        72.382       -.39306E-05   -.27024E-04
   3  Prefactor     .10000E-03    23.660       -.37900E-06** at limit **
   4  Prefactor     .10001E-03    610.78       -.37094E-04** at limit **
   5  Prefactor     .10000E-03    11.974        .27521E-05** at limit **
   6  Prefactor     13.333        19.622       -.18319E-05    .63521E-05
   7  Prefactor     .10000E-03    128.47       -.18077E-05** at limit **
   8  Prefactor     70.063        351.90        .38462E-05   -.13500E-04
   9  Prefactor     5.9403        45.951        .29623E-05   -.59068E-04
  10  Prefactor     .10000E-03    28.579        .66992E-07** at limit **
  11  Prefactor     .10000E-03    82.842        .20686E-05** at limit **
  12  norm          .10000E-03    9.0894        .16296E-07** at limit **
  13  Prefactor     .10000E-03    14.213        .78560E-06** at limit **
  14  norm          .10000E-03    16.187       -.39756E-06** at limit **
  15  Prefactor     31.187        240.91        .14385E-04   -.52370E-06
  16  Prefactor     .10000E-03    5.5726        .34697E-06** at limit **
  17  norm          16.893        21.413        .21477E-05   -.90685E-04
  18  norm          .10000E-03    3.4064        .19520E-06** at limit **
  19  norm          .10001E-03    32.455        .60136E-05** at limit **
  20  norm          .77396        2.4055        .38768E-05    .69161E-03
  21  Normalizat    .86793        .66856        .11487E-04   -.19872E-04
  22  Prefactor     .97260        .16441       -.52635E-05    .45467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.1747
  Prefactor  = 35.5104
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 13.3329
  Prefactor  = 0.000100001
  Prefactor  = 70.0633
  Prefactor  = 5.94031
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 31.1873
  Prefactor  = 0.0001
  norm       = 16.8934
  norm       = 0.0001
  norm       = 0.000100007
  norm       = 0.773956
  Normalizat = 0.867925
  Prefactor  = 0.972598
 **********
 **   18 **HESSE 
 **********

 FCN=   3040.658     FROM HESSE     STATUS=OK           342 CALLS     2745 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.175        92.818        .66667E-04   -1.4504    
   2  Prefactor     35.510        72.167        .67257E-04   -1.4515    
   3  Prefactor     .10000E-03    23.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    23.372        .61567E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.333        19.506        .10971E-03   -1.4978    
   7  Prefactor     .10000E-03    128.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     70.063        345.45        .47975E-04   -1.4032    
   9  Prefactor     5.9403        44.602        .16475E-03   -1.5220    
  10  Prefactor     .10000E-03    28.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    82.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    9.0896        .16239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    16.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     31.187        237.26        .71606E-04   -1.4590    
  16  Prefactor     .10000E-03    5.5820        .12711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.893        21.341        .97436E-04   -1.4886    
  18  norm          .10000E-03    3.4357        .99394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    32.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .77396        2.3261        .16075E-02   -1.5532    
  21  Normalizat    .86793        .70629        .58842E-03   -.97597    
  22  Prefactor     .97260        .17218        .14507E-03   -.93649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6635e-09
Minuit parameter uncertainties:
  1  93.1914
  2  72.3455
  3  0.000199859
  4  0.000931122
  5  8.48845e-05
  6  19.5156
  7  0.00081275
  8  314.106
  9  32.5881
  10  2.80285e-05
  11  0.000627873
  12  3.00869e-06
  13  4.22272e-05
  14  8.10176e-05
  15  173.003
  16  9.27997e-07
  17  21.3506
  18  1.43411e-05
  19  0.000963884
  20  2.32638
  21  0.714004
  22  0.17228
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  5.940e+00  3.259e+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.726e-01  1.723e-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.679e-01  7.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/391911/likelihoodResults_545961601_546220801_4FGL_J1706.1+1000_daily_bin1183.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) = 3040.65362097
delta logL = 0.00428003345633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3040.65340211
delta logL = 0.00449889422771

Fit tolerance = 1e-08

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

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

 FCN=   3040.653     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      285 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.6161        34.487        .16917E-03    .10937E-03
   2  Index         2.9110        2.3268        .10125E-01    .59659E-04
   3  Normalizat    .85898        .64446        .59122E-03   -.14194E-03
   4  Prefactor     .97403        .16577        .14497E-03    .70355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.61608
  Index      = 2.91095
  Normalizat = 0.858982
  Prefactor  = 0.97403
 **********
 **   18 **HESSE 
 **********

 FCN=   3040.653     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.6161        31.835        .67669E-05   -1.5234    
   2  Index         2.9110        2.2418        .40502E-03   -.43103    
   3  Normalizat    .85898        .64522        .23649E-04   -.97917    
   4  Prefactor     .97403        .16579        .28995E-04   -.93600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.28384e-09
Minuit parameter uncertainties:
  1  26.7639
  2  2.34445
  3  0.651132
  4  0.165882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391911': 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) = 3040.65339419
delta logL = 0.00450681237407

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  5.616e+00  2.676e+01  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.911e+00  2.344e+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:  9.740e-01  1.659e-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.590e-01  6.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/391911/cmap_HighResolution_545961601_546220801_4FGL_J1706.1+1000_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-02', job_status='DONE', photon_flux_upper_limit='5.53e-07', time_completed='2021-09-16 15:59:03.231142', job_id='391911', GAL2='0.97', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1631833143.23', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='4.51e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1183' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 15:59:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 391911: <4FGL_J1706.1+1000_daily_bin1183> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1183 256.539 10.0079 545961601 546220801 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 :                                   483.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            805 sec.

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

