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


Performing analysis on: 4FGL_J1707.5+1649_daily_bin1087
RA = 256.881, Dec = 16.8206
tmin = 521078401, tmax = 521337601
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='412624', job_status='RUN', time_executed='2021-09-16 17:02:59.961231', time_epoch_executed='1631836979.96' WHERE source_name='4FGL J1707.5+1649' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412624/ft1_4FGL_J1707.5+1649_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412624/ft2_4FGL_J1707.5+1649_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412624/ft1_4FGL_J1707.5+1649_daily_bin1087.fits outfile=/scratch/kocevski/412624/ft1_filteredMKT_4FGL_J1707.5+1649_daily_bin1087.fits ra=256.881 dec=16.8206 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.65
user 4.37
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412624/ft1_filtered_4FGL_J1707.5+1649_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/412624/ft2_4FGL_J1707.5+1649_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/412624/ltcube_521078401_521337601_4FGL_J1707.5+1649_daily_bin1087.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/412624/ft2_4FGL_J1707.5+1649_daily_bin1087.fits
.....................!
real 14.63
user 14.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412624/ft1_filtered_4FGL_J1707.5+1649_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/412624/ft2_4FGL_J1707.5+1649_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/412624/ltcube_521078401_521337601_4FGL_J1707.5+1649_daily_bin1087.fits outfile=/scratch/kocevski/412624/expmap_521078401_521337601_4FGL_J1707.5+1649_daily_bin1087.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/412624/ltcube_521078401_521337601_4FGL_J1707.5+1649_daily_bin1087.fits
.....................!
real 194.57
user 188.37
sys 5.32

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/412624/ft1_filtered_4FGL_J1707.5+1649_daily_bin1087.fits scfile=/scratch/kocevski/412624/ft2_4FGL_J1707.5+1649_daily_bin1087.fits outfile=/scratch/kocevski/412624/cmap_521078401_521337601_4FGL_J1707.5+1649_daily_bin1087.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.56
user 0.39
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11880E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3351       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.556       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.214       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0149       1.0000         .10000E-03   10000.    
    13 'norm      '    22.550       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22153E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42481       1.0000         .10000E-03   10000.    
    16 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .87687       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1019       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=   9120.176     FROM MIGRAD    STATUS=CONVERGED    398 CALLS     1900 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.874        41.491        .12481E-04   -.53665E-05
   2  Prefactor     .10000E-03    7.2992       -.25446E-06** at limit **
   3  Prefactor     .10000E-03    34.114       -.22017E-05** at limit **
   4  Prefactor     6.3350        7.5262       -.15765E-05   -.23557E-03
   5  Prefactor     15.556        7.2224        .12011E-05   -.35307E-04
   6  Prefactor     15.066        37.822        .82380E-05   -.13892E-04
   7  Prefactor     .10000E-03    9.7074        .28235E-07** at limit **
   8  Prefactor     .10000E-03    30.245        .19388E-05** at limit **
   9  Prefactor     .10000E-03    1.8849       -.53907E-08** at limit **
  10  Prefactor     12.208        17.578        .16018E-04   -.30317E-04
  11  norm          .10000E-03    .91915       -.63802E-07** at limit **
  12  Prefactor     1.0058        8.6375        .64372E-06   -.26130E-03
  13  norm          22.550        15.327       -.34918E-06   -.62551E-04
  14  Prefactor     .10001E-03    643.08       -.30038E-04** at limit **
  15  Prefactor     .42702        1.7895        .25950E-08   -.37719E-03
  16  norm          .10000E-03    6.4546        .42441E-07** at limit **
  17  norm          .10000E-03    21.660       -.17380E-06** at limit **
  18  Normalizat    .87699        .28180       -.79231E-05   -.38897E-04
  19  Prefactor     1.1019        .97876E-01    .23267E-06   -.14462E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.8741
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.33502
  Prefactor  = 15.5556
  Prefactor  = 15.0656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2079
  norm       = 0.0001
  Prefactor  = 1.00583
  norm       = 22.5496
  Prefactor  = 0.000100015
  Prefactor  = 0.427023
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.876992
  Prefactor  = 1.10186
 **********
 **   18 **HESSE 
 **********

 FCN=   9120.176     FROM HESSE     STATUS=OK           272 CALLS     2172 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.874        41.434        .77261E-04   -1.4671    
   2  Prefactor     .10000E-03    7.3136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    34.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.3350        7.5425        .15947E-03   -1.5205    
   5  Prefactor     15.556        7.2174        .10155E-03   -1.4919    
   6  Prefactor     15.066        37.739        .10317E-03   -1.4931    
   7  Prefactor     .10000E-03    9.7090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8878        .12803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.208        17.516        .11462E-03   -1.5009    
  11  norm          .10000E-03    .92215        .89403E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0058        59.031        .49921E-02   -1.5507    
  13  norm          22.550        15.515        .84351E-04   -1.4758    
  14  Prefactor     .10001E-03    661.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .42702        7.6450        .21533E-02   -1.5577    
  16  norm          .10000E-03    6.4667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    21.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .87699        .31877        .48300E-03   -.97273    
  19  Prefactor     1.1019        .11334        .15835E-03   -.89407    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17544e-09
