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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1025
RA = 256.881, Dec = 16.8206
tmin = 505008001, tmax = 505267201
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='411485', job_status='RUN', time_executed='2021-09-16 17:00:12.898745', time_epoch_executed='1631836812.9' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411485

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411485/ft1_4FGL_J1707.5+1649_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411485/ft1_4FGL_J1707.5+1649_daily_bin1025.fits outfile=/scratch/kocevski/411485/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1025.fits ra=256.881 dec=16.8206 rad=12.0 tmin=505008001.0 tmax=505267201.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.59
user 4.35
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411485/ft1_filtered_4FGL_J1707.5+1649_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/411485/ltcube_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.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/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits
.....................!
real 14.07
user 13.67
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411485/ft1_filtered_4FGL_J1707.5+1649_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/411485/ltcube_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.fits outfile=/scratch/kocevski/411485/expmap_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.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/411485/ltcube_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.fits
.....................!
real 191.28
user 186.02
sys 4.00

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/411485/ft1_filtered_4FGL_J1707.5+1649_daily_bin1025.fits scfile=/scratch/kocevski/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits outfile=/scratch/kocevski/411485/cmap_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411485/ft1_filtered_4FGL_J1707.5+1649_daily_bin1025.fits scfile=/scratch/kocevski/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits outfile=/scratch/kocevski/411485/cmap_HighResolution_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.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.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/411485/ft1_filtered_4FGL_J1707.5+1649_daily_bin1025.fits', '/scratch/kocevski/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits', expMap='/scratch/kocevski/411485/expmap_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.fits', expCube='/scratch/kocevski/411485/ltcube_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/411485/Model_4FGL_J1707.5+1649_daily_bin1025.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  1.000e-04  1.000e+04 ( 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/411485/ft1_filtered_4FGL_J1707.5+1649_daily_bin1025.fits
Spacecraft file(s): /scratch/kocevski/411485/ft2_4FGL_J1707.5+1649_daily_bin1025.fits
Exposure map: /scratch/kocevski/411485/expmap_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.fits
Exposure cube: /scratch/kocevski/411485/ltcube_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/411485/Model_4FGL_J1707.5+1649_daily_bin1025.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) = 8240.91871814

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.164       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .34842       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.947       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1766       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7429       1.0000         .10000E-03   10000.    
    11 'norm      '    .82568       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1157       1.0000         .10000E-03   10000.    
    13 'norm      '    30.661       1.0000         .10000E-03   10000.    
    14 'Prefactor '    55.056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15934       1.0000         .10000E-03   10000.    
    16 'norm      '    13.896       1.0000         .10000E-03   10000.    
    17 'norm      '    76.354       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89146       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97251       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.

 FCN=   8240.917     FROM MIGRAD    STATUS=CONVERGED    404 CALLS     1920 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.162        31.050        .68871E-06    .14500E-03
   2  Prefactor     .10000E-03    7.3640        .18644E-06** at limit **
   3  Prefactor     .10000E-03    7.4810        .44952E-07** at limit **
   4  Prefactor     .30511        3.7112        .83783E-08    .14963E-03
   5  Prefactor     .10000E-03    1.9135       -.52957E-07** at limit **
   6  Prefactor     17.037        39.464       -.35805E-07    .49650E-04
   7  Prefactor     .10000E-03    26.195        .10310E-06** at limit **
   8  Prefactor     .10000E-03    44.331       -.97124E-06** at limit **
   9  Prefactor     6.1744        6.7244        .31165E-05   -.86119E-03
  10  Prefactor     7.7397        12.406       -.36682E-06   -.88920E-04
  11  norm          .82475        1.8153        .64176E-06    .63291E-03
  12  Prefactor     3.1142        20.332       -.22192E-05   -.96331E-04
  13  norm          30.636        15.481        .10995E-05    .88109E-03
  14  Prefactor     55.013        93.215       -.81866E-05   -.20774E-03
  15  Prefactor     .16730        1.3568       -.50752E-06    .95874E-03
  16  norm          13.900        17.540        .12024E-05    .10308E-04
  17  norm          76.357        71.444        .50938E-06    .30336E-04
  18  Normalizat    .89183        .24839       -.14512E-05    .10051E-03
  19  Prefactor     .97237        .92117E-01    .80522E-07    .23387E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.1618
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.305113
  Prefactor  = 0.0001
  Prefactor  = 17.037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.17442
  Prefactor  = 7.73974
  norm       = 0.824753
  Prefactor  = 3.11416
  norm       = 30.6362
  Prefactor  = 55.0129
  Prefactor  = 0.167299
  norm       = 13.8999
  norm       = 76.3568
  Normalizat = 0.891827
  Prefactor  = 0.972373
 **********
 **   18 **HESSE 
 **********

 FCN=   8240.917     FROM HESSE     STATUS=OK           272 CALLS     2192 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.162        31.101        .58386E-04   -1.4333    
   2  Prefactor     .10000E-03    7.4032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.5062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .30511        40.246        .29467E-02   -1.5598    
   5  Prefactor     .10000E-03    1.9249        .12263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.037        41.066        .97292E-04   -1.4882    
   7  Prefactor     .10000E-03    26.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1744        6.9115        .80766E-03   -1.5211    
  10  Prefactor     7.7397        12.399        .14411E-03   -1.5151    
  11  norm          .82475        1.5138        .18074E-02   -1.5526    
  12  Prefactor     3.1142        20.088        .22971E-03   -1.5355    
  13  norm          30.636        16.349        .72359E-04   -1.4600    
  14  Prefactor     55.013        96.292        .54060E-04   -1.4223    
  15  Prefactor     .16730        8.1405        .18525E-02   -1.5626    
  16  norm          13.900        17.661        .10745E-03   -1.4962    
  17  norm          76.357        71.473        .22977E-03   -1.3958    
  18  Normalizat    .89183        .28652        .41152E-03   -.96748    
  19  Prefactor     .97237        .10713        .15207E-03   -.93656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44038e-09
