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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1194
RA = 256.539, Dec = 10.0079
tmin = 548812801, tmax = 549072001
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='391927', job_status='RUN', time_executed='2021-09-16 15:51:22.690997', time_epoch_executed='1631832682.69' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1194'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391927/ft1_4FGL_J1706.1+1000_daily_bin1194.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391927/ft2_4FGL_J1706.1+1000_daily_bin1194.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/391927/ft1_4FGL_J1706.1+1000_daily_bin1194.fits outfile=/scratch/kocevski/391927/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1194.fits ra=256.539 dec=10.0079 rad=12.0 tmin=548812801.0 tmax=549072001.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.82
user 2.61
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391927/ft1_filtered_4FGL_J1706.1+1000_daily_bin1194.fits evtable="EVENTS" scfile=/scratch/kocevski/391927/ft2_4FGL_J1706.1+1000_daily_bin1194.fits sctable="SC_DATA" expcube=/scratch/kocevski/391927/ltcube_548812801_549072001_4FGL_J1706.1+1000_daily_bin1194.fits outfile=/scratch/kocevski/391927/expmap_548812801_549072001_4FGL_J1706.1+1000_daily_bin1194.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/391927/ltcube_548812801_549072001_4FGL_J1706.1+1000_daily_bin1194.fits
.....................!
real 194.36
user 186.19
sys 5.05

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/391927/ft1_filtered_4FGL_J1706.1+1000_daily_bin1194.fits scfile=/scratch/kocevski/391927/ft2_4FGL_J1706.1+1000_daily_bin1194.fits outfile=/scratch/kocevski/391927/cmap_548812801_549072001_4FGL_J1706.1+1000_daily_bin1194.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/391927/ft1_filtered_4FGL_J1706.1+1000_daily_bin1194.fits scfile=/scratch/kocevski/391927/ft2_4FGL_J1706.1+1000_daily_bin1194.fits outfile=/scratch/kocevski/391927/cmap_HighResolution_548812801_549072001_4FGL_J1706.1+1000_daily_bin1194.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/391927/ft1_filtered_4FGL_J1706.1+1000_daily_bin1194.fits evtable="EVENTS" scfile=/scratch/kocevski/391927/ft2_4FGL_J1706.1+1000_daily_bin1194.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/391927/Model_4FGL_J1706.1+1000_daily_bin1194.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/391927/ft1_filtered_4FGL_J1706.1+1000_daily_bin1194.fits.....................!
real 50.09
user 48.28
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    303.01       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14245E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.663       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .21492E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10237E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.507       1.0000         .10000E-03   10000.    
    14 'norm      '    .24643       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9470       1.0000         .10000E-03   10000.    
    17 'norm      '    .10004E-03   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      '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .93760       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .99247       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=   5155.864     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2455 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     303.14        327.91        .65840E-05   -.16847E-04
   2  Prefactor     .10000E-03    35.878       -.38872E-06** at limit **
   3  Prefactor     .10000E-03    20.270        .75076E-06** at limit **
   4  Prefactor     .10000E-03    14.429        .10135E-05** at limit **
   5  Prefactor     .10013E-03    13.033        .81839E-05** at limit **
   6  Prefactor     16.670        16.201       -.19141E-06   -.73969E-04
   7  Prefactor     15.853        34.899        .50067E-06   -.73509E-05
   8  Prefactor     .10007E-03    531.80       -.24357E-04** at limit **
   9  Prefactor     .10000E-03    47.778        .54199E-05** at limit **
  10  Prefactor     .10000E-03    13.743        .46898E-06** at limit **
  11  Prefactor     .10000E-03    326.38        .88548E-05** at limit **
  12  norm          .10000E-03    3.2051        .54442E-06** at limit **
  13  Prefactor     34.488        27.632        .77069E-06   -.13663E-03
  14  norm          .30908        138.95       -.33775E-04    .13076E-03
  15  Prefactor     .10000E-03    92.569       -.28997E-05** at limit **
  16  Prefactor     1.9519        5.9760       -.64215E-06   -.21738E-03
  17  norm          .10000E-03    32.558        .53603E-06** at limit **
  18  norm          .10000E-03    6.3173        .60242E-07** at limit **
  19  norm          .10000E-03    11.276        .33566E-06** at limit **
  20  norm          .10000E-03    .56778        .27083E-06** at limit **
  21  Normalizat    .93752        .36270       -.35456E-05   -.13814E-03
  22  Prefactor     .99243        .11607       -.35888E-06   -.20980E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 303.136
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100129
  Prefactor  = 16.6705
  Prefactor  = 15.8528
  Prefactor  = 0.000100075
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 34.488
  norm       = 0.309081
  Prefactor  = 0.0001
  Prefactor  = 1.95186
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.93752
  Prefactor  = 0.992432
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     303.14        327.57        .11668E-03   -1.2208    
   2  Prefactor     .10000E-03    35.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10013E-03    36.585        .36359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.670        16.104        .98118E-04   -1.4891    
   7  Prefactor     15.853        35.085        .10065E-03   -1.4911    
   8  Prefactor     .10007E-03    523.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    50.305        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    326.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3662        .25146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     34.488        27.589        .68219E-04   -1.4533    
  14  norm          .30908        181.19        .49473E-02   -1.5597    
  15  Prefactor     .10000E-03    92.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.9519        6.2677        .13108E-02   -1.5429    
  17  norm          .10000E-03    32.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.3225        .17627E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .97483        .10525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93752        .40893        .48716E-03   -.95154    
  22  Prefactor     .99243        .13023        .15462E-03   -.92982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22201e-09
