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


Performing analysis on: 4FGL_J1706.1+1000_daily_bin1340
RA = 256.539, Dec = 10.0079
tmin = 586656001, tmax = 586915201
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='393161', job_status='RUN', time_executed='2021-09-16 15:51:24.473761', time_epoch_executed='1631832684.47' WHERE source_name='4FGL J1706.1+1000' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/393161

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/393161/ft1_4FGL_J1706.1+1000_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/393161/ft2_4FGL_J1706.1+1000_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/393161/ft1_4FGL_J1706.1+1000_daily_bin1340.fits outfile=/scratch/kocevski/393161/ft1_filteredMKT_4FGL_J1706.1+1000_daily_bin1340.fits ra=256.539 dec=10.0079 rad=12.0 tmin=586656001.0 tmax=586915201.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.75
user 3.47
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/393161/ft1_filtered_4FGL_J1706.1+1000_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/393161/ft2_4FGL_J1706.1+1000_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/393161/ltcube_586656001_586915201_4FGL_J1706.1+1000_daily_bin1340.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/393161/ft2_4FGL_J1706.1+1000_daily_bin1340.fits
.....................!
real 17.15
user 15.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/393161/ft1_filtered_4FGL_J1706.1+1000_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/393161/ft2_4FGL_J1706.1+1000_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/393161/ltcube_586656001_586915201_4FGL_J1706.1+1000_daily_bin1340.fits outfile=/scratch/kocevski/393161/expmap_586656001_586915201_4FGL_J1706.1+1000_daily_bin1340.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/393161/ltcube_586656001_586915201_4FGL_J1706.1+1000_daily_bin1340.fits
.....................!
real 192.97
user 186.99
sys 5.29

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/393161/ft1_filtered_4FGL_J1706.1+1000_daily_bin1340.fits scfile=/scratch/kocevski/393161/ft2_4FGL_J1706.1+1000_daily_bin1340.fits outfile=/scratch/kocevski/393161/cmap_586656001_586915201_4FGL_J1706.1+1000_daily_bin1340.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.57
user 0.41
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2191       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.5962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1394       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0399       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.189       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23521       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13855E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    224.45       1.0000         .10000E-03   10000.    
    12 'norm      '    .89551       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8794       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.5193       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .11539E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .97285       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0185       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=   10727.46     FROM MIGRAD    STATUS=CONVERGED    500 CALLS     2431 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1955        194.91        .36614E-05    .21469E-04
   2  Prefactor     3.5805        47.622        .12140E-05    .41372E-04
   3  Prefactor     .10000E-03    3.6679        .23805E-06** at limit **
   4  Prefactor     3.2576        9.7207        .78442E-06    .23507E-03
   5  Prefactor     4.1369        6.2106       -.23538E-06    .94762E-04
   6  Prefactor     3.0526        8.8052        .14678E-06    .20935E-03
   7  Prefactor     .10000E-03    8.9177       -.11124E-06** at limit **
   8  Prefactor     64.344        93.262       -.98981E-05   -.13823E-03
   9  Prefactor     .15371        7.7336       -.22667E-05    .10596E-02
  10  Prefactor     .10000E-03    24.518       -.46961E-07** at limit **
  11  Prefactor     224.42        185.40        .48267E-06    .31046E-04
  12  norm          .89427        2.1018       -.38863E-06   -.22771E-03
  13  Prefactor     .10000E-03    4.9411       -.24677E-07** at limit **
  14  norm          .10000E-03    3.8200       -.10089E-06** at limit **
  15  Prefactor     .10000E-03    21.665       -.27608E-06** at limit **
  16  Prefactor     3.8797        3.0942        .20234E-07    .33729E-03
  17  norm          .10000E-03    4.7924       -.33066E-06** at limit **
  18  norm          3.5187        3.2132       -.10059E-06    .12654E-07
  19  norm          .10000E-03    2.8545       -.74968E-07** at limit **
  20  norm          .10001E-03    .34894       -.27934E-06** at limit **
  21  Normalizat    .97322        .28464        .25300E-06    .35037E-03
  22  Prefactor     1.0185        .79257E-01    .60572E-06    .11947E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.19545
  Prefactor  = 3.5805
  Prefactor  = 0.0001
  Prefactor  = 3.25758
  Prefactor  = 4.13694
  Prefactor  = 3.05265
  Prefactor  = 0.0001
  Prefactor  = 64.344
  Prefactor  = 0.153711
  Prefactor  = 0.0001
  Prefactor  = 224.416
  norm       = 0.894273
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.87971
  norm       = 0.0001
  norm       = 3.51871
  norm       = 0.0001
  norm       = 0.000100006
  Normalizat = 0.973216
  Prefactor  = 1.01849
 **********
 **   18 **HESSE 
 **********

 FCN=   10727.46     FROM HESSE     STATUS=OK           354 CALLS     2785 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1955        195.44        .14929E-03   -1.5171    
   2  Prefactor     3.5805        47.548        .21308E-03   -1.5330    
   3  Prefactor     .10000E-03    3.6718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.2576        9.7978        .11209E-02   -1.5347    
   5  Prefactor     4.1369        6.1787        .19812E-03   -1.5301    
   6  Prefactor     3.0526        8.7378        .23272E-03   -1.5359    
   7  Prefactor     .10000E-03    8.9231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.344        98.534        .25044E-03   -1.4102    
   9  Prefactor     .15371        9.4558        .61886E-01   -1.5630    
  10  Prefactor     .10000E-03    25.601        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     224.42        185.90        .13502E-03   -1.2701    
  12  norm          .89427        2.0820        .22249E-03   -1.5519    
  13  Prefactor     .10000E-03    4.9487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.8226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.8797        3.0824        .15367E-03   -1.5314    
  17  norm          .10000E-03    4.8226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.5187        3.2170        .17183E-03   -1.5333    
  19  norm          .10000E-03    2.8582        .17091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    4.1495        .11331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .97322        .32344        .50317E-03   -.93933    
  22  Prefactor     1.0185        .91721E-01    .14708E-03   -.92116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12937e-08
