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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1520
RA = 256.881, Dec = 16.8206
tmin = 633312001, tmax = 633571201
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='414249', job_status='RUN', time_executed='2021-09-16 17:09:16.744231', time_epoch_executed='1631837356.74' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1520'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414249

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414249/ft1_4FGL_J1707.5+1649_daily_bin1520.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414249/ft2_4FGL_J1707.5+1649_daily_bin1520.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414249/ft1_4FGL_J1707.5+1649_daily_bin1520.fits outfile=/scratch/kocevski/414249/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1520.fits ra=256.881 dec=16.8206 rad=12.0 tmin=633312001.0 tmax=633571201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.67
user 3.46
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414249/ft1_filtered_4FGL_J1707.5+1649_daily_bin1520.fits" evtable="EVENTS" scfile=/scratch/kocevski/414249/ft2_4FGL_J1707.5+1649_daily_bin1520.fits sctable="SC_DATA" outfile=/scratch/kocevski/414249/ltcube_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.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/414249/ft2_4FGL_J1707.5+1649_daily_bin1520.fits
.....................!
real 13.76
user 13.38
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414249/ft1_filtered_4FGL_J1707.5+1649_daily_bin1520.fits evtable="EVENTS" scfile=/scratch/kocevski/414249/ft2_4FGL_J1707.5+1649_daily_bin1520.fits sctable="SC_DATA" expcube=/scratch/kocevski/414249/ltcube_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.fits outfile=/scratch/kocevski/414249/expmap_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.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/414249/ltcube_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.fits
.....................!
real 192.80
user 187.15
sys 5.29

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/414249/ft1_filtered_4FGL_J1707.5+1649_daily_bin1520.fits scfile=/scratch/kocevski/414249/ft2_4FGL_J1707.5+1649_daily_bin1520.fits outfile=/scratch/kocevski/414249/cmap_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414249/ft1_filtered_4FGL_J1707.5+1649_daily_bin1520.fits scfile=/scratch/kocevski/414249/ft2_4FGL_J1707.5+1649_daily_bin1520.fits outfile=/scratch/kocevski/414249/cmap_HighResolution_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.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.57
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.892       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.763       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1597       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.0027       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.892       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .16901E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    133.46       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1375       1.0000         .10000E-03   10000.    
    16 'norm      '    .17599E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    46.226       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .59959       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0366       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=   9150.313     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1922 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.443       -.98485E-07** at limit **
   2  Prefactor     13.894        10.280        .13473E-06    .79962E-04
   3  Prefactor     12.765        11.902        .77820E-07    .11336E-04
   4  Prefactor     7.1605        5.1709        .90146E-06   -.14196E-02
   5  Prefactor     7.0028        5.6421        .16841E-05   -.17137E-02
   6  Prefactor     39.608        30.161        .42893E-06    .10441E-03
   7  Prefactor     .10000E-03    10.156        .10556E-07** at limit **
   8  Prefactor     .10001E-03    124.13       -.46075E-05** at limit **
   9  Prefactor     15.889        9.0895       -.16123E-07    .49155E-04
  10  Prefactor     .10000E-03    6.3160        .37782E-07** at limit **
  11  norm          .10000E-03    1.9006        .40875E-07** at limit **
  12  Prefactor     .10000E-03    12.635       -.35592E-07** at limit **
  13  norm          .10024E-03    8.1102        .40532E-06** at limit **
  14  Prefactor     133.46        78.378       -.11804E-05   -.97544E-04
  15  Prefactor     4.1426        3.7206        .25634E-06   -.40680E-03
  16  norm          .10000E-03    17.790       -.29839E-07** at limit **
  17  norm          46.252        39.923        .70226E-05    .55950E-03
  18  Normalizat    .59906        .24302       -.17760E-05   -.44106E-04
  19  Prefactor     1.0368        .90525E-01    .29986E-07   -.62227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.8944
  Prefactor  = 12.7651
  Prefactor  = 7.16054
  Prefactor  = 7.00281
  Prefactor  = 39.6081
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 15.8892
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100244
  Prefactor  = 133.459
  Prefactor  = 4.14255
  norm       = 0.0001
  norm       = 46.2517
  Normalizat = 0.599063
  Prefactor  = 1.03678
 **********
 **   18 **HESSE 
 **********

 FCN=   9150.313     FROM HESSE     STATUS=OK           274 CALLS     2196 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.894        10.282        .10746E-03   -1.4962    
   3  Prefactor     12.765        11.898        .11212E-03   -1.4993    
   4  Prefactor     7.1605        5.4673        .74956E-03   -1.5173    
   5  Prefactor     7.0028        6.2832        .75800E-03   -1.5179    
   6  Prefactor     39.608        30.287        .63694E-04   -1.4448    
   7  Prefactor     .10000E-03    10.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    125.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.889        9.0854        .10047E-03   -1.4911    
  10  Prefactor     .10000E-03    6.3408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9606        .25740E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10024E-03    9.4293        .80913E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     133.46        78.467        .34858E-04   -1.3392    
  15  Prefactor     4.1426        3.7283        .15165E-03   -1.5301    
  16  norm          .10000E-03    18.538        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          46.252        42.938        .58972E-04   -1.4347    
  18  Normalizat    .59906        .26463        .48745E-03   -1.0802    
  19  Prefactor     1.0368        .10080        .14650E-03   -.91513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09166e-09
