/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7403
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1158
RA = 256.539, Dec = 10.0079
tmin = 539481601, tmax = 539740801
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='391874', job_status='RUN', time_executed='2021-09-16 15:47:57.610470', time_epoch_executed='1631832477.61' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/391874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/391874/ft1_4FGL_J1706.1+1000_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/391874/ft2_4FGL_J1706.1+1000_daily_bin1158.fits


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

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

Done.
real 5.17
user 4.93
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/391874/ft2_4FGL_J1706.1+1000_daily_bin1158.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/391874/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1158.fits evtable="EVENTS" outfile="/scratch/kocevski/391874/ft1_filtered_4FGL_J1706.1+1000_daily_bin1158.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/391874/ft1_filtered_4FGL_J1706.1+1000_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/391874/ft2_4FGL_J1706.1+1000_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/391874/ltcube_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.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/391874/ft2_4FGL_J1706.1+1000_daily_bin1158.fits
.....................!
real 14.07
user 13.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/391874/ft1_filtered_4FGL_J1706.1+1000_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/391874/ft2_4FGL_J1706.1+1000_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/391874/ltcube_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.fits outfile=/scratch/kocevski/391874/expmap_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.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/391874/ltcube_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.fits
.....................!
real 192.68
user 186.75
sys 5.45

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/391874/ft1_filtered_4FGL_J1706.1+1000_daily_bin1158.fits scfile=/scratch/kocevski/391874/ft2_4FGL_J1706.1+1000_daily_bin1158.fits outfile=/scratch/kocevski/391874/cmap_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.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/391874/ft1_filtered_4FGL_J1706.1+1000_daily_bin1158.fits scfile=/scratch/kocevski/391874/ft2_4FGL_J1706.1+1000_daily_bin1158.fits outfile=/scratch/kocevski/391874/cmap_HighResolution_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.80       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8082       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12671E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2477       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.566       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7870       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0602       1.0000         .10000E-03   10000.    
    14 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    239.24       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2952       1.0000         .10000E-03   10000.    
    17 'norm      '    9.4288       1.0000         .10000E-03   10000.    
    18 'norm      '    4.5427       1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.1604       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2823       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94861       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=   9532.378     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2429 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.79        91.947       -.24303E-06   -.41734E-04
   2  Prefactor     .10000E-03    13.780        .14413E-05** at limit **
   3  Prefactor     3.8096        7.9559        .62035E-05   -.71771E-03
   4  Prefactor     .10017E-03    5.1996        .77258E-06** at limit **
   5  Prefactor     5.2476        5.4546        .59415E-07   -.28578E-03
   6  Prefactor     14.565        8.3767       -.12006E-06   -.14771E-03
   7  Prefactor     .10000E-03    10.912       -.31694E-06** at limit **
   8  Prefactor     .10002E-03    40.224        .55174E-05** at limit **
   9  Prefactor     1.7843        12.686        .18354E-05   -.65497E-04
  10  Prefactor     .10001E-03    18.152       -.31044E-05** at limit **
  11  Prefactor     .10003E-03    51.106       -.67010E-05** at limit **
  12  norm          .10000E-03    3.0175        .11638E-06** at limit **
  13  Prefactor     5.0552        13.993        .52273E-06   -.54739E-05
  14  norm          .10000E-03    4.3993       -.25588E-08** at limit **
  15  Prefactor     239.19        110.05       -.45669E-05   -.37927E-03
  16  Prefactor     3.2939        3.5201        .27099E-06   -.86958E-04
  17  norm          9.4293        11.479        .22997E-05   -.22704E-03
  18  norm          4.5430        4.1158        .45119E-06    .26223E-03
  19  norm          .10000E-03    5.1880       -.26812E-06** at limit **
  20  norm          3.1605        1.1819        .30753E-07   -.26310E-04
  21  Normalizat    1.2826        .30206        .11715E-06   -.12246E-03
  22  Prefactor     .94853        .84269E-01   -.46514E-06   -.11508E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.791
  Prefactor  = 0.000100001
  Prefactor  = 3.8096
  Prefactor  = 0.00010017
  Prefactor  = 5.24755
  Prefactor  = 14.565
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 1.78435
  Prefactor  = 0.000100006
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 5.05517
  norm       = 0.0001
  Prefactor  = 239.187
  Prefactor  = 3.29388
  norm       = 9.42931
  norm       = 4.543
  norm       = 0.0001
  norm       = 3.16045
  Normalizat = 1.28261
  Prefactor  = 0.948535
 **********
 **   18 **HESSE 
 **********

 FCN=   9532.378     FROM HESSE     STATUS=OK           342 CALLS     2771 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.79        91.926        .38214E-04   -1.3599    
   2  Prefactor     .10000E-03    13.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.8096        8.1455        .10342E-02   -1.5318    
   4  Prefactor     .10017E-03    24.358        .42120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2476        5.4524        .17547E-03   -1.5250    
   6  Prefactor     14.565        8.3539        .10495E-03   -1.4944    
   7  Prefactor     .10000E-03    10.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    41.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.7843        12.582        .31295E-03   -1.5441    
  10  Prefactor     .10001E-03    18.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    52.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0964        .33105E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0552        13.939        .17875E-03   -1.5258    
  14  norm          .10000E-03    4.4015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     239.19        112.52        .13088E-03   -1.2602    
  16  Prefactor     3.2939        3.4999        .17694E-03   -1.5345    
  17  norm          9.4293        11.486        .65256E-03   -1.5094    
  18  norm          4.5430        4.1396        .18066E-03   -1.5282    
  19  norm          .10000E-03    5.1997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.1605        1.1817        .62694E-04   -1.5352    
  21  Normalizat    1.2826        .35103        .48392E-03   -.84087    
  22  Prefactor     .94853        .99827E-01    .15856E-03   -.94465    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.78734e-09
