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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1485
RA = 256.881, Dec = 16.8206
tmin = 624240001, tmax = 624499201
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='414196', job_status='RUN', time_executed='2021-09-16 17:08:44.256235', time_epoch_executed='1631837324.26' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1485'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/414196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/414196/ft1_4FGL_J1707.5+1649_daily_bin1485.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/414196/ft2_4FGL_J1707.5+1649_daily_bin1485.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/414196/ft1_4FGL_J1707.5+1649_daily_bin1485.fits outfile=/scratch/kocevski/414196/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1485.fits ra=256.881 dec=16.8206 rad=12.0 tmin=624240001.0 tmax=624499201.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.51
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/414196/ft1_filtered_4FGL_J1707.5+1649_daily_bin1485.fits" evtable="EVENTS" scfile=/scratch/kocevski/414196/ft2_4FGL_J1707.5+1649_daily_bin1485.fits sctable="SC_DATA" outfile=/scratch/kocevski/414196/ltcube_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.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/414196/ft2_4FGL_J1707.5+1649_daily_bin1485.fits
.....................!
real 13.72
user 13.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/414196/ft1_filtered_4FGL_J1707.5+1649_daily_bin1485.fits evtable="EVENTS" scfile=/scratch/kocevski/414196/ft2_4FGL_J1707.5+1649_daily_bin1485.fits sctable="SC_DATA" expcube=/scratch/kocevski/414196/ltcube_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.fits outfile=/scratch/kocevski/414196/expmap_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.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/414196/ltcube_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.fits
.....................!
real 190.90
user 185.95
sys 4.34

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/414196/ft1_filtered_4FGL_J1707.5+1649_daily_bin1485.fits scfile=/scratch/kocevski/414196/ft2_4FGL_J1707.5+1649_daily_bin1485.fits outfile=/scratch/kocevski/414196/cmap_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=256.881 yref=16.8206 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/414196/ft1_filtered_4FGL_J1707.5+1649_daily_bin1485.fits scfile=/scratch/kocevski/414196/ft2_4FGL_J1707.5+1649_daily_bin1485.fits outfile=/scratch/kocevski/414196/cmap_HighResolution_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29043       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62140       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.631       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8895       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .60444       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0453       1.0000         .10000E-03   10000.    
    16 'norm      '    8.4306       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2804       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98596       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=   9387.019     FROM MIGRAD    STATUS=CONVERGED    401 CALLS     1906 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.411       -.26645E-05** at limit **
   2  Prefactor     .25864        4.1560       -.51405E-06    .26182E-03
   3  Prefactor     .10000E-03    8.0835        .84492E-07** at limit **
   4  Prefactor     .61962        2.7336        .20752E-06   -.81927E-04
   5  Prefactor     .10000E-03    4.5346        .17242E-07** at limit **
   6  Prefactor     .10000E-03    19.746        .68159E-06** at limit **
   7  Prefactor     .10000E-03    9.9218       -.77743E-07** at limit **
   8  Prefactor     35.631        65.629       -.14976E-06   -.76674E-05
   9  Prefactor     3.8891        8.4629        .42982E-06   -.65072E-04
  10  Prefactor     .10000E-03    5.3232       -.18421E-07** at limit **
  11  norm          .60438        2.2201        .14928E-05   -.36741E-03
  12  Prefactor     .10000E-03    5.7945       -.80124E-07** at limit **
  13  norm          .10000E-03    2.8377       -.53875E-07** at limit **
  14  Prefactor     .10000E-03    59.051       -.23893E-05** at limit **
  15  Prefactor     1.0454        2.4930        .85170E-06   -.31492E-03
  16  norm          8.4288        12.237        .47611E-07   -.52470E-05
  17  norm          .10001E-03    36.108        .41853E-05** at limit **
  18  Normalizat    1.2803        .22938       -.89562E-06   -.75077E-04
  19  Prefactor     .98599        .85732E-01   -.15283E-06   -.15833E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.258641
  Prefactor  = 0.0001
  Prefactor  = 0.619624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6307
  Prefactor  = 3.88914
  Prefactor  = 0.0001
  norm       = 0.604379
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 1.04541
  norm       = 8.42877
  norm       = 0.000100008
  Normalizat = 1.2803
  Prefactor  = 0.985992
 **********
 **   18 **HESSE 
 **********

 FCN=   9387.019     FROM HESSE     STATUS=OK           266 CALLS     2172 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .25864        29.152        .37783E-02   -1.5606    
   3  Prefactor     .10000E-03    8.1449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .61962        14.610        .29620E-02   -1.5551    
   5  Prefactor     .10000E-03    4.6571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    19.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.631        65.516        .67138E-04   -1.4513    
   9  Prefactor     3.8891        8.4422        .20459E-03   -1.5314    
  10  Prefactor     .10000E-03    5.3454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .60438        2.2807        .27544E-03   -1.5552    
  12  Prefactor     .10000E-03    5.8114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8395        .15939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    60.179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0454        2.5304        .22641E-03   -1.5503    
  16  norm          8.4288        12.261        .13807E-03   -1.5127    
  17  norm          .10001E-03    39.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2803        .27538        .37095E-03   -.84156    
  19  Prefactor     .98599        .10392        .15931E-03   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46098e-08
