Sender: LSF System <lsf@bullet0163>
Subject: Job 186187: <4FGL_J1709.7+4318_weekly_bin656> in cluster <slac> Done

Job <4FGL_J1709.7+4318_weekly_bin656> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 26 07:30:35 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 26 07:31:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Jul 26 07:31:09 2021
Terminated at Mon Jul 26 08:29:41 2021
Results reported at Mon Jul 26 08:29:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1709.7+4318_weekly_bin656 257.432 43.3109 635731201 636336001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1709.7+4318 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3081.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             323.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3511 sec.
    Turnaround time :                            3546 sec.

The output (if any) follows:

aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/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 177 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 = 17195
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1709.7+4318_weekly_bin656
RA = 257.432, Dec = 43.3109
tmin = 635731201, tmax = 636336001
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='186187', job_status='RUN', time_executed='2021-07-26 07:34:26.400342', time_epoch_executed='1627310066.4' WHERE source_name='4FGL J1709.7+4318' and cadence='weekly' and bin_id='656'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186187

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186187/ft1_4FGL_J1709.7+4318_weekly_bin656.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186187/ft1_4FGL_J1709.7+4318_weekly_bin656.fits outfile=/scratch/kocevski/186187/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin656.fits ra=257.432 dec=43.3109 rad=12.0 tmin=635731201.0 tmax=636336001.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 9.32
user 8.95
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.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/186187/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin656.fits evtable="EVENTS" outfile="/scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.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.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits" evtable="EVENTS" scfile=/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits sctable="SC_DATA" outfile=/scratch/kocevski/186187/ltcube_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.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/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits
.....................!
real 30.48
user 30.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits sctable="SC_DATA" expcube=/scratch/kocevski/186187/ltcube_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.fits outfile=/scratch/kocevski/186187/expmap_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.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/186187/ltcube_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.fits
.....................!
real 193.75
user 186.35
sys 5.24

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1709.7+4318 @ 257.432 43.3109

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits scfile=/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits outfile=/scratch/kocevski/186187/cmap_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.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=257.432 yref=43.3109 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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits scfile=/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits outfile=/scratch/kocevski/186187/cmap_HighResolution_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.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=257.432 yref=43.3109 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits evtable="EVENTS" scfile=/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/186187/Model_4FGL_J1709.7+4318_weekly_bin656.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/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits.....................!
real 149.07
user 147.52
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits', '/scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits', expMap='/scratch/kocevski/186187/expmap_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.fits', expCube='/scratch/kocevski/186187/ltcube_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/186187/Model_4FGL_J1709.7+4318_weekly_bin656.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1709.7+4318'

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.018e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/186187/ft1_filtered_4FGL_J1709.7+4318_weekly_bin656.fits
Spacecraft file(s): /scratch/kocevski/186187/ft2_4FGL_J1709.7+4318_weekly_bin656.fits
Exposure map: /scratch/kocevski/186187/expmap_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.fits
Exposure cube: /scratch/kocevski/186187/ltcube_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/186187/Model_4FGL_J1709.7+4318_weekly_bin656.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) = 20223.6604975

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1429       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.2339       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .92420       1.0000         .10000E-03   10000.    
     4 'norm      '    23.194       1.0000         .10000E-03   10000.    
     5 'norm      '    .37828       1.0000         .10000E-03   10000.    
     6 'norm      '    .10466E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4137       1.0000         .10000E-03   10000.    
     9 'norm      '    17.863       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16324       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2528       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .76223E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9320       1.0000         .10000E-03   10000.    
    15 'norm      '    3.7004       1.0000         .10000E-03   10000.    
    16 'norm      '    .45874       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13398E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.9375       1.0000         .10000E-03   10000.    
    20 'norm      '    3.6635       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9059       1.0000         .10000E-03   10000.    
    22 'Prefactor '    28.873       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5105       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6867       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.832       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.5436       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'norm      '    7.0075       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.3100       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .90153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20223.60     FROM MIGRAD    STATUS=CONVERGED    943 CALLS     4961 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1466        4.8850         .0000        .38526E-01
   2  Prefactor     7.2211        23.162         .0000        .49800E-02
   3  Prefactor     .92448        2.1694         .0000        .41635E-02
   4  norm          23.194        12.222         .0000        .16812E-03
   5  norm          .37818        .98736E-01     .0000        .61111E-04
   6  norm          .10010E-03    3.7885         .0000    ** at limit **
   7  Prefactor     .10000E-03    11.107         .0000    ** at limit **
   8  Prefactor     1.4145        2.0239         .0000        .16751E-02
   9  norm          17.859        21.972         .0000        .22450E-02
  10  Prefactor     .16471        .58247         .0000        .31925E-02
  11  Prefactor     1.2506        1.0289         .0000        .16213E-02
  12  Prefactor     1.0502        2.1863         .0000        .42258E-02
  13  Prefactor     .10000E-03    .57472         .0000    ** at limit **
  14  Prefactor     1.9328        4.4784         .0000        .13979E-02
  15  norm          3.7006        1.1672         .0000        .50966E-03
  16  norm          .45906        .60864         .0000        .55375E-02
  17  Prefactor     .10002E-03    2.2514         .0000    ** at limit **
  18  norm          .10000E-03    .18680         .0000    ** at limit **
  19  norm          1.9381        4.6322         .0000        .17912E-02
  20  norm          3.6639        1.1677         .0000        .52659E-03
  21  Prefactor     4.9060        2.3115         .0000       -.16648E-03
  22  Prefactor     28.872        27.120         .0000        .11168E-02
  23  norm          1.5104        2.0047         .0000        .30521E-03
  24  Prefactor     .10001E-03    11.178         .0000    ** at limit **
  25  norm          4.6865        4.0820         .0000        .22975E-02
  26  Prefactor     .10001E-03    27.352         .0000    ** at limit **
  27  Prefactor     54.833        6.0088         .0000        .91148E-03
  28  Prefactor     .10000E-03    8.9336         .0000    ** at limit **
  29  Prefactor     .10014E-03    24.471         .0000    ** at limit **
  30  Prefactor     6.5433        9.6832         .0000        .11397E-03
  31  Prefactor     .10000E-03    5.0201         .0000    ** at limit **
  32  norm          7.0070        5.0660         .0000       -.96904E-03
  33  Normalizat    1.3098        .13963         .0000        .16429E-03
  34  Prefactor     .90164        .96144E-01     .0000        .16391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.1466
  Prefactor  = 7.22112
  Prefactor  = 0.924483
  norm       = 23.1937
  norm       = 0.378179
  norm       = 0.000100103
  Prefactor  = 0.000100003
  Prefactor  = 1.4145
  norm       = 17.8585
  Prefactor  = 0.16471
  Prefactor  = 1.25059
  Prefactor  = 1.05019
  Prefactor  = 0.0001
  Prefactor  = 1.93279
  norm       = 3.70056
  norm       = 0.459059
  Prefactor  = 0.000100021
  norm       = 0.0001
  norm       = 1.93811
  norm       = 3.66394
  Prefactor  = 4.90601
  Prefactor  = 28.8723
  norm       = 1.51042
  Prefactor  = 0.000100007
  norm       = 4.68651
  Prefactor  = 0.000100009
  Prefactor  = 54.8329
  Prefactor  = 0.000100003
  Prefactor  = 0.000100137
  Prefactor  = 6.54333
  Prefactor  = 0.0001
  norm       = 7.00697
  Normalizat = 1.30982
  Prefactor  = 0.901639
 **********
 **   18 **HESSE 
 **********

 FCN=   20223.60     FROM HESSE     STATUS=OK           756 CALLS     5717 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1466        4.6701        .14077E-02   -1.5415    
   2  Prefactor     7.2211        22.334        .14913E-03   -1.5170    
   3  Prefactor     .92448        2.1365        .29057E-03   -1.5516    
   4  norm          23.194        12.216        .83172E-04   -1.4744    
   5  norm          .37818        .97719E-01    .20627E-04   -1.5585    
   6  norm          .10010E-03    16.359        .53721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4145        1.9839        .22848E-03   -1.5470    
   9  norm          17.859        21.714        .94764E-04   -1.4863    
  10  Prefactor     .16471        2.0519        .12713E-02   -1.5627    
  11  Prefactor     1.2506        1.1544        .86112E-04   -1.5484    
  12  Prefactor     1.0502        2.0854        .26155E-03   -1.5503    
  13  Prefactor     .10000E-03    4.7065        .20008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9328        4.4284        .29880E-03   -1.5430    
  15  norm          3.7006        1.1621        .82501E-04   -1.5323    
  16  norm          .45906        .56365        .11025E-03   -1.5572    
  17  Prefactor     .10002E-03    2.6332        .57529E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .42370        .11665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.9381        4.5945        .29830E-03   -1.5430    
  20  norm          3.6639        1.1658        .82213E-04   -1.5325    
  21  Prefactor     4.9060        2.3088        .14211E-03   -1.5265    
  22  Prefactor     28.872        27.061        .74560E-04   -1.4633    
  23  norm          1.5104        1.9768        .22150E-03   -1.5462    
  24  Prefactor     .10001E-03    11.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6865        4.0651        .18589E-03   -1.5275    
  26  Prefactor     .10001E-03    27.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     54.833        6.0020        .54170E-04   -1.4226    
  28  Prefactor     .10000E-03    8.9358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10014E-03    24.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.5433        9.6755        .15688E-03   -1.5196    
  31  Prefactor     .10000E-03    5.1120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  norm          7.0070        5.0587        .15155E-03   -1.5178    
  33  Normalizat    1.3098        .16633        .28881E-03   -.83274    
  34  Prefactor     .90164        .11550        .25617E-03   -.96084    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43036e-07
