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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1746
RA = 256.881, Dec = 16.8206
tmin = 691891201, tmax = 692150401
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='733830', job_status='RUN', time_executed='2022-12-08 01:23:54.009733', time_epoch_executed='1670491434.01' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/733830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/733830/ft1_4FGL_J1707.5+1649_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/733830/ft2_4FGL_J1707.5+1649_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/733830/ft1_4FGL_J1707.5+1649_daily_bin1746.fits outfile=/scratch/kocevski/733830/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1746.fits ra=256.881 dec=16.8206 rad=12.0 tmin=691891201.0 tmax=692150401.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.71
user 4.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/733830/ft2_4FGL_J1707.5+1649_daily_bin1746.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/733830/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/733830/ft1_filtered_4FGL_J1707.5+1649_daily_bin1746.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.52
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 963

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/733830/ft1_filtered_4FGL_J1707.5+1649_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/733830/ft2_4FGL_J1707.5+1649_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/733830/ltcube_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.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/733830/ft2_4FGL_J1707.5+1649_daily_bin1746.fits
.....................!
real 11.97
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/733830/ft1_filtered_4FGL_J1707.5+1649_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/733830/ft2_4FGL_J1707.5+1649_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/733830/ltcube_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.fits outfile=/scratch/kocevski/733830/expmap_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.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/733830/ltcube_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.fits
.....................!
real 193.05
user 186.74
sys 5.66

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/733830/ft1_filtered_4FGL_J1707.5+1649_daily_bin1746.fits scfile=/scratch/kocevski/733830/ft2_4FGL_J1707.5+1649_daily_bin1746.fits outfile=/scratch/kocevski/733830/cmap_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/733830/ft1_filtered_4FGL_J1707.5+1649_daily_bin1746.fits scfile=/scratch/kocevski/733830/ft2_4FGL_J1707.5+1649_daily_bin1746.fits outfile=/scratch/kocevski/733830/cmap_HighResolution_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.861       1.0000          .0000       .10000E+07
     2 'Prefactor '    .20717E-05   1.0000          .0000       .10000E+07
     3 'Prefactor '    .28364E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .83275E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.7162       1.0000          .0000       .10000E+07
     6 'Prefactor '    .77103E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.0602       1.0000          .0000       .10000E+07
     8 'Prefactor '    .12266E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .38364E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    10.575       1.0000          .0000       .10000E+07
    11 'norm      '    .84404E-05   1.0000          .0000       .10000E+07
    12 'Prefactor '    20.396       1.0000          .0000       .10000E+07
    13 'norm      '    .34141E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .99988E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    3.6990       1.0000          .0000       .10000E+07
    16 'norm      '    27.524       1.0000          .0000       .10000E+07
    17 'Normalizat'    .84434       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0838       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=   10355.20     FROM MIGRAD    STATUS=CONVERGED    127 CALLS     1053 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.773        7.2843       -.21078E-06    .13513    
   2  Prefactor     .44964E-08    6.3305        .36717E-06** at limit **
   3  Prefactor     .15543E-08    9.2317        .45206E-06** at limit **
   4  Prefactor     .15660E-06    8.6542       -.16120E-06** at limit **
   5  Prefactor     2.7649        6.9223        .10116E-05   -.78087E-03
   6  Prefactor     .46846E-06    4.5570        .73541E-06** at limit **
   7  Prefactor     4.0831        1.3510       -.63495E-07   -.43280E-02
   8  Prefactor     .31547E-06    92.013       -.51051E-05** at limit **
   9  Prefactor     .23703E-07    18.042       -.25118E-05** at limit **
  10  Prefactor     10.642        11.622       -.39426E-06   -.44492E-02
  11  norm           .0000        1.9839        .15376E-06** at limit **
  12  Prefactor     20.444        3.9835       -.77257E-07    .28365E-01
  13  norm          .93925E-07    7.4702        .10177E-05** at limit **
  14  Prefactor     .15549E-05    33.705       -.40939E-06** at limit **
  15  Prefactor     3.7187        3.2534        .74135E-06   -.69573E-04
  16  norm          27.217        3.2487       -.13014E-06   -.31333E-01
  17  Normalizat    .84454        .26144       -.24225E-04   -.10213E-04
  18  Prefactor     1.0838        .10126        .55963E-05    .48829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7734
  Prefactor  = 4.4964e-09
  Prefactor  = 1.55431e-09
  Prefactor  = 1.56597e-07
  Prefactor  = 2.76494
  Prefactor  = 4.68459e-07
  Prefactor  = 4.08308
  Prefactor  = 3.1547e-07
  Prefactor  = 2.37033e-08
  Prefactor  = 10.6418
  norm       = 0
  Prefactor  = 20.4441
  norm       = 9.39249e-08
  Prefactor  = 1.55487e-06
  Prefactor  = 3.71869
  norm       = 27.2174
  Normalizat = 0.844538
  Prefactor  = 1.08378
 **********
 **   18 **HESSE 
 **********

 FCN=   10355.20     FROM HESSE     STATUS=OK           282 CALLS     1335 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.773        25.984        .23671E-03   -1.5626    
   2  Prefactor     .44964E-08    6.3429        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .15543E-08    9.2395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .15660E-06    9.1228        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7649        6.9914        .61771E-03   -1.5675    
   6  Prefactor     .46846E-06    13.524        .14590E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0831        95.325        .50015E-03   -1.5668    
   8  Prefactor     .31547E-06    92.659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .23703E-07    17.946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.642        11.627        .30786E-03   -1.5643    
  11  norm           .0000        1.9577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.444        15.526        .22150E-03   -1.5618    
  13  norm          .93925E-07    7.7708        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .15549E-05    35.714        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.7187        3.4241        .52485E-03   -1.5669    
  16  norm          27.217        42.300        .19064E-03   -1.5604    
  17  Normalizat    .84454        .23379        .10036       -.98437    
  18  Prefactor     1.0838        .87479E-01    .38236E-01   -.89987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11481e-06