Minuit parameter uncertainties:
  1  0.00059238
  2  5.49349
  3  1.20312e-05
  4  6.01876
  5  4.82529e-06
  6  0.000140007
  7  1.06174e-05
  8  65.6486
  9  8.44475
  10  1.26076e-06
  11  2.28106
  12  7.41292e-06
  13  3.73436e-06
  14  0.00080985
  15  2.53064
  16  12.2648
  17  0.0011578
  18  0.275697
  19  0.103943
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  1.261e-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:  9.860e-01  1.039e-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.280e+00  2.757e-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: 6.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/414196/likelihoodResults_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.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) = 9387.02015687
delta logL = -0.000891605835932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9387.01926715
delta logL = -1.8872142391e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2574       1.0000          .0000       10.000    
     3 'Normalizat'    1.2799       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98615       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9387.019     FROM MIGRAD    STATUS=FAILED        88 CALLS      244 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    838.40        .18142E-02** at limit **
   2  Index         2.2611        5.2884        .50000       -.58316E-05
   3  Normalizat    1.2803        .98653E-01    .37095E-03   -.54123E-04
   4  Prefactor     .98599        .38032E-01    .15931E-03   -.46853E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9387.019     FROM SIMPLEX   STATUS=UNCHANGED    196 CALLS      440 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    838.40        .42351E-03** at limit **
   2  Index         2.2611        5.2884        .37803E-06   -.58316E-05
   3  Normalizat    1.2803        .98653E-01    .20719E-07   -.54123E-04
   4  Prefactor     .98599        .38032E-01    .59825E-08   -.46853E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9387.019     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      474 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.7427        .36285E-03** at limit **
   2  Index         2.2611        6.1086        .50000       -.58320E-05
   3  Normalizat    1.2803        .26296        .14838E-04   -.54246E-04
   4  Prefactor     .98599        .10147        .31862E-04   -.46885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26112
  Normalizat = 1.28031
  Prefactor  = 0.98599
 **********
 **   18 **HESSE 
 **********

 FCN=   9387.019     FROM HESSE     STATUS=OK            29 CALLS      503 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3861        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2611        6.1303        .50000       -.57970    
   3  Normalizat    1.2803        .26293        .29676E-05   -.84156    
   4  Prefactor     .98599        .10147        .63724E-05   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13487e-10
Minuit parameter uncertainties:
  1  6.11091e-05
  2  4.20096
  3  0.263204
  4  0.101493
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/414196': 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) = 9387.01926526
delta logL = 9.79525793809e-09

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.000e-04  6.111e-05  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  2.261e+00  4.201e+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:  9.860e-01  1.015e-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.280e+00  2.632e-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/414196/cmap_HighResolution_624240001_624499201_4FGL_J1707.5+1649_daily_bin1485.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.13e-03', job_status='DONE', photon_flux_upper_limit='6.71e-08', time_completed='2021-09-16 17:21:49.284668', job_id='414196', GAL2='0.99', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1631838109.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.80e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1485' 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@bullet0205>
Subject: Job 414196: <4FGL_J1707.5+1649_daily_bin1485> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1485> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep 16 17:05:17 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 17:08:36 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:08:36 2021
Terminated at Thu Sep 16 17:21:50 2021
Results reported at Thu Sep 16 17:21:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1485 256.881 16.8206 624240001 624499201 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 :                                   783.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            993 sec.

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

