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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin55
RA = 256.881, Dec = 16.8206
tmin = 253584001, tmax = 253843201
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='405686', job_status='RUN', time_executed='2021-09-16 16:38:32.592521', time_epoch_executed='1631835512.59' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405686

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405686/ft1_4FGL_J1707.5+1649_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405686/ft2_4FGL_J1707.5+1649_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405686/ft1_4FGL_J1707.5+1649_daily_bin55.fits outfile=/scratch/kocevski/405686/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin55.fits ra=256.881 dec=16.8206 rad=12.0 tmin=253584001.0 tmax=253843201.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.45
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405686/ft1_filtered_4FGL_J1707.5+1649_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/405686/ft2_4FGL_J1707.5+1649_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/405686/ltcube_253584001_253843201_4FGL_J1707.5+1649_daily_bin55.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/405686/ft2_4FGL_J1707.5+1649_daily_bin55.fits
.....................!
real 16.69
user 16.27
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405686/ft1_filtered_4FGL_J1707.5+1649_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/405686/ft2_4FGL_J1707.5+1649_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/405686/ltcube_253584001_253843201_4FGL_J1707.5+1649_daily_bin55.fits outfile=/scratch/kocevski/405686/expmap_253584001_253843201_4FGL_J1707.5+1649_daily_bin55.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/405686/ltcube_253584001_253843201_4FGL_J1707.5+1649_daily_bin55.fits
.....................!
real 191.68
user 186.06
sys 5.11

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

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5515       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8008       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82567       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .27269E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69854E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.8917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12115E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    18.388       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12899E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.0677       1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .88635       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0407       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10073.11     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     1671 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5469        25.754         .0000        .62526E-03
   2  Prefactor     .10000E-03    4.0803         .0000    ** at limit **
   3  Prefactor     .10000E-03    13.684         .0000    ** at limit **
   4  Prefactor     1.8066        4.9498         .0000        .28734E-01
   5  Prefactor     .10000E-03    3.1618         .0000    ** at limit **
   6  Prefactor     .80624        24.119         .0000        .11020E-02
   7  Prefactor     .10000E-03    35.007         .0000    ** at limit **
   8  Prefactor     .10023E-03    24.850         .0000    ** at limit **
   9  Prefactor     .10010E-03    3.9276         .0000    ** at limit **
  10  Prefactor     .10012E-03    7.2872         .0000    ** at limit **
  11  norm          3.8910        2.5323         .0000        .23201E-03
  12  Prefactor     .10063E-03    6.2846         .0000    ** at limit **
  13  norm          18.404        10.415         .0000        .12116E-02
  14  Prefactor     .10077E-03    56.455         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.5493         .0000    ** at limit **
  16  norm          4.0708        7.6477         .0000       -.28591E-02
  17  norm          .10005E-03    23.520         .0000    ** at limit **
  18  Normalizat    .88656        .22714         .0000        .82939E-04
  19  Prefactor     1.0408        .83100E-01     .0000        .12498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.54694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80665
  Prefactor  = 0.0001
  Prefactor  = 0.80624
  Prefactor  = 0.000100002
  Prefactor  = 0.000100234
  Prefactor  = 0.000100096
  Prefactor  = 0.000100122
  norm       = 3.89104
  Prefactor  = 0.000100628
  norm       = 18.4036
  Prefactor  = 0.000100775
  Prefactor  = 0.0001
  norm       = 4.07082
  norm       = 0.000100046
  Normalizat = 0.886556
  Prefactor  = 1.04082
 **********
 **   18 **HESSE 
 **********

 FCN=   10073.11     FROM HESSE     STATUS=OK           278 CALLS     1949 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5469        25.693        .17051E-03   -1.5237    
   2  Prefactor     .10000E-03    4.0882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.8066        4.9159        .15575E-02   -1.5439    
   5  Prefactor     .10000E-03    3.2045        .17420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .80624        31.469        .12397       -1.5528    
   7  Prefactor     .10000E-03    35.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10023E-03    24.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10010E-03    27.024        .37948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10012E-03    55.857        .51533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.8910        2.5233        .12466E-03   -1.5313    
  12  Prefactor     .10063E-03    61.280        .48096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          18.404        10.185        .93402E-04   -1.4850    
  14  Prefactor     .10077E-03    56.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0867        .23362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.0708        7.6421        .19991E-03   -1.5304    
  17  norm          .10005E-03    23.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .88656        .26414        .42410E-03   -.96934    
  19  Prefactor     1.0408        .97852E-01    .14889E-03   -.91381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11451e-08
Minuit parameter uncertainties:
  1  23.8927
  2  4.95622e-06
  3  2.37501e-05
  4  4.91699
  5  9.82296e-06
  6  10.0791
  7  0.000495569
  8  0.00482334
  9  0.00322758
  10  0.0052356
  11  2.52338
  12  0.0124209
  13  10.1858
  14  0.013252
  15  3.14045e-06
  16  7.64392
  17  0.00208177
  18  0.264523
  19  0.0978692
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.001e-04  5.236e-03  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.041e+00  9.787e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  8.866e-01  2.645e-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.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405686/likelihoodResults_253584001_253843201_4FGL_J1707.5+1649_daily_bin55.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) = 10073.1052553
delta logL = -8.35097198433e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10073.1051689
delta logL = 2.97611768474e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10944E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3921       1.0000          .0000       10.000    
     3 'Normalizat'    .88667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0408       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=   10073.03     FROM MIGRAD    STATUS=CONVERGED    167 CALLS      348 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .57105        173.47        .18039E-03   -.61611E-03
   2  Index         3.4637        6.3231        .12174E-01   -.25008E-04
   3  Normalizat    .86092        .18497        .42983E-03   -.13891E-03
   4  Prefactor     1.0451        .70582E-01    .14861E-03   -.54016E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.571052
  Index      = 3.46373
  Normalizat = 0.860918
  Prefactor  = 1.04508
 **********
 **   18 **HESSE 
 **********

 FCN=   10073.03     FROM HESSE     STATUS=OK            25 CALLS      373 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .57105        5.7668        .72156E-05   -1.5557    
   2  Index         3.4637        2.5089        .48697E-03   -.31231    
   3  Normalizat    .86092        .26093        .17193E-04   -.97847    
   4  Prefactor     1.0451        .96943E-01    .29722E-04   -.91242    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9477e-10
Minuit parameter uncertainties:
  1  3.62953
  2  2.64273
  3  0.261312
  4  0.0969588
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405686': 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) = 10073.0287531
delta logL = 0.0764187258883

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  5.711e-01  3.630e+00  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  3.464e+00  2.643e+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.045e+00  9.696e-02  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  8.609e-01  2.613e-01  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/405686/cmap_HighResolution_253584001_253843201_4FGL_J1707.5+1649_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.32e-08', time_completed='2021-09-16 16:51:17.621358', job_id='405686', GAL2='1.05', fit_tolerance='1e-08', EG2='0.86', EG='0.89', time_epoch_completed='1631836277.62', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='7.64e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='55' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:51:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 405686: <4FGL_J1707.5+1649_daily_bin55> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin55> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Sep 16 16:35:20 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 16:35:52 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:35:52 2021
Terminated at Thu Sep 16 16:51:18 2021
Results reported at Thu Sep 16 16:51:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin55 256.881 16.8206 253584001 253843201 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 :                                   764.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             315.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            958 sec.

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

