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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin92
RA = 256.881, Dec = 16.8206
tmin = 263174401, tmax = 263433601
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='405738', job_status='RUN', time_executed='2021-09-16 16:36:25.262686', time_epoch_executed='1631835385.26' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405738

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405738/ft1_4FGL_J1707.5+1649_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405738/ft2_4FGL_J1707.5+1649_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405738/ft1_4FGL_J1707.5+1649_daily_bin92.fits outfile=/scratch/kocevski/405738/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin92.fits ra=256.881 dec=16.8206 rad=12.0 tmin=263174401.0 tmax=263433601.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.36
user 1.19
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405738/ft1_filtered_4FGL_J1707.5+1649_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/405738/ft2_4FGL_J1707.5+1649_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/405738/ltcube_263174401_263433601_4FGL_J1707.5+1649_daily_bin92.fits outfile=/scratch/kocevski/405738/expmap_263174401_263433601_4FGL_J1707.5+1649_daily_bin92.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/405738/ltcube_263174401_263433601_4FGL_J1707.5+1649_daily_bin92.fits
.....................!
real 192.60
user 186.97
sys 5.10

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/405738/ft1_filtered_4FGL_J1707.5+1649_daily_bin92.fits scfile=/scratch/kocevski/405738/ft2_4FGL_J1707.5+1649_daily_bin92.fits outfile=/scratch/kocevski/405738/cmap_263174401_263433601_4FGL_J1707.5+1649_daily_bin92.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405738/ft1_filtered_4FGL_J1707.5+1649_daily_bin92.fits scfile=/scratch/kocevski/405738/ft2_4FGL_J1707.5+1649_daily_bin92.fits outfile=/scratch/kocevski/405738/cmap_HighResolution_263174401_263433601_4FGL_J1707.5+1649_daily_bin92.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.834       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6677       1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.988       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    78.670       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.220       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10398       1.0000         .10000E-03   10000.    
    11 'norm      '    .11603E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.458       1.0000         .10000E-03   10000.    
    14 'Prefactor '    165.68       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0731       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4615       1.0000         .10000E-03   10000.    
    17 'norm      '    .10478E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.3381       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .87801       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=   10856.25     FROM MIGRAD    STATUS=CONVERGED    408 CALLS     1968 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.807        36.056       -.24196E-05    .18573E-04
   2  Prefactor     .10000E-03    6.3540       -.31063E-07** at limit **
   3  Prefactor     .10000E-03    3.6554        .65103E-07** at limit **
   4  Prefactor     .10000E-03    2.5946        .75307E-07** at limit **
   5  Prefactor     1.6685        5.1822       -.25663E-05   -.11562E-02
   6  Prefactor     32.015        29.739       -.26906E-05    .16511E-04
   7  Prefactor     .10000E-03    33.143       -.47898E-06** at limit **
   8  Prefactor     78.693        70.185        .18540E-04    .24366E-04
   9  Prefactor     12.218        8.1181        .10044E-07   -.19329E-04
  10  Prefactor     .10015E-03    5.2603       -.54541E-06** at limit **
  11  norm          .10000E-03    1.2221       -.13864E-06** at limit **
  12  Prefactor     .10000E-03    13.595        .33470E-06** at limit **
  13  norm          13.458        8.9327       -.35524E-05    .24074E-04
  14  Prefactor     165.66        79.926       -.16075E-04    .13778E-04
  15  Prefactor     3.0735        2.8055        .49767E-06   -.79190E-03
  16  norm          8.4621        10.811       -.10229E-04   -.38027E-04
  17  norm          .10000E-03    224.62       -.25963E-04** at limit **
  18  Normalizat    1.3382        .22360       -.72785E-06    .21766E-03
  19  Prefactor     .87801        .80304E-01    .12746E-05    .57315E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.8069
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.66847
  Prefactor  = 32.0154
  Prefactor  = 0.0001
  Prefactor  = 78.6934
  Prefactor  = 12.2183
  Prefactor  = 0.000100151
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.4579
  Prefactor  = 165.656
  Prefactor  = 3.07349
  norm       = 8.46207
  norm       = 0.000100001
  Normalizat = 1.33822
  Prefactor  = 0.878014
 **********
 **   18 **HESSE 
 **********

 FCN=   10856.25     FROM HESSE     STATUS=OK           278 CALLS     2246 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.807        36.056        .51028E-04   -1.4134    
   2  Prefactor     .10000E-03    6.4183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.6596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6331        .16379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6685        5.2437        .32651E-03   -1.5450    
   6  Prefactor     32.015        29.845        .70846E-04   -1.4576    
   7  Prefactor     .10000E-03    33.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     78.693        70.088        .45277E-04   -1.3931    
   9  Prefactor     12.218        8.0980        .11459E-03   -1.5009    
  10  Prefactor     .10015E-03    6.5082        .79427E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.6323        .22365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.458        8.9023        .10918E-03   -1.4974    
  14  Prefactor     165.66        79.691        .15668E-03   -1.3127    
  15  Prefactor     3.0735        2.7891        .15268E-03   -1.5357    
  16  norm          8.4621        10.799        .13781E-03   -1.5126    
  17  norm          .10000E-03    230.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.3382        .26667        .38042E-03   -.82433    
  19  Prefactor     .87801        .96252E-01    .16695E-03   -.96914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82939e-09
