/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 131 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 = 6319
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1707.5+1649_daily_bin91
RA = 256.881, Dec = 16.8206
tmin = 262915201, tmax = 263174401
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='405736', job_status='RUN', time_executed='2021-09-16 16:38:34.742032', time_epoch_executed='1631835514.74' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='91'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405736

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405736/ft1_4FGL_J1707.5+1649_daily_bin91.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405736/ft2_4FGL_J1707.5+1649_daily_bin91.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405736/ft1_4FGL_J1707.5+1649_daily_bin91.fits outfile=/scratch/kocevski/405736/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin91.fits ra=256.881 dec=16.8206 rad=12.0 tmin=262915201.0 tmax=263174401.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 1.35
user 1.14
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405736/ft1_filtered_4FGL_J1707.5+1649_daily_bin91.fits" evtable="EVENTS" scfile=/scratch/kocevski/405736/ft2_4FGL_J1707.5+1649_daily_bin91.fits sctable="SC_DATA" outfile=/scratch/kocevski/405736/ltcube_262915201_263174401_4FGL_J1707.5+1649_daily_bin91.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/405736/ft2_4FGL_J1707.5+1649_daily_bin91.fits
.....................!
real 14.04
user 13.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405736/ft1_filtered_4FGL_J1707.5+1649_daily_bin91.fits evtable="EVENTS" scfile=/scratch/kocevski/405736/ft2_4FGL_J1707.5+1649_daily_bin91.fits sctable="SC_DATA" expcube=/scratch/kocevski/405736/ltcube_262915201_263174401_4FGL_J1707.5+1649_daily_bin91.fits outfile=/scratch/kocevski/405736/expmap_262915201_263174401_4FGL_J1707.5+1649_daily_bin91.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/405736/ltcube_262915201_263174401_4FGL_J1707.5+1649_daily_bin91.fits
.....................!
real 195.37
user 189.23
sys 5.39

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/405736/ft1_filtered_4FGL_J1707.5+1649_daily_bin91.fits scfile=/scratch/kocevski/405736/ft2_4FGL_J1707.5+1649_daily_bin91.fits outfile=/scratch/kocevski/405736/cmap_262915201_263174401_4FGL_J1707.5+1649_daily_bin91.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.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.648       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .86995       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.167       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .88129       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.635       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.9027       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.961       1.0000         .10000E-03   10000.    
    11 'norm      '    .32641E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.354       1.0000         .10000E-03   10000.    
    13 'norm      '    14.841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.551       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    63.129       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .54174       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1492       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=   8868.886     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     1953 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.637        35.160        .11008E-05    .96130E-04
   2  Prefactor     .89084        39.438       -.10694E-04    .91003E-05
   3  Prefactor     17.165        16.419        .20633E-06   -.99840E-05
   4  Prefactor     .89100        3.2751        .64422E-06    .11155E-03
   5  Prefactor     10.635        6.1986        .46064E-07    .13828E-03
   6  Prefactor     .10000E-03    10.394        .18513E-06** at limit **
   7  Prefactor     .10000E-03    37.005       -.42563E-06** at limit **
   8  Prefactor     .10000E-03    28.222        .72506E-06** at limit **
   9  Prefactor     8.9030        7.0844        .19145E-06    .15203E-03
  10  Prefactor     22.972        16.645        .26916E-06    .10641E-03
  11  norm          .15050E-01    1.5766       -.78210E-06    .32731E-03
  12  Prefactor     14.352        14.961       -.21075E-05   -.74412E-04
  13  norm          14.842        10.869        .35966E-06    .18094E-04
  14  Prefactor     21.604        72.126       -.20571E-05   -.33231E-04
  15  Prefactor     .10000E-03    1.3122        .37354E-06** at limit **
  16  norm          .10000E-03    3.6080       -.78889E-06** at limit **
  17  norm          63.128        64.584        .14598E-06    .18055E-04
  18  Normalizat    .54170        .29299       -.50553E-05   -.33838E-04
  19  Prefactor     1.1492        .10765        .13375E-05   -.36678E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.6372
  Prefactor  = 0.89084
  Prefactor  = 17.1648
  Prefactor  = 0.890999
  Prefactor  = 10.6354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90296
  Prefactor  = 22.9715
  norm       = 0.0150505
  Prefactor  = 14.352
  norm       = 14.8423
  Prefactor  = 21.6038
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 63.1278
  Normalizat = 0.541697
  Prefactor  = 1.14923
 **********
 **   18 **HESSE 
 **********

 FCN=   8868.886     FROM HESSE     STATUS=OK           282 CALLS     2235 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.637        35.049        .54260E-04   -1.4228    
   2  Prefactor     .89084        40.270        .45240E-02   -1.5519    
   3  Prefactor     17.165        16.360        .96667E-04   -1.4879    
   4  Prefactor     .89100        9.6809        .29762E-02   -1.5519    
   5  Prefactor     10.635        6.1841        .12286E-03   -1.5056    
   6  Prefactor     .10000E-03    10.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    28.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.9030        7.0843        .13433E-03   -1.5111    
  10  Prefactor     22.972        16.625        .83593E-04   -1.4749    
  11  norm          .15050E-01    2.4368        .38552E-01   -1.5684    
  12  Prefactor     14.352        14.929        .52858E-03   -1.4950    
  13  norm          14.842        10.567        .10397E-03   -1.4937    
  14  Prefactor     21.604        72.354        .86281E-04   -1.4778    
  15  Prefactor     .10000E-03    2.2112        .20200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6160        .17485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          63.128        64.616        .50505E-04   -1.4117    
  18  Normalizat    .54170        .29299        .55257E-03   -1.1052    
  19  Prefactor     1.1492        .10957        .14868E-03   -.87908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12238e-09
