/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 23 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 = 7682
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1707.5+1649_daily_bin85
RA = 256.881, Dec = 16.8206
tmin = 261360001, tmax = 261619201
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='405728', job_status='RUN', time_executed='2021-09-16 16:36:43.375892', time_epoch_executed='1631835403.38' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='85'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405728/ft1_4FGL_J1707.5+1649_daily_bin85.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405728/ft2_4FGL_J1707.5+1649_daily_bin85.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405728/ft1_4FGL_J1707.5+1649_daily_bin85.fits outfile=/scratch/kocevski/405728/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin85.fits ra=256.881 dec=16.8206 rad=12.0 tmin=261360001.0 tmax=261619201.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.48
user 1.31
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405728/ft1_filtered_4FGL_J1707.5+1649_daily_bin85.fits" evtable="EVENTS" scfile=/scratch/kocevski/405728/ft2_4FGL_J1707.5+1649_daily_bin85.fits sctable="SC_DATA" outfile=/scratch/kocevski/405728/ltcube_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.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/405728/ft2_4FGL_J1707.5+1649_daily_bin85.fits
.....................!
real 15.23
user 14.88
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405728/ft1_filtered_4FGL_J1707.5+1649_daily_bin85.fits evtable="EVENTS" scfile=/scratch/kocevski/405728/ft2_4FGL_J1707.5+1649_daily_bin85.fits sctable="SC_DATA" expcube=/scratch/kocevski/405728/ltcube_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.fits outfile=/scratch/kocevski/405728/expmap_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.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/405728/ltcube_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.fits
.....................!
real 191.48
user 186.42
sys 4.68

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/405728/ft1_filtered_4FGL_J1707.5+1649_daily_bin85.fits scfile=/scratch/kocevski/405728/ft2_4FGL_J1707.5+1649_daily_bin85.fits outfile=/scratch/kocevski/405728/cmap_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.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.58
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405728/ft1_filtered_4FGL_J1707.5+1649_daily_bin85.fits scfile=/scratch/kocevski/405728/ft2_4FGL_J1707.5+1649_daily_bin85.fits outfile=/scratch/kocevski/405728/cmap_HighResolution_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.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.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.052       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.1643       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.836       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27399E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.081       1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.873       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .34395       1.0000         .10000E-03   10000.    
    16 'norm      '    22.338       1.0000         .10000E-03   10000.    
    17 'norm      '    39.486       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0348       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1176       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=   11617.40     FROM MIGRAD    STATUS=CONVERGED    393 CALLS     1904 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.050        28.814       -.16994E-05   -.55438E-04
   2  Prefactor     4.1636        7.9139        .54571E-05   -.50136E-03
   3  Prefactor     13.837        17.791        .21623E-06   -.13960E-04
   4  Prefactor     .10000E-03    2.8423        .14931E-06** at limit **
   5  Prefactor     .10000E-03    4.8906       -.12496E-06** at limit **
   6  Prefactor     .10000E-03    17.342       -.21528E-06** at limit **
   7  Prefactor     .10000E-03    31.938        .20469E-06** at limit **
   8  Prefactor     .10000E-03    20.768       -.12532E-07** at limit **
   9  Prefactor     .10000E-03    3.9833        .49320E-07** at limit **
  10  Prefactor     .10000E-03    16.276        .42167E-06** at limit **
  11  norm          .10000E-03    1.3434        .20591E-06** at limit **
  12  Prefactor     .10000E-03    4.1242       -.21482E-07** at limit **
  13  norm          13.075        9.9115       -.13012E-06   -.53899E-05
  14  Prefactor     84.868        67.205       -.65386E-06   -.50080E-04
  15  Prefactor     .35100        1.2153        .57765E-07   -.57557E-04
  16  norm          22.338        13.042        .58964E-07   -.11338E-05
  17  norm          39.442        58.392       -.77139E-05   -.35530E-03
  18  Normalizat    1.0350        .23029       -.13975E-05   -.32198E-04
  19  Prefactor     1.1176        .85736E-01    .32538E-06   -.26436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.05
  Prefactor  = 4.16364
  Prefactor  = 13.8372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 13.0749
  Prefactor  = 84.868
  Prefactor  = 0.351005
  norm       = 22.3381
  norm       = 39.4419
  Normalizat = 1.03504
  Prefactor  = 1.11756
 **********
 **   18 **HESSE 
 **********

 FCN=   11617.40     FROM HESSE     STATUS=OK           268 CALLS     2172 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.050        28.814        .80034E-04   -1.4707    
   2  Prefactor     4.1636        8.1009        .98754E-03   -1.5300    
   3  Prefactor     13.837        17.825        .10768E-03   -1.4964    
   4  Prefactor     .10000E-03    8.4476        .34615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0694        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.9772        .24237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.075        10.092        .11075E-03   -1.4985    
  14  Prefactor     84.868        67.217        .43605E-04   -1.3863    
  15  Prefactor     .35100        4.9618        .19986E-02   -1.5589    
  16  norm          22.338        13.051        .42375E-03   -1.4762    
  17  norm          39.442        62.585        .63787E-04   -1.4451    
  18  Normalizat    1.0350        .26494        .43287E-03   -.91865    
  19  Prefactor     1.1176        .10022        .15874E-03   -.88907    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05238e-08