Minuit parameter uncertainties:
  1  329.593
  2  0.000193092
  3  0.000150395
  4  4.49549e-05
  5  0.00435492
  6  16.1078
  7  35.1306
  8  0.0126182
  9  0.000737154
  10  0.000154119
  11  0.00119847
  12  6.04406e-05
  13  27.5989
  14  15.0104
  15  0.000430289
  16  6.26984
  17  0.000235145
  18  1.01061e-05
  19  3.67894e-05
  20  9.34612e-06
  21  0.410298
  22  0.130273
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  7.372e-04  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.924e-01  1.303e-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.375e-01  4.103e-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: 3.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/391927/likelihoodResults_548812801_549072001_4FGL_J1706.1+1000_daily_bin1194.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) = 5155.86440575
delta logL = -9.47930138864e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5155.86431143
delta logL = -4.6931381803e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14706E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7549       1.0000          .0000       10.000    
     3 'Normalizat'    .93753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99247       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=   5155.864     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      236 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    39.163        .90712E-01** at limit **
   2  Index         2.8246        5.7852        .50000       -.11053E-04
   3  Normalizat    .93752        .16634E-01    .10988        .12018E-04
   4  Prefactor     .99243        .54551E-02    .34992E-01   -.34489E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Index      = 2.82464
  Normalizat = 0.937524
  Prefactor  = 0.992431
 **********
 **   18 **HESSE 
 **********

 FCN=   5155.864     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      271 TOTAL
                     EDM=   .94E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    8660.6        .47720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8246        5.6960        .50000       -.45012    
   3  Normalizat    .93752        .14516        .48716E-03   -.95154    
   4  Prefactor     .99243        .47249E-01    .15462E-03   -.92982    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.44307e-08
Minuit parameter uncertainties:
  1  0.0251943
  2  55.2553
  3  0.145225
  4  0.0472509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391927': 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) = 5155.86431065
delta logL = 3.10866198561e-07

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.000e-04  2.519e-02  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.825e+00  5.526e+01  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.924e-01  4.725e-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:  9.375e-01  1.452e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/391927/cmap_HighResolution_548812801_549072001_4FGL_J1706.1+1000_daily_bin1194.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.36e-02', job_status='DONE', photon_flux_upper_limit='3.00e-07', time_completed='2021-09-16 16:01:04.186250', job_id='391927', GAL2='0.99', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1631833264.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1194' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:01:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 391927: <4FGL_J1706.1+1000_daily_bin1194> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1194 256.539 10.0079 548812801 549072001 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 :                                   575.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            924 sec.

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

