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 166 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1712
RA = 256.881, Dec = 16.8206
tmin = 683078401, tmax = 683337601
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='176941', job_status='RUN', time_executed='2022-09-16 20:04:07.460550', time_epoch_executed='1663383847.46' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176941/ft1_4FGL_J1707.5+1649_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176941/ft1_4FGL_J1707.5+1649_daily_bin1712.fits outfile=/scratch/kocevski/176941/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1712.fits ra=256.881 dec=16.8206 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.87
user 4.58
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.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/176941/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.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.67
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 878

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/176941/ltcube_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.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/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits
.....................!
real 13.42
user 12.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/176941/ltcube_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.fits outfile=/scratch/kocevski/176941/expmap_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.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/176941/ltcube_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.fits
.....................!
real 192.56
user 186.05
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
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1707.5+1649 @ 256.881 16.8206

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits scfile=/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits outfile=/scratch/kocevski/176941/cmap_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.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.881 yref=16.8206 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits scfile=/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits outfile=/scratch/kocevski/176941/cmap_HighResolution_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.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.881 yref=16.8206 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176941/Model_4FGL_J1707.5+1649_daily_bin1712.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 GAL_V02
Working on...
/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits.....................!
real 72.54
user 70.48
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits', '/scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits', expMap='/scratch/kocevski/176941/expmap_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.fits', expCube='/scratch/kocevski/176941/ltcube_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/176941/Model_4FGL_J1707.5+1649_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1707.5+1649'

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.274e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/176941/ft1_filtered_4FGL_J1707.5+1649_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/176941/ft2_4FGL_J1707.5+1649_daily_bin1712.fits
Exposure map: /scratch/kocevski/176941/expmap_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.fits
Exposure cube: /scratch/kocevski/176941/ltcube_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/176941/Model_4FGL_J1707.5+1649_daily_bin1712.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) = 9215.25321243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.922       1.0000          .0000       .10000E+07
     2 'Prefactor '    6.5872       1.0000          .0000       .10000E+07
     3 'Prefactor '    .43533E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    .12824E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9943       1.0000          .0000       .10000E+07
     6 'Prefactor '    .10745E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    .28584E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    28.707       1.0000          .0000       .10000E+07
     9 'Prefactor '    .31213E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.8060       1.0000          .0000       .10000E+07
    11 'norm      '    .87113E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    35.516       1.0000          .0000       .10000E+07
    13 'norm      '    13.552       1.0000          .0000       .10000E+07
    14 'Prefactor '    .16194E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.0921       1.0000          .0000       .10000E+07
    16 'norm      '    .10128E-01   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1854       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94353       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9215.195     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1296 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.426        14.095       -.79604E-06    .95757E-01
   2  Prefactor     6.5485        3.5059        .57128E-06    .35010E-01
   3  Prefactor     .24536E-07    5.7466       -.41911E-06** at limit **
   4  Prefactor      .0000        1.7454       -.55666E-07** at limit **
   5  Prefactor     8.0212        7.1775       -.97884E-07   -.57091E-02
   6  Prefactor     .31752E-07    6.5723        .59604E-06** at limit **
   7  Prefactor     .19429E-07    12.222        .96148E-06** at limit **
   8  Prefactor     27.684        35.589       -.10758E-05    .40743E-01
   9  Prefactor     .99920E-09    3.4976       -.49225E-06** at limit **
  10  Prefactor     8.8501        8.0220       -.13222E-05   -.41563E-01
  11  norm          .26645E-08    4.2740       -.41521E-07** at limit **
  12  Prefactor     36.427        11.860        .15694E-05   -.77004E-01
  13  norm          13.512        8.6816       -.15332E-05   -.99717E-01
  14  Prefactor     .34417E-08    45.537        .51278E-06** at limit **
  15  Prefactor     1.0626        3.0475        .33392E-06    .58154E-02
  16  norm          .29421E-08    24.115        .20135E-06** at limit **
  17  Normalizat    1.1850        .26882       -.10080E-04   -.12132E-04
  18  Prefactor     .94328        .10342        .39951E-05   -.62430E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.426
  Prefactor  = 6.54849
  Prefactor  = 2.45359e-08
  Prefactor  = 0
  Prefactor  = 8.02121
  Prefactor  = 3.17524e-08
  Prefactor  = 1.94289e-08
  Prefactor  = 27.6842
  Prefactor  = 9.99201e-10
  Prefactor  = 8.85008
  norm       = 2.66454e-09
  Prefactor  = 36.4272
  norm       = 13.5119
  Prefactor  = 3.44169e-09
  Prefactor  = 1.0626
  norm       = 2.94209e-09
  Normalizat = 1.185
  Prefactor  = 0.943279
 **********
 **   18 **HESSE 
 **********

 FCN=   9215.195     FROM HESSE     STATUS=OK           280 CALLS     1576 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.426        34.154        .21869E-03   -1.5615    
   2  Prefactor     6.5485        10.027        .39076E-03   -1.5657    
   3  Prefactor     .24536E-07    5.8475        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor      .0000        1.7440        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.0212        7.2317        .35438E-03   -1.5651    
   6  Prefactor     .31752E-07    6.7022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19429E-07    12.397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.684        38.510        .18667E-03   -1.5603    
   9  Prefactor     .99920E-09    3.5050        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8501        8.2073        .33753E-03   -1.5648    
  11  norm          .26645E-08    4.1931        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     36.427        18.316        .16782E-03   -1.5587    
  13  norm          13.512        11.635        .27183E-03   -1.5634    
  14  Prefactor     .34417E-08    45.405        .17301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0626        3.4761        .11429E-02   -1.5687    
  16  norm          .29421E-08    24.160        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.1850        .22527        .85878E-01   -.87068    
  18  Prefactor     .94328        .86458E-01    .45557E-01   -.94645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92601e-07