Minuit parameter uncertainties:
  1  4.6709
  2  22.3596
  3  2.13669
  4  12.2172
  5  0.0977186
  6  0.00260243
  7  0.000354302
  8  1.98399
  9  21.7232
  10  1.16241
  11  1.15439
  12  2.08557
  13  3.05004e-05
  14  4.42913
  15  1.16213
  16  0.563658
  17  0.000465523
  18  3.18414e-07
  19  4.59533
  20  1.16578
  21  2.30886
  22  27.0728
  23  1.97693
  24  0.000574468
  25  4.06538
  26  0.000995005
  27  6.00207
  28  0.000299178
  29  0.00368822
  30  9.67781
  31  1.30861e-05
  32  5.05904
  33  0.166399
  34  0.115535
Done.

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

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.000e-04  3.184e-07  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  2.221e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  9.016e-01  1.155e-01  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  1.310e+00  1.664e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 257.432 43.311
Photon Flux Upper Limit: 3.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186187/likelihoodResults_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.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) = 20223.6116869
delta logL = -0.0113537471079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20223.6001811
delta logL = 0.000152111635543

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17629E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3242       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3098       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90165       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   20223.60     FROM MIGRAD    STATUS=FAILED       118 CALLS      333 TOTAL
                     EDM=   .24E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95668E-02    72.435        .67600E-03    .97381E-02
   2  alpha         3.2309        3.3246        .50000        .10975E-02
   3  Normalizat    1.3084        .29558E-01    .28895E-03   -.12102E-03
   4  Prefactor     .90209        .21611E-01    .25612E-03   -.12393E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   20223.60     FROM SIMPLEX   STATUS=UNCHANGED     98 CALLS      431 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95668E-02    72.435        .79302E-04    .97381E-02
   2  alpha         3.2309        3.3246        .64854E-02    .10975E-02
   3  Normalizat    1.3084        .29558E-01    .72760E-04   -.12102E-03
   4  Prefactor     .90209        .21611E-01    .23602E-04   -.12393E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   20223.60     FROM MIGRAD    STATUS=FAILED        77 CALLS      508 TOTAL
                     EDM=   .38E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .95665E-02    96.231        .54080E-05   -.68952E-04
   2  alpha         3.2309        3.3612        .50000        .10979E-02
   3  Normalizat    1.3084        .34314E-01    .23116E-05   -.13377E-03
   4  Prefactor     .90209        .25274E-01    .20489E-05   -.13317E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00956646
  alpha      = 3.2309
  Normalizat = 1.30838
  Prefactor  = 0.902093
 **********
 **   18 **HESSE 
 **********

 FCN=   20223.60     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      535 TOTAL
                     EDM=   .38E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .95665E-02    96.421        .10816E-05   -1.5689    
   2  alpha         3.2309        3.3579        .50000        .29669    
   3  Normalizat    1.3084        .34267E-01    .46232E-06   -.83316    
   4  Prefactor     .90209        .25394E-01    .40979E-06   -.96068    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000381671
Minuit parameter uncertainties:
  1  1.91386
  2  42.5135
  3  0.0342679
  4  0.0253947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186187': 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): 1
logL (Free Index) = 20223.5992857
delta logL = 0.00104745352292

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  9.566e-03  1.914e+00  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  3.231e+00  4.251e+01  0.000e+00  5.000e+00 ( 1.000e+00)
335         beta:  9.629e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
336           Eb:  6.265e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  9.021e-01  2.539e-02  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  1.308e+00  3.427e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 257.432 43.311

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/186187/cmap_HighResolution_635731201_636336001_4FGL_J1709.7+4318_weekly_bin656.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-05', job_status='DONE', photon_flux_upper_limit='3.75e-08', time_completed='2021-07-26 08:29:40.420123', job_id='186187', GAL2='0.90', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1627313380.42', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.05e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='656' AND source_name='4FGL J1709.7+4318' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 26 08:29:40 PDT 2021