Minuit parameter uncertainties:
  1  31.1121
  2  4.05222e-06
  3  3.09249e-06
  4  7.01213
  5  4.29967e-06
  6  41.1339
  7  1.28824e-05
  8  0.000295409
  9  6.9124
  10  12.4027
  11  1.51387
  12  15.8263
  13  16.3516
  14  96.566
  15  2.33364
  16  17.6679
  17  71.5533
  18  0.287015
  19  0.107149
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  7.740e+00  1.240e+01  1.000e-04  1.000e+04 ( 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.724e-01  1.071e-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.918e-01  2.870e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/411485/likelihoodResults_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.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) = 8240.00648731
delta logL = 0.910236560572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8239.97605607
delta logL = 0.940667802992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19126       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6315       1.0000          .0000       10.000    
     3 'Normalizat'    .76850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0014       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=   8239.976     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      331 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18704        1.4306        .58350E-02    .35603E-02
   2  Index         4.6407        1.7059        .11275        .24489E-03
   3  Normalizat    .76851        .51280E-01    .99299E-01    .16900E-04
   4  Prefactor     1.0013        .19763E-01    .33942E-01   -.91416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.187035
  Index      = 4.64074
  Normalizat = 0.768509
  Prefactor  = 1.00131
 **********
 **   18 **HESSE 
 **********

 FCN=   8239.976     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      364 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18704        4.1976        .26425E-04   -1.5621    
   2  Index         4.6407        3.5851        .38555E-02   -.71914E-01
   3  Normalizat    .76851        .23502        .44004E-03   -1.0125    
   4  Prefactor     1.0013        .88556E-01    .14998E-03   -.92686    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.00955e-10
Minuit parameter uncertainties:
  1  1.77178
  2  4.00062
  3  0.235327
  4  0.0885692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411485': 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): 102
logL (Free Index) = 8239.97604661
delta logL = 0.940677260094

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.870e-01  1.772e+00  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  4.641e+00  4.001e+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.001e+00  8.857e-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:  7.685e-01  2.353e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.62
Ra Dec: 256.881 16.821
Photon Index (Free Index): 4.64 +/- 4.00
Photon Flux (Free Index): 1.18e-07 +/- 8.21e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.24e-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/411485/cmap_HighResolution_505008001_505267201_4FGL_J1707.5+1649_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.15e-03', comment='SUCCESS', energy_flux2='1.63e-05', dlogl='9.41e-01', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-09-16 17:12:11.582115', photon_index_error2='4.00', photon_index2='4.64', ts='0.51', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', photon_flux_upper_limit='1.20e-07', energy_flux_error2='1.24e-05', EG='0.89', time_epoch_completed='1631837531.58', return_code='0', job_id='411485', GAL2='1.00', EG2='0.77', return_code2='102', photon_flux_error2='8.21e-08', ts2='2.62', photon_index='2.25' WHERE bin_id='1025' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 411485: <4FGL_J1707.5+1649_daily_bin1025> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1025> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep 16 16:55:40 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:58:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 16:58:23 2021
Terminated at Thu Sep 16 17:12:12 2021
Results reported at Thu Sep 16 17:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1025 256.881 16.8206 505008001 505267201 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 :                                   716.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            992 sec.

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

