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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1709
RA = 256.881, Dec = 16.8206
tmin = 682300801, tmax = 682560001
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='176937', job_status='RUN', time_executed='2022-09-16 20:03:39.217422', time_epoch_executed='1663383819.22' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1709'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/176937

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/176937/ft1_4FGL_J1707.5+1649_daily_bin1709.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/176937/ft2_4FGL_J1707.5+1649_daily_bin1709.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/176937/ft1_4FGL_J1707.5+1649_daily_bin1709.fits outfile=/scratch/kocevski/176937/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1709.fits ra=256.881 dec=16.8206 rad=12.0 tmin=682300801.0 tmax=682560001.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.76
user 3.51
sys 0.23

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

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

Number of photons that the gtmktime cut: 892

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/176937/ft1_filtered_4FGL_J1707.5+1649_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/176937/ft2_4FGL_J1707.5+1649_daily_bin1709.fits sctable="SC_DATA" expcube=/scratch/kocevski/176937/ltcube_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.fits outfile=/scratch/kocevski/176937/expmap_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.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/176937/ltcube_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.fits
.....................!
real 190.96
user 185.65
sys 4.93

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/176937/ft1_filtered_4FGL_J1707.5+1649_daily_bin1709.fits scfile=/scratch/kocevski/176937/ft2_4FGL_J1707.5+1649_daily_bin1709.fits outfile=/scratch/kocevski/176937/cmap_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/176937/ft1_filtered_4FGL_J1707.5+1649_daily_bin1709.fits scfile=/scratch/kocevski/176937/ft2_4FGL_J1707.5+1649_daily_bin1709.fits outfile=/scratch/kocevski/176937/cmap_HighResolution_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/176937/ft1_filtered_4FGL_J1707.5+1649_daily_bin1709.fits evtable="EVENTS" scfile=/scratch/kocevski/176937/ft2_4FGL_J1707.5+1649_daily_bin1709.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/176937/Model_4FGL_J1707.5+1649_daily_bin1709.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/176937/ft1_filtered_4FGL_J1707.5+1649_daily_bin1709.fits.....................!
real 76.75
user 75.30
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/176937/ft1_filtered_4FGL_J1707.5+1649_daily_bin1709.fits', '/scratch/kocevski/176937/ft2_4FGL_J1707.5+1649_daily_bin1709.fits', expMap='/scratch/kocevski/176937/expmap_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.fits', expCube='/scratch/kocevski/176937/ltcube_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/176937/Model_4FGL_J1707.5+1649_daily_bin1709.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/176937/ft1_filtered_4FGL_J1707.5+1649_daily_bin1709.fits
Spacecraft file(s): /scratch/kocevski/176937/ft2_4FGL_J1707.5+1649_daily_bin1709.fits
Exposure map: /scratch/kocevski/176937/expmap_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.fits
Exposure cube: /scratch/kocevski/176937/ltcube_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/176937/Model_4FGL_J1707.5+1649_daily_bin1709.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) = 9761.92298642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52784E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    3.8278       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3833       1.0000          .0000       .10000E+07
     4 'Prefactor '    .54594E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    4.4129       1.0000          .0000       .10000E+07
     6 'Prefactor '    .75653       1.0000          .0000       .10000E+07
     7 'Prefactor '    .13545E-07   1.0000          .0000       .10000E+07
     8 'Prefactor '    42.202       1.0000          .0000       .10000E+07
     9 'Prefactor '    .18817E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16888E-03   1.0000          .0000       .10000E+07
    11 'norm      '    .10558E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .66250       1.0000          .0000       .10000E+07
    13 'norm      '    .43021E-07   1.0000          .0000       .10000E+07
    14 'Prefactor '    .33705E-01   1.0000          .0000       .10000E+07
    15 'Prefactor '    1.3052       1.0000          .0000       .10000E+07
    16 'norm      '    .29081E-02   1.0000          .0000       .10000E+07
    17 'Normalizat'    1.3909       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .91793       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=   9761.778     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1108 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51016E-05    12.586       -.30486E-06** at limit **
   2  Prefactor     3.7076        7.5065       -.12567E-06   -.27104E-03
   3  Prefactor     1.6310        17.316       -.90070E-07    .13494E-01
   4  Prefactor     .55511E-10    4.2156       -.20522E-06** at limit **
   5  Prefactor     4.4074        6.0100        .63625E-07    .20101E-02
   6  Prefactor     .53250        6.7910       -.10523E-06    .30473E-01
   7  Prefactor     .33862E-06    9.6585        .14571E-06** at limit **
   8  Prefactor     44.533        45.175        .89689E-07    .15807E-01
   9  Prefactor     .58964E-06    12.485       -.14177E-06** at limit **
  10  Prefactor     .38858E-09    3.5897        .66108E-07** at limit **
  11  norm           .0000        1.2941       -.36126E-07** at limit **
  12  Prefactor     1.9904        16.948        .45908E-06    .53567E-01
  13  norm          .83267E-09    3.3821       -.92789E-07** at limit **
  14  Prefactor     .17990E-04    8.9312        .89839E-07** at limit **
  15  Prefactor     1.2531        2.8213        .21726E-06    .54617E-02
  16  norm          .10170E-05    20.099       -.73018E-07** at limit **
  17  Normalizat    1.3916        .28100        .27664E-06   -.74354E-04
  18  Prefactor     .91655        .10254       -.10133E-05   -.19245E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.10159e-06
  Prefactor  = 3.70758
  Prefactor  = 1.63104
  Prefactor  = 5.55112e-11
  Prefactor  = 4.4074
  Prefactor  = 0.532497
  Prefactor  = 3.38618e-07
  Prefactor  = 44.5333
  Prefactor  = 5.89639e-07
  Prefactor  = 3.88578e-10
  norm       = 0
  Prefactor  = 1.99039
  norm       = 8.32667e-10
  Prefactor  = 1.79899e-05
  Prefactor  = 1.25311
  norm       = 1.01702e-06
  Normalizat = 1.39165
  Prefactor  = 0.916547
 **********
 **   18 **HESSE 
 **********

 FCN=   9761.778     FROM HESSE     STATUS=OK           278 CALLS     1386 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51016E-05    20.550        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.7076        7.5238        .51562E-03   -1.5669    
   3  Prefactor     1.6310        17.404        .92471E-03   -1.5682    
   4  Prefactor     .55511E-10    4.2077        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.4074        6.0268        .47916E-03   -1.5666    
   6  Prefactor     .53250        239.56        .56233E-03   -1.5693    
   7  Prefactor     .33862E-06    10.099        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.533        45.979        .15395E-03   -1.5574    
   9  Prefactor     .58964E-06    13.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38858E-09    3.5910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        1.2922        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.9904        29.377        .63806E-03   -1.5680    
  13  norm          .83267E-09    3.3779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .17990E-04    382.64        .16261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2531        2.9075        .96582E-03   -1.5686    
  16  norm          .10170E-05    22.586        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.3916        .23419        .85682E-01   -.80871    
  18  Prefactor     .91655        .84623E-01    .45233E-01   -.95565    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.7714e-06