Minuit parameter uncertainties:
  1  28.8304
  2  8.10306
  3  17.8317
  4  1.01753e-05
  5  1.69579e-05
  6  4.52154e-05
  7  4.42449e-05
  8  7.03324e-06
  9  2.49275e-06
  10  5.53329e-05
  11  0.000101666
  12  2.86938e-07
  13  10.0937
  14  67.2769
  15  2.63929
  16  13.0522
  17  62.6891
  18  0.265281
  19  0.100232
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  5.533e-05  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.118e+00  1.002e-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.035e+00  2.653e-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: 9.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405728/likelihoodResults_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.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) = 11617.4047596
delta logL = -0.000288835979518

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11617.4044715
delta logL = -7.40403265809e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15221E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3308       1.0000          .0000       10.000    
     3 'Normalizat'    1.0353       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1175       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=   11617.40     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      233 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11397E-03    1.2728        .90712E-01** at limit **
   2  Index         2.4683        1.9178        .50000       -.76950E-04
   3  Normalizat    1.0350        .25663E-02    .97703E-01    .24913E-03
   4  Prefactor     1.1176        .97885E-03    .36957E-01    .57455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000113965
  Index      = 2.46827
  Normalizat = 1.03504
  Prefactor  = 1.11757
 **********
 **   18 **HESSE 
 **********

 FCN=   11617.40     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      274 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11397E-03    1.9822        .73152E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4683        2.0168        .50000       -.53094    
   3  Normalizat    1.0350        .27017E-02    .43287E-03   -.91866    
   4  Prefactor     1.1176        .10334E-02    .15874E-03   -.88907    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.01688e-11
Minuit parameter uncertainties:
  1  0.010523
  2  2.09865
  3  0.00270169
  4  0.00103343
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405728': 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) = 11617.4044681
delta logL = 2.65193921223e-06

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.140e-04  1.052e-02  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.468e+00  2.099e+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.118e+00  1.033e-03  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.035e+00  2.702e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.881 16.821

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/405728/cmap_HighResolution_261360001_261619201_4FGL_J1707.5+1649_daily_bin85.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.99e-03', job_status='DONE', photon_flux_upper_limit='9.14e-08', time_completed='2021-09-16 16:50:51.355432', job_id='405728', GAL2='1.12', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1631836251.36', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.65e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='85' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:50:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 405728: <4FGL_J1707.5+1649_daily_bin85> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin85> 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) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:36:07 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:07 2021
Terminated at Thu Sep 16 16:50:52 2021
Results reported at Thu Sep 16 16:50:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin85 256.881 16.8206 261360001 261619201 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 :                                   847.30 sec.
    Max Memory :                                 1208 MB
    Average Memory :                             336.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            929 sec.

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