Minuit parameter uncertainties:
  1  75.2748
  2  26.1208
  3  1.2793e-05
  4  9.80263
  5  6.17964
  6  8.74149
  7  1.35448e-05
  8  98.785
  9  2.41081
  10  3.77959e-05
  11  186.396
  12  2.08217
  13  4.03395e-07
  14  6.10666e-06
  15  4.761e-05
  16  3.08252
  17  3.00173e-05
  18  3.2172
  19  5.7441e-06
  20  0.000321352
  21  0.324088
  22  0.091735
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.537e-01  2.411e+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:  1.018e+00  9.174e-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.732e-01  3.241e-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.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/393161/likelihoodResults_586656001_586915201_4FGL_J1706.1+1000_daily_bin1340.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) = 10727.435832
delta logL = 0.0241580155871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10727.3910132
delta logL = 0.0689768254597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1758       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5756       1.0000          .0000       10.000    
     3 'Normalizat'    .94354       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0226       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10727.39     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      300 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1805        5.7531        .28504E-03   -.69400E-04
   2  Index         3.5767        2.3047        .75620E-02   -.42336E-05
   3  Normalizat    .94351        .30837        .51019E-03   -.10740E-04
   4  Prefactor     1.0226        .90312E-01    .14680E-03   -.12545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18051
  Index      = 3.57672
  Normalizat = 0.943512
  Prefactor  = 1.02257
 **********
 **   18 **HESSE 
 **********

 FCN=   10727.39     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1805        4.4953        .11402E-04   -1.5491    
   2  Index         3.5767        2.0086        .30248E-03   -.28865    
   3  Normalizat    .94351        .30871        .20408E-04   -.94948    
   4  Prefactor     1.0226        .90381E-01    .58722E-05   -.91981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19299e-12
Minuit parameter uncertainties:
  1  4.49661
  2  2.07253
  3  0.30929
  4  0.0903941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/393161': 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) = 10727.3910107
delta logL = 0.0689793546244

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  1.181e+00  4.497e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  3.577e+00  2.073e+00  0.000e+00  1.000e+01 (-1.000e+00)
267        Scale:  6.133e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
592    Prefactor:  1.023e+00  9.039e-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.435e-01  3.093e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/393161/cmap_HighResolution_586656001_586915201_4FGL_J1706.1+1000_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2021-09-16 16:06:37.877465', job_id='393161', GAL2='1.02', fit_tolerance='1e-08', EG2='0.94', EG='0.97', time_epoch_completed='1631833597.88', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='6.90e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.70' WHERE bin_id='1340' AND source_name='4FGL J1706.1+1000' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:06:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 393161: <4FGL_J1706.1+1000_daily_bin1340> in cluster <slac> Done

Job <4FGL_J1706.1+1000_daily_bin1340> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Thu Sep 16 15:50:23 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 15:51: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:51:13 2021
Terminated at Thu Sep 16 16:06:38 2021
Results reported at Thu Sep 16 16:06:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_daily_bin1340 256.539 10.0079 586656001 586915201 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 :                                   910.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             354.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            975 sec.

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