Minuit parameter uncertainties:
  1  0.020478
  2  7.52384
  3  10.6557
  4  3.40361e-05
  5  6.02679
  6  22.5898
  7  0.00369852
  8  45.9795
  9  0.00554582
  10  7.26828e-05
  11  6.95859e-06
  12  15.2935
  13  0.000106792
  14  0.165945
  15  2.90746
  16  0.00958551
  17  0.234373
  18  0.0846349
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  3.886e-10  7.268e-05  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.165e-01  8.463e-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.392e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/176937/likelihoodResults_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.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) = 9761.77912349
delta logL = -0.00145686399628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9761.77766733
delta logL = -7.04814738128e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .60879E-06   1.0000          .0000       .10000E+07
     2 'Index     '    .43700       1.0000          .0000       10.000    
     3 'Normalizat'    1.3917       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91651       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9760.483     FROM MIGRAD    STATUS=FAILED       280 CALLS      512 TOTAL
                     EDM=   .34E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91430E-05    .11085E-04    .74902E-06** at limit **
   2  Index         8.7062        .47529        .65167E-02    .78272E-03
   3  Normalizat    1.2268        .29934        .40018E-03    .95510E-04
   4  Prefactor     .95548        .10471        .16023E-03    .91699E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9760.483     FROM SIMPLEX   STATUS=UNCHANGED     60 CALLS      572 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91430E-05    .11085E-04    .14465E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7062        .47529        .57197E-02    .83492    
   3  Normalizat    1.2268        .29934        .31968E-03   -.85778    
   4  Prefactor     .95548        .10471        .16347E-03   -.94229    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9760.483     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      611 TOTAL
                     EDM=   .27E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91430E-05    .13873E-04     .0000    ** at limit **
   2  Index         8.7062        .59270         .0000       -.26168E-05
   3  Normalizat    1.2268        .29894         .0000        .95453E-04
   4  Prefactor     .95548        .10469         .0000        .91671E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.14302e-06
  Index      = 8.70622
  Normalizat = 1.22681
  Prefactor  = 0.955481
 **********
 **   18 **HESSE 
 **********

 FCN=   9760.483     FROM HESSE     STATUS=OK            23 CALLS      634 TOTAL
                     EDM=   .50E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91430E-05    .13219E-04    .37451E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7062        .56480        .52134E-04    .83492    
   3  Normalizat    1.2268        .29904        .32015E-05   -.85778    
   4  Prefactor     .95548        .10472        .64092E-05   -.94229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98456e-05
Minuit parameter uncertainties:
  1  1.32187e-05
  2  0.567501
  3  0.29946
  4  0.104746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/176937': 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) = 9760.48332562
delta logL = 1.29434100302

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  9.143e-06  1.322e-05  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  8.706e+00  5.675e-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.555e-01  1.047e-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.227e+00  2.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.89
Ra Dec: 256.881 16.821
Photon Index (Free Index): 8.71 +/- 0.57
Photon Flux (Free Index): 1.38e-07 +/- 3.76e-07
Energy Flux (Free Index): 1.58e-05 +/- 4.30e-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/176937/cmap_HighResolution_682300801_682560001_4FGL_J1707.5+1649_daily_bin1709.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.54e-03', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='1.29e+00', photon_flux2='1.38e-07', job_status='DONE', time_completed='2022-09-16 20:15:27.403929', photon_index_error2='0.57', photon_index2='8.71', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='5.94e-08', energy_flux_error2='4.30e-05', EG='1.39', time_epoch_completed='1663384527.4', return_code='0', job_id='176937', GAL2='0.96', EG2='1.23', return_code2='0', photon_flux_error2='3.76e-07', ts2='2.89', photon_index='2.25' WHERE bin_id='1709' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:15:27 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 176937: <4FGL_J1707.5+1649_daily_bin1709> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1709> 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) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 20:01:11 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:11 2022
Terminated at Fri Sep 16 20:15:28 2022
Results reported at Fri Sep 16 20:15:28 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1709 256.881 16.8206 682300801 682560001 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 :                                   710.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             267.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            911 sec.

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

