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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1624
RA = 256.539, Dec = 10.0079
tmin = 660268801, tmax = 660528001
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='400138', job_status='RUN', time_executed='2021-12-08 03:11:16.369558', time_epoch_executed='1638961876.37' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1624'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/400138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/400138/ft1_4FGL_J1706.1+1000_daily_bin1624.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/400138/ft2_4FGL_J1706.1+1000_daily_bin1624.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/400138/ft1_4FGL_J1706.1+1000_daily_bin1624.fits outfile=/scratch/kocevski/400138/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1624.fits ra=256.539 dec=10.0079 rad=12.0 tmin=660268801.0 tmax=660528001.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 3.89
user 3.66
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/400138/ft1_filtered_4FGL_J1706.1+1000_daily_bin1624.fits evtable="EVENTS" scfile=/scratch/kocevski/400138/ft2_4FGL_J1706.1+1000_daily_bin1624.fits sctable="SC_DATA" expcube=/scratch/kocevski/400138/ltcube_660268801_660528001_4FGL_J1706.1+1000_daily_bin1624.fits outfile=/scratch/kocevski/400138/expmap_660268801_660528001_4FGL_J1706.1+1000_daily_bin1624.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/400138/ltcube_660268801_660528001_4FGL_J1706.1+1000_daily_bin1624.fits
.....................!
real 192.41
user 187.04
sys 5.02

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/400138/ft1_filtered_4FGL_J1706.1+1000_daily_bin1624.fits scfile=/scratch/kocevski/400138/ft2_4FGL_J1706.1+1000_daily_bin1624.fits outfile=/scratch/kocevski/400138/cmap_660268801_660528001_4FGL_J1706.1+1000_daily_bin1624.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/400138/ft1_filtered_4FGL_J1706.1+1000_daily_bin1624.fits scfile=/scratch/kocevski/400138/ft2_4FGL_J1706.1+1000_daily_bin1624.fits outfile=/scratch/kocevski/400138/cmap_HighResolution_660268801_660528001_4FGL_J1706.1+1000_daily_bin1624.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.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10111E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    40.920       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8482       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .31143E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5217       1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.8831       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0646       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0731       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=   10413.04     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2407 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.986        .22608E-04** at limit **
   2  Prefactor     .10000E-03    11.966       -.63196E-05** at limit **
   3  Prefactor     15.665        12.678       -.22883E-06    .74904E-05
   4  Prefactor     .10000E-03    2.9614        .69292E-07** at limit **
   5  Prefactor     .10000E-03    2.9493       -.67451E-07** at limit **
   6  Prefactor     .10000E-03    6.7780       -.78177E-06** at limit **
   7  Prefactor     40.910        36.644       -.83104E-05   -.20797E-04
   8  Prefactor     .10000E-03    30.027       -.22321E-04** at limit **
   9  Prefactor     .10000E-03    6.1347        .10168E-06** at limit **
  10  Prefactor     .10000E-03    15.915        .76062E-05** at limit **
  11  Prefactor     .10000E-03    74.434       -.12729E-04** at limit **
  12  norm          4.6777        3.0354       -.53469E-07   -.30578E-03
  13  Prefactor     6.8503        7.2465       -.31083E-07    .27840E-05
  14  norm          .10000E-03    3.7841       -.11028E-06** at limit **
  15  Prefactor     .10000E-03    72.240       -.28980E-05** at limit **
  16  Prefactor     .10054E-03    1.0702        .21224E-06** at limit **
  17  norm          .10000E-03    2.5851        .17506E-06** at limit **
  18  norm          1.5213        2.2888       -.67184E-07   -.43848E-03
  19  norm          .10000E-03    9.9653        .30569E-05** at limit **
  20  norm          1.8830        .87491       -.24441E-07   -.16463E-03
  21  Normalizat    1.0645        .27146        .23121E-05   -.12899E-03
  22  Prefactor     1.0732        .81481E-01   -.28568E-06   -.55434E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.9099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.67766
  Prefactor  = 6.85034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010054
  norm       = 0.0001
  norm       = 1.52128
  norm       = 0.0001
  norm       = 1.88296
  Normalizat = 1.06446
  Prefactor  = 1.07325
 **********
 **   18 **HESSE 
 **********

 FCN=   10413.04     FROM HESSE     STATUS=OK           346 CALLS     2753 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.665        12.675        .10118E-03   -1.4916    
   4  Prefactor     .10000E-03    2.9698        .17143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.0493        .34216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     40.910        36.818        .62664E-04   -1.4428    
   8  Prefactor     .10000E-03    30.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    74.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6777        3.0331        .13871E-03   -1.5275    
  13  Prefactor     6.8503        7.2452        .15332E-03   -1.5184    
  14  norm          .10000E-03    3.7879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    72.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10054E-03    2.2507        .36083E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.5888        .16023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5213        2.2646        .18441E-03   -1.5461    
  19  norm          .10000E-03    10.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.8830        .87607        .63061E-04   -1.5434    
  21  Normalizat    1.0645        .30917        .49028E-03   -.90901    
  22  Prefactor     1.0732        .93773E-01    .15083E-03   -.90326    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74917e-10
Minuit parameter uncertainties:
  1  1.00906e-05
  2  4.0366e-07
  3  12.677
  4  1.08674e-06
  5  4.23016e-06
  6  1.10288e-05
  7  36.8386
  8  3.06684e-06
  9  9.3052e-06
  10  2.13172e-05
  11  6.00104e-06
  12  3.03322
  13  7.24613
  14  2.31343e-06
  15  6.82122e-05
  16  0.00220491
  17  1.36867e-06
  18  2.26474
  19  1.54664e-05
  20  0.876075
  21  0.309698
  22  0.0937878
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  9.305e-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:  1.073e+00  9.379e-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.064e+00  3.097e-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.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/400138/likelihoodResults_660268801_660528001_4FGL_J1706.1+1000_daily_bin1624.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) = 10413.035981
delta logL = -0.000764036503824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10413.0352171
delta logL = -8.52014636621e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6773       1.0000          .0000       10.000    
     3 'Normalizat'    1.0643       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0733       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=   10413.04     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      262 TOTAL
                     EDM=   .64E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .99543        .78775E-01** at limit **
   2  Index         2.2483        6.0841        .50000        .40732E-06
   3  Normalizat    1.0645        .33067E-02    .49028E-03    .95026E-04
   4  Prefactor     1.0732        .10294E-02    .15083E-03    .32625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.24826
  Normalizat = 1.06446
  Prefactor  = 1.07325
 **********
 **   18 **HESSE 
 **********

 FCN=   10413.04     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      293 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    148.77        .40445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2483        6.7310        .50000       -.58278    
   3  Normalizat    1.0645        .29919E-01    .19611E-04   -.90901    
   4  Prefactor     1.0732        .93137E-02    .30166E-04   -.90326    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58019e-10
Minuit parameter uncertainties:
  1  0.000567649
  2  495.347
  3  0.0299191
  4  0.00931368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/400138': 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) = 10413.0352153
delta logL = 1.66767313203e-06

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  5.676e-04  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.248e+00  4.953e+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:  1.073e+00  9.314e-03  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.064e+00  2.992e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/400138/cmap_HighResolution_660268801_660528001_4FGL_J1706.1+1000_daily_bin1624.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.40e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-12-08 03:25:54.576177', job_id='400138', GAL2='1.07', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1638962754.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1624' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 03:25:54 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0176>
Subject: Job 400138: <4FGL_J1706.1+1000_daily_bin1624> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1624 256.539 10.0079 660268801 660528001 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 :                                   877.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            934 sec.

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