Minuit parameter uncertainties:
  1  25.9846
  2  0.0003377
  3  0.000237714
  4  0.00239053
  5  6.99137
  6  0.00503393
  7  39.458
  8  0.0108134
  9  0.00130463
  10  11.6267
  11  1.03136e-05
  12  15.526
  13  0.00170878
  14  0.0149038
  15  3.42409
  16  42.3001
  17  0.234065
  18  0.0874901
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.064e+01  1.163e+01  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:  1.084e+00  8.749e-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:  8.445e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 256.881 16.821
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.52e-05

TS (Fixed Index): 1.31
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/733830/likelihoodResults_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.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) = 10355.0159734
delta logL = 0.187339987677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10355.0092238
delta logL = 0.194089561706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8337       1.0000          .0000       .10000E+07
     2 'Index     '    2.7630       1.0000          .0000       10.000    
     3 'Normalizat'    .81401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0897       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=   10355.01     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      258 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8338        134.14        .38357E-03    .10841E-01
   2  Index         2.7637        3.1104        .13574        .22164E-03
   3  Normalizat    .81391        .77381E-01    .10203        .10687E-03
   4  Prefactor     1.0897        .26438E-01    .37992E-01    .17614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.83379
  Index      = 2.76374
  Normalizat = 0.813908
  Prefactor  = 1.08968
 **********
 **   18 **HESSE 
 **********

 FCN=   10355.01     FROM HESSE     STATUS=OK            31 CALLS      289 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8338        14.759        .15343E-04   -1.5656    
   2  Index         2.7637        1.1565        .73341E-02   -.46369    
   3  Normalizat    .81391        .26802        .45217E-03   -.99555    
   4  Prefactor     1.0897        .10171        .15213E-03   -.89797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39292e-09
Minuit parameter uncertainties:
  1  14.7591
  2  1.16984
  3  0.268454
  4  0.101728
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/733830': 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) = 10355.0092224
delta logL = 0.1940910176

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  6.834e+00  1.476e+01  0.000e+00  1.000e+06 ( 1.000e-13)
272        Index:  2.764e+00  1.170e+00  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:  1.090e+00  1.017e-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:  8.139e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 256.881 16.821
Photon Index (Free Index): 2.76 +/- 1.17
Photon Flux (Free Index): 6.04e-08 +/- 6.04e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.31e-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/733830/cmap_HighResolution_691891201_692150401_4FGL_J1707.5+1649_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.13e-03', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='1.39e-05', photon_flux_error='3.72e-08', dlogl='1.94e-01', energy_flux='1.39e-05', photon_flux2='6.04e-08', job_status='DONE', time_completed='2022-12-08 01:35:18.494605', photon_index_error2='1.17', photon_index2='2.76', ts='1.31', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='1.31e-05', EG='0.84', time_epoch_completed='1670492118.49', return_code='0', job_id='733830', GAL2='1.09', EG2='0.81', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='6.04e-08', ts2='1.72', photon_index='2.25' WHERE bin_id='1746' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 01:35:18 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 733830: <4FGL_J1707.5+1649_daily_bin1746> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1746> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec  8 01:20:15 2022
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:20:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:20:16 2022
Terminated at Thu Dec  8 01:35:19 2022
Results reported at Thu Dec  8 01:35:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1746 256.881 16.8206 691891201 692150401 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 :                                   685.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