Minuit parameter uncertainties:
  1  34.1545
  2  10.0266
  3  0.000757955
  4  7.89641e-06
  5  7.23166
  6  0.000922955
  7  0.000981993
  8  38.5101
  9  0.000119965
  10  8.20731
  11  0.000211036
  12  18.3159
  13  11.6347
  14  0.000791826
  15  3.47607
  16  0.000533553
  17  0.225452
  18  0.0864705
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  8.850e+00  8.207e+00  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.254e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.433e-01  8.647e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.185e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.65
Ra Dec: 256.881 16.821
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 2.62e-08
Energy Flux (Fixed Index): 1.16e-05 +/- 1.07e-05

TS (Fixed Index): 3.65
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 9.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/176941/likelihoodResults_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.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) = 9214.93274696
delta logL = 0.262503273867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9214.93261447
delta logL = 0.262635766709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.964       1.0000          .0000       .10000E+07
     2 'Index     '    1.8228       1.0000          .0000       10.000    
     3 'Normalizat'    1.1933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9214.933     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      264 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.931        394.97        .28936E-03   -.27188E-03
   2  Index         1.8200        5.6979        .26921        .41444E-04
   3  Normalizat    1.1934        .11772        .85620E-01    .10930E-04
   4  Prefactor     .94220        .36155E-01    .45541E-01    .60665E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.931
  Index      = 1.82003
  Normalizat = 1.19336
  Prefactor  = 0.9422
 **********
 **   18 **HESSE 
 **********

 FCN=   9214.933     FROM HESSE     STATUS=OK            31 CALLS      295 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.931        11.370        .11574E-04   -1.5639    
   2  Index         1.8200        .58770        .99548E-02   -.68930    
   3  Normalizat    1.1934        .26741        .37912E-03   -.86808    
   4  Prefactor     .94220        .10281        .16066E-03   -.94682    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62664e-11
Minuit parameter uncertainties:
  1  11.3703
  2  0.590001
  3  0.267718
  4  0.102835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176941': 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) = 9214.93259842
delta logL = 0.262651815759

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.193e+01  1.137e+01  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  1.820e+00  5.900e-01  0.000e+00  1.000e+01 (-1.000e+00)
273        Scale:  1.429e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.422e-01  1.028e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.193e+00  2.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.18
Ra Dec: 256.881 16.821
Photon Index (Free Index): 1.82 +/- 0.59
Photon Flux (Free Index): 1.83e-08 +/- 2.24e-08
Energy Flux (Free Index): 2.07e-05 +/- 2.81e-05

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/176941/cmap_HighResolution_683078401_683337601_4FGL_J1707.5+1649_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.64e-03', comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='2.07e-05', photon_flux_error='2.62e-08', dlogl='2.63e-01', energy_flux='1.16e-05', photon_flux2='1.83e-08', job_status='DONE', time_completed='2022-09-16 20:15:37.546917', photon_index_error2='0.59', photon_index2='1.82', ts='3.65', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='9.99e-08', energy_flux_error2='2.81e-05', EG='1.19', time_epoch_completed='1663384537.55', return_code='0', job_id='176941', GAL2='0.94', EG2='1.19', return_code2='0', energy_flux_error='1.07e-05', photon_flux_error2='2.24e-08', ts2='4.18', photon_index='2.25' WHERE bin_id='1712' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:15:37 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 176941: <4FGL_J1707.5+1649_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1712> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 20:00:17 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 20:01:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 20:01:13 2022
Terminated at Fri Sep 16 20:15:38 2022
Results reported at Fri Sep 16 20:15:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1712 256.881 16.8206 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1707.5+1649 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   686.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            921 sec.

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