Minuit parameter uncertainties:
  1  3.26968e-05
  2  10.2834
  3  11.9001
  4  5.46764
  5  6.28379
  6  30.2984
  7  1.6886e-06
  8  0.00165
  9  9.08619
  10  2.79534e-06
  11  2.03784e-06
  12  3.49698e-06
  13  0.00303118
  14  78.5285
  15  3.72855
  16  6.58279e-05
  17  42.9668
  18  0.265186
  19  0.100819
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  2.795e-06  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.037e+00  1.008e-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.991e-01  2.652e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414249/likelihoodResults_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.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) = 9150.31376678
delta logL = -0.000751703963033

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9150.31301508
delta logL = -4.27280610893e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2499       1.0000          .0000       10.000    
     3 'Normalizat'    .59906       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       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=   9150.313     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      243 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    128.88        .18142E-02** at limit **
   2  Index         2.2186        5.4315        .50000        .40879E-05
   3  Normalizat    .59906        .25173E-01    .48745E-03   -.13387E-04
   4  Prefactor     1.0368        .98334E-02    .14650E-03   -.39422E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100177
  Index      = 2.2186
  Normalizat = 0.599064
  Prefactor  = 1.03678
 **********
 **   18 **HESSE 
 **********

 FCN=   9150.313     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    615.08        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2186        7.7908        .50000       -.58990    
   3  Normalizat    .59906        .62252E-01    .19498E-04   -1.0802    
   4  Prefactor     1.0368        .24245E-01    .58599E-05   -.91513    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.98497e-09
Minuit parameter uncertainties:
  1  0.0210952
  2  1665.89
  3  0.0622597
  4  0.0242454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414249': 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) = 9150.31301505
delta logL = 2.54567567026e-08

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.002e-04  2.110e-02  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.219e+00  1.666e+03  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.037e+00  2.425e-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:  5.991e-01  6.226e-02  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/414249/cmap_HighResolution_633312001_633571201_4FGL_J1707.5+1649_daily_bin1520.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-16 17:21:49.568193', job_id='414249', GAL2='1.04', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1631838109.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.55e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1520' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:21:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 414249: <4FGL_J1707.5+1649_daily_bin1520> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1520> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 16 17:05:21 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 17:09:03 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep 16 17:09:03 2021
Terminated at Thu Sep 16 17:21:49 2021
Results reported at Thu Sep 16 17:21:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1520 256.881 16.8206 633312001 633571201 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 :                                   749.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             347.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            988 sec.

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