Minuit parameter uncertainties:
  1  35.062
  2  11.9869
  3  16.3641
  4  5.87477
  5  6.18447
  6  1.64207e-05
  7  5.79233e-05
  8  0.000111173
  9  7.08499
  10  16.6286
  11  0.381759
  12  14.9331
  13  10.5685
  14  72.6504
  15  4.97987e-05
  16  1.24256e-05
  17  64.6881
  18  0.29383
  19  0.109589
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  2.297e+01  1.663e+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:  1.149e+00  1.096e-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:  5.417e-01  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.55
Ra Dec: 256.881 16.821
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 7.35e-08 +/- 5.32e-08
Energy Flux (Fixed Index): 3.00e-05 +/- 2.17e-05

TS (Fixed Index): 2.55
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405736/likelihoodResults_262915201_263174401_4FGL_J1707.5+1649_daily_bin91.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) = 8868.72245405
delta logL = 0.163245796653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8868.70156402
delta logL = 0.184135831187

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.002       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7366       1.0000          .0000       10.000    
     3 'Normalizat'    .49782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1606       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.

 FCN=   8868.702     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      321 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.995        233.76        .11563E-03   -.34686E-03
   2  Index         2.7370        6.3665        .56293E-02   -.10866E-03
   3  Normalizat    .49769        .41163        .57511E-03    .56394E-03
   4  Prefactor     1.1607        .14619        .14804E-03    .10401E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.9951
  Index      = 2.737
  Normalizat = 0.497686
  Prefactor  = 1.16069
 **********
 **   18 **HESSE 
 **********

 FCN=   8868.702     FROM HESSE     STATUS=OK            25 CALLS      346 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.995        23.486        .46253E-05   -1.5015    
   2  Index         2.7370        1.0350        .22517E-03   -.46968    
   3  Normalizat    .49769        .28979        .23004E-04   -1.1252    
   4  Prefactor     1.1607        .10897        .29607E-04   -.87550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02522e-09
Minuit parameter uncertainties:
  1  23.5036
  2  1.04456
  3  0.290673
  4  0.108989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405736': 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) = 8868.70156382
delta logL = 0.184136028178

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.200e+01  2.350e+01  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.737e+00  1.045e+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.161e+00  1.090e-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:  4.977e-01  2.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.97
Ra Dec: 256.881 16.821
Photon Index (Free Index): 2.74 +/- 1.04
Photon Flux (Free Index): 1.00e-07 +/- 7.43e-08
Energy Flux (Free Index): 2.35e-05 +/- 1.86e-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/405736/cmap_HighResolution_262915201_263174401_4FGL_J1707.5+1649_daily_bin91.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='7.35e-08', energy_flux2='2.35e-05', photon_flux_error='5.32e-08', dlogl='1.84e-01', energy_flux='3.00e-05', photon_flux2='1.00e-07', job_status='DONE', time_completed='2021-09-16 16:50:52.641518', photon_index_error2='1.04', photon_index2='2.74', ts='2.55', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.86e-05', EG='0.54', time_epoch_completed='1631836252.64', return_code='0', job_id='405736', GAL2='1.16', EG2='0.50', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='7.43e-08', ts2='2.97', photon_index='2.25' WHERE bin_id='91' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:50:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 405736: <4FGL_J1707.5+1649_daily_bin91> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin91> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 16:35:23 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:36:14 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:36:14 2021
Terminated at Thu Sep 16 16:50:53 2021
Results reported at Thu Sep 16 16:50:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin91 256.881 16.8206 262915201 263174401 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 :                                   738.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            930 sec.

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