Minuit parameter uncertainties:
  1  92.0449
  2  0.000255303
  3  8.14786
  4  0.00407388
  5  5.45291
  6  8.3546
  7  5.65538e-05
  8  0.00174037
  9  9.47893
  10  0.000650422
  11  0.00242741
  12  2.14159e-06
  13  13.9482
  14  1.94285e-06
  15  112.619
  16  3.5001
  17  11.4886
  18  4.13984
  19  2.09173e-05
  20  1.18172
  21  0.351681
  22  0.0998468
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.784e+00  9.479e+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

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  9.485e-01  9.985e-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.283e+00  3.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/391874/likelihoodResults_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.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) = 9532.29683588
delta logL = 0.0807547848399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9532.29424007
delta logL = 0.0833505957507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7839       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4582       1.0000          .0000       10.000    
     3 'Normalizat'    1.2581       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95211       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=   9532.294     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      268 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7795        8.1381        .28019E-03    .52180E-04
   2  Index         3.4613        2.3679        .91611E-02    .11933E-03
   3  Normalizat    1.2580        .34194        .48784E-03   -.16779E-05
   4  Prefactor     .95214        .96846E-01    .15827E-03   -.68959E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77953
  Index      = 3.46132
  Normalizat = 1.25796
  Prefactor  = 0.952139
 **********
 **   18 **HESSE 
 **********

 FCN=   9532.294     FROM HESSE     STATUS=OK            27 CALLS      295 TOTAL
                     EDM=   .59E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7795        6.2830        .56037E-04   -1.5441    
   2  Index         3.4613        1.9831        .18322E-02   -.31281    
   3  Normalizat    1.2580        .34238        .19514E-04   -.84830    
   4  Prefactor     .95214        .96929E-01    .63307E-05   -.94342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94431e-14
Minuit parameter uncertainties:
  1  6.2853
  2  2.04551
  3  0.342995
  4  0.0969469
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/391874': 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) = 9532.29423862
delta logL = 0.0833520473752

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.780e+00  6.285e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  3.461e+00  2.046e+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.521e-01  9.695e-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.258e+00  3.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/391874/cmap_HighResolution_539481601_539740801_4FGL_J1706.1+1000_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.82e-07', time_completed='2021-09-16 16:02:10.631809', job_id='391874', GAL2='0.95', fit_tolerance='1e-08', EG2='1.26', EG='1.28', time_epoch_completed='1631833330.63', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='8.34e-02', ts2='0.22', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1158' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:02:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 391874: <4FGL_J1706.1+1000_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1158 256.539 10.0079 539481601 539740801 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 :                                   850.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             335.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            994 sec.

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

