aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 91 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 = 17469
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1706.1+1000_weekly_bin730
RA = 256.539, Dec = 10.0079
tmin = 680486401, tmax = 681091201
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='659605', job_status='RUN', time_executed='2022-08-02 02:22:47.395888', time_epoch_executed='1659432167.4' WHERE source_name='4FGL J1706.1+1000' and cadence='weekly' and bin_id='730'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/659605

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/659605/ft1_4FGL_J1706.1+1000_weekly_bin730.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/659605/ft2_4FGL_J1706.1+1000_weekly_bin730.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/659605/ft1_4FGL_J1706.1+1000_weekly_bin730.fits outfile=/scratch/kocevski/659605/ft1_filteredMKT_4FGL_J1706.1+1000_weekly_bin730.fits ra=256.539 dec=10.0079 rad=12.0 tmin=680486401.0 tmax=681091201.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 6.24
user 5.94
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/659605/ft2_4FGL_J1706.1+1000_weekly_bin730.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/659605/ft1_filteredMKT_4FGL_J1706.1+1000_weekly_bin730.fits evtable="EVENTS" outfile="/scratch/kocevski/659605/ft1_filtered_4FGL_J1706.1+1000_weekly_bin730.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.55
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 2846

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/659605/ft1_filtered_4FGL_J1706.1+1000_weekly_bin730.fits" evtable="EVENTS" scfile=/scratch/kocevski/659605/ft2_4FGL_J1706.1+1000_weekly_bin730.fits sctable="SC_DATA" outfile=/scratch/kocevski/659605/ltcube_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.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/659605/ft2_4FGL_J1706.1+1000_weekly_bin730.fits
.....................!
real 32.65
user 32.24
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/659605/ft1_filtered_4FGL_J1706.1+1000_weekly_bin730.fits evtable="EVENTS" scfile=/scratch/kocevski/659605/ft2_4FGL_J1706.1+1000_weekly_bin730.fits sctable="SC_DATA" expcube=/scratch/kocevski/659605/ltcube_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.fits outfile=/scratch/kocevski/659605/expmap_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.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/659605/ltcube_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.fits
.....................!
real 192.78
user 186.59
sys 5.79

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/659605/ft1_filtered_4FGL_J1706.1+1000_weekly_bin730.fits scfile=/scratch/kocevski/659605/ft2_4FGL_J1706.1+1000_weekly_bin730.fits outfile=/scratch/kocevski/659605/cmap_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.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.59
user 0.44
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/659605/ft1_filtered_4FGL_J1706.1+1000_weekly_bin730.fits scfile=/scratch/kocevski/659605/ft2_4FGL_J1706.1+1000_weekly_bin730.fits outfile=/scratch/kocevski/659605/cmap_HighResolution_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.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.59
user 0.43
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.736       1.0000         .10000E-03   10000.    
    14 'norm      '    .10244E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.340       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9357       1.0000         .10000E-03   10000.    
    17 'norm      '    2.9036       1.0000         .10000E-03   10000.    
    18 'norm      '    .60403       1.0000         .10000E-03   10000.    
    19 'norm      '    .11309E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.1494       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .96684       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0563       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=   30694.44     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2403 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    84.529        .14171E-05** at limit **
   2  Prefactor     .10000E-03    5.8272        .41833E-07** at limit **
   3  Prefactor     .10000E-03    1.2965        .27660E-07** at limit **
   4  Prefactor     .10000E-03    1.3297        .34478E-07** at limit **
   5  Prefactor     .10000E-03    .89672        .26769E-07** at limit **
   6  Prefactor     .10000E-03    2.0583        .17683E-06** at limit **
   7  Prefactor     .10000E-03    4.6563        .34714E-07** at limit **
   8  Prefactor     .10000E-03    17.614        .19695E-06** at limit **
   9  Prefactor     3.7463        4.1169        .25224E-05   -.10702E-03
  10  Prefactor     .10000E-03    3.9411        .94264E-07** at limit **
  11  Prefactor     .10000E-03    131.57       -.42749E-05** at limit **
  12  norm          .10000E-03    .33121        .18960E-07** at limit **
  13  Prefactor     10.739        8.1591       -.30845E-06   -.33698E-04
  14  norm          .10000E-03    10.996        .15321E-06** at limit **
  15  Prefactor     30.250        50.537        .98858E-05   -.14055E-04
  16  Prefactor     4.9361        2.0946       -.19978E-08   -.93195E-04
  17  norm          2.9069        4.0010       -.53653E-06   -.14741E-03
  18  norm          .60494        1.6614        .32370E-06   -.42515E-03
  19  norm          .10000E-03    3.6264       -.12271E-05** at limit **
  20  norm          1.1496        .52183       -.84253E-08   -.22639E-03
  21  Normalizat    .96699        .14619       -.17489E-05   -.50584E-04
  22  Prefactor     1.0563        .47236E-01    .11066E-06   -.12447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.7389
  norm       = 0.0001
  Prefactor  = 30.25
  Prefactor  = 4.93605
  norm       = 2.90688
  norm       = 0.60494
  norm       = 0.0001
  norm       = 1.14958
  Normalizat = 0.966993
  Prefactor  = 1.05627
 **********
 **   18 **HESSE 
 **********

 FCN=   30694.44     FROM HESSE     STATUS=OK           338 CALLS     2741 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.8435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.3027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.3470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .91053        .16196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1257        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7463        4.1267        .10430E-02   -1.5321    
  10  Prefactor     .10000E-03    4.0116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    131.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .33469        .98443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.739        8.1426        .12228E-03   -1.5052    
  14  norm          .10000E-03    11.376        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.250        50.588        .72740E-04   -1.4607    
  16  Prefactor     4.9361        2.0786        .15211E-03   -1.5264    
  17  norm          2.9069        3.9924        .23846E-03   -1.5367    
  18  norm          .60494        2.8394        .35763E-02   -1.5552    
  19  norm          .10000E-03    3.7339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.1496        .52154        .82577E-04   -1.5494    
  21  Normalizat    .96699        .16688        .48162E-03   -.94145    
  22  Prefactor     1.0563        .54777E-01    .14848E-03   -.90877    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93216e-07