Minuit parameter uncertainties:
  1  36.0686
  2  1.23676e-05
  3  5.06907e-07
  4  3.13063e-06
  5  5.24515
  6  29.8587
  7  1.69699e-05
  8  70.1619
  9  8.09868
  10  0.00198088
  11  2.14977e-05
  12  0.000117266
  13  8.90317
  14  79.7428
  15  2.78923
  16  10.8017
  17  0.000734718
  18  0.266943
  19  0.0962702
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.002e-04  1.981e-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:  8.780e-01  9.627e-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:  1.338e+00  2.669e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/405738/likelihoodResults_263174401_263433601_4FGL_J1707.5+1649_daily_bin92.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) = 10856.247076
delta logL = -2.24226168939e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10856.2470759
delta logL = -2.23077986448e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96264E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2541       1.0000          .0000       10.000    
     3 'Normalizat'    1.3381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87805       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=   10856.20     FROM MIGRAD    STATUS=CONVERGED    163 CALLS      338 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .37084E-02    .50491E-03** at limit **
   2  Index         6.9862        2.0197        .24506        .75755E-04
   3  Normalizat    1.3133        .25420E-01    .86608E-01   -.35427E-04
   4  Prefactor     .88365        .92934E-02    .44725E-01   -.13753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.98624
  Normalizat = 1.31329
  Prefactor  = 0.883654
 **********
 **   18 **HESSE 
 **********

 FCN=   10856.20     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      377 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .23168E-01    .41104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9862        8.2041        .10572E-01    .40852    
   3  Normalizat    1.3133        .60134E-01    .38350E-03   -.83170    
   4  Prefactor     .88365        .21920E-01    .16647E-03   -.96715    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.40337e-07
Minuit parameter uncertainties:
  1  4.3194e-08
  2  11.3106
  3  0.0601377
  4  0.0219199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405738': 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) = 10856.1964923
delta logL = 0.0505612584384

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  4.319e-08  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  6.986e+00  1.131e+01  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:  8.837e-01  2.192e-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:  1.313e+00  6.014e-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/405738/cmap_HighResolution_263174401_263433601_4FGL_J1707.5+1649_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-16 16:50:29.155358', job_id='405738', GAL2='0.88', fit_tolerance='1e-08', EG2='1.31', EG='1.34', time_epoch_completed='1631836229.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='5.06e-02', ts2='0.11', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='92' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 16:50:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 405738: <4FGL_J1707.5+1649_daily_bin92> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin92> 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) <bullet0214>, 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:29 2021
Results reported at Thu Sep 16 16:50:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin92 256.881 16.8206 263174401 263433601 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 :                                   843.38 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             349.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            906 sec.

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