Minuit parameter uncertainties:
  1  41.4781
  2  6.92982e-05
  3  0.000305498
  4  7.54367
  5  7.21782
  6  37.799
  7  6.1114e-06
  8  3.37938e-05
  9  5.24589e-07
  10  17.5231
  11  6.12498e-06
  12  15.4263
  13  15.5181
  14  0.00631369
  15  3.61375
  16  1.2666e-05
  17  5.19254e-06
  18  0.319453
  19  0.113361
Done.

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

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  1.221e+01  1.752e+01  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.102e+00  1.134e-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:  8.770e-01  3.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.62
Ra Dec: 256.881 16.821
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.24e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412624/likelihoodResults_521078401_521337601_4FGL_J1707.5+1649_daily_bin1087.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): 0
logL (Free Index) = 9119.85008406
delta logL = 0.326063934774

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9119.67468999
delta logL = 0.501457998931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1369       1.0000         .10000E-03   10000.    
     2 'Index     '    .83484       1.0000          .0000       10.000    
     3 'Normalizat'    .89405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1042       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=   9119.675     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      227 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1419        3.9612        .57222E-02   -.17242E-02
   2  Index         .83543        .47249        .34535       -.11095E-03
   3  Normalizat    .89402        .26211        .10794        .75478E-05
   4  Prefactor     1.1041        .95837E-01    .37430E-01   -.12854E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14186
  Index      = 0.835431
  Normalizat = 0.894023
  Prefactor  = 1.10414
 **********
 **   18 **HESSE 
 **********

 FCN=   9119.675     FROM HESSE     STATUS=OK            33 CALLS      260 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1419        7.3093        .10315E-02   -1.5353    
   2  Index         .83543        .83218        .15839E-01   -.98435    
   3  Normalizat    .89402        .29882        .47850E-03   -.96670    
   4  Prefactor     1.1041        .10970        .15819E-03   -.89334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94954e-08
Minuit parameter uncertainties:
  1  7.31133
  2  0.84527
  3  0.299372
  4  0.109722
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412624': 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) = 9119.67468959
delta logL = 0.501458397133

Extracting fit parameters...

4FGL J1707.5+1649
   Spectrum: PowerLaw
271    Prefactor:  3.142e+00  7.311e+00  1.000e-04  1.000e+04 ( 1.000e-13)
272        Index:  8.354e-01  8.453e-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:  1.104e+00  1.097e-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:  8.940e-01  2.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.61
Ra Dec: 256.881 16.821
Photon Index (Free Index): 0.84 +/- 0.85
Photon Flux (Free Index): 3.73e-09 +/- 5.43e-09
Energy Flux (Free Index): 7.76e-05 +/- 1.19e-04

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/412624/cmap_HighResolution_521078401_521337601_4FGL_J1707.5+1649_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='7.76e-05', dlogl='5.01e-01', photon_flux2='3.73e-09', job_status='DONE', time_completed='2021-09-16 17:15:18.086696', photon_index_error2='0.85', photon_index2='0.84', ts='0.62', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.19e-04', EG='0.88', time_epoch_completed='1631837718.09', return_code='0', job_id='412624', GAL2='1.10', EG2='0.89', return_code2='0', photon_flux_error2='5.43e-09', ts2='1.61', photon_index='2.25' WHERE bin_id='1087' AND source_name='4FGL J1707.5+1649' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep 16 17:15:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 412624: <4FGL_J1707.5+1649_daily_bin1087> in cluster <slac> Done

Job <4FGL_J1707.5+1649_daily_bin1087> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Thu Sep 16 17:00:18 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep 16 17:00:22 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:00:22 2021
Terminated at Thu Sep 16 17:15:18 2021
Results reported at Thu Sep 16 17:15:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1707.5+1649_daily_bin1087 256.881 16.8206 521078401 521337601 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 :                                   735.27 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            900 sec.

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