Minuit parameter uncertainties:
  1  2.55824e-06
  2  6.9394e-06
  3  1.84186e-06
  4  2.1166e-06
  5  1.03172e-06
  6  3.07936e-06
  7  4.84912e-06
  8  7.05855e-06
  9  4.12696
  10  8.79005e-06
  11  0.000149591
  12  6.1904e-07
  13  8.14341
  14  1.29383e-05
  15  50.6594
  16  2.07861
  17  3.99273
  18  2.62119
  19  8.3005e-05
  20  0.52154
  21  0.166969
  22  0.0547803
Done.

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

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  3.746e+00  4.127e+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.056e+00  5.478e-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.670e-01  1.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 256.539 10.008
Photon Index (Fixed Index): 2.70 +/- 0.00
Photon Flux (Fixed Index): 2.95e-08 +/- 3.24e-08
Energy Flux (Fixed Index): 7.11e-06 +/- 7.83e-06

TS (Fixed Index): 1.02
Ra Dec: 256.539 10.008
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/659605/likelihoodResults_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.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) = 30694.4022167
delta logL = 0.0391160884246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 30694.396622
delta logL = 0.0447108013032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3642       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9307       1.0000          .0000       10.000    
     3 'Normalizat'    .96023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0575       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=   30694.40     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      269 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3604        4.3114        .22063E-03    .70491E-04
   2  Index         2.9329        .85719        .97275E-02    .16063E-04
   3  Normalizat    .96039        .16696        .48309E-03    .44055E-04
   4  Prefactor     1.0574        .53214E-01    .14840E-03    .13514E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.3604
  Index      = 2.93288
  Normalizat = 0.960388
  Prefactor  = 1.05744
 **********
 **   18 **HESSE 
 **********

 FCN=   30694.40     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .26E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3604        4.0698        .88252E-05   -1.5341    
   2  Index         2.9329        .80904        .38910E-03   -.42621    
   3  Normalizat    .96039        .16704        .19323E-04   -.94370    
   4  Prefactor     1.0574        .53220E-01    .59360E-05   -.90839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57538e-12
Minuit parameter uncertainties:
  1  4.07015
  2  0.813359
  3  0.167133
  4  0.0532231
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/659605': 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) = 30694.3966172
delta logL = 0.0447155227375

Extracting fit parameters...

4FGL J1706.1+1000
   Spectrum: PowerLaw
265    Prefactor:  3.360e+00  4.070e+00  1.000e-04  1.000e+04 ( 1.000e-12)
266        Index:  2.933e+00  8.134e-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:  1.057e+00  5.322e-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.604e-01  1.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 256.539 10.008
Photon Index (Free Index): 2.93 +/- 0.81
Photon Flux (Free Index): 3.56e-08 +/- 3.99e-08
Energy Flux (Free Index): 7.35e-06 +/- 7.63e-06

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/659605/cmap_HighResolution_680486401_681091201_4FGL_J1706.1+1000_weekly_bin730.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', comment='SUCCESS', photon_flux='2.95e-08', energy_flux2='7.35e-06', photon_flux_error='3.24e-08', dlogl='4.47e-02', energy_flux='7.11e-06', photon_flux2='3.56e-08', job_status='DONE', time_completed='2022-08-02 02:56:11.245535', photon_index_error2='0.81', photon_index2='2.93', ts='1.02', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='7.63e-06', EG='0.97', time_epoch_completed='1659434171.25', return_code='0', job_id='659605', GAL2='1.06', EG2='0.96', return_code2='0', energy_flux_error='7.83e-06', photon_flux_error2='3.99e-08', ts2='1.12', photon_index='2.70' WHERE bin_id='730' AND source_name='4FGL J1706.1+1000' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Aug  2 02:56:11 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 659604: <4FGL_J1706.1+1000_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1706.1+1000_weekly_bin730> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:50 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:21:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:21:07 2022
Terminated at Tue Aug  2 02:50:02 2022
Results reported at Tue Aug  2 02:50:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_weekly_bin730 256.539 10.0079 680486401 681091201 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 :                                   1656.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             351.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   1735 sec.
    Turnaround time :                            9792 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 659605: <4FGL_J1706.1+1000_weekly_bin730> in cluster <slac> Done

Job <4FGL_J1706.1+1000_weekly_bin730> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug  2 00:06:50 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug  2 02:21:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug  2 02:21:07 2022
Terminated at Tue Aug  2 02:56:12 2022
Results reported at Tue Aug  2 02:56:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.1+1000_weekly_bin730 256.539 10.0079 680486401 681091201 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 :                                   2004.00 sec.
    Max Memory :                                 1237 MB
    Average Memory :                             353.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2104 sec.
    Turnaround time :                            10162 sec.

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

