Sender: LSF System <lsf@bullet0242>
Subject: Job 186168: <4FGL_J1709.7+4318_weekly_bin646> in cluster <slac> Done

Job <4FGL_J1709.7+4318_weekly_bin646> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Jul 26 07:30:33 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Jul 26 07:31:08 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:08 2021
Terminated at Mon Jul 26 08:27:40 2021
Results reported at Mon Jul 26 08:27:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1709.7+4318_weekly_bin646 257.432 43.3109 629683201 630288001 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 :                                   3237.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             345.99 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   3392 sec.
    Turnaround time :                            3427 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 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 = 17168
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1709.7+4318_weekly_bin646
RA = 257.432, Dec = 43.3109
tmin = 629683201, tmax = 630288001
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='186168', job_status='RUN', time_executed='2021-07-26 07:31:35.169515', time_epoch_executed='1627309895.17' WHERE source_name='4FGL J1709.7+4318' and cadence='weekly' and bin_id='646'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186168

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186168/ft1_4FGL_J1709.7+4318_weekly_bin646.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186168/ft1_4FGL_J1709.7+4318_weekly_bin646.fits outfile=/scratch/kocevski/186168/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin646.fits ra=257.432 dec=43.3109 rad=12.0 tmin=629683201.0 tmax=630288001.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.27
user 8.82
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits" evtable="EVENTS" scfile=/scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits sctable="SC_DATA" outfile=/scratch/kocevski/186168/ltcube_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.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/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits
.....................!
real 30.45
user 29.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits sctable="SC_DATA" expcube=/scratch/kocevski/186168/ltcube_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.fits outfile=/scratch/kocevski/186168/expmap_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.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/186168/ltcube_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.fits
.....................!
real 193.19
user 185.98
sys 5.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 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/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits scfile=/scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits outfile=/scratch/kocevski/186168/cmap_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.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.59
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits scfile=/scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits outfile=/scratch/kocevski/186168/cmap_HighResolution_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.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.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits evtable="EVENTS" scfile=/scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/186168/Model_4FGL_J1709.7+4318_weekly_bin646.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/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits.....................!
real 145.90
user 143.66
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits', '/scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits', expMap='/scratch/kocevski/186168/expmap_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.fits', expCube='/scratch/kocevski/186168/ltcube_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/186168/Model_4FGL_J1709.7+4318_weekly_bin646.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/186168/ft1_filtered_4FGL_J1709.7+4318_weekly_bin646.fits
Spacecraft file(s): /scratch/kocevski/186168/ft2_4FGL_J1709.7+4318_weekly_bin646.fits
Exposure map: /scratch/kocevski/186168/expmap_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.fits
Exposure cube: /scratch/kocevski/186168/ltcube_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/186168/Model_4FGL_J1709.7+4318_weekly_bin646.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) = 20552.0442594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8756       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.4674       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .39258       1.0000         .10000E-03   10000.    
     6 'norm      '    4.4848       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.5254       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .54972       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1246       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65573       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4248       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9590       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .22543E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.607       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43076       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13728E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.9966       1.0000         .10000E-03   10000.    
    24 'Prefactor '    30.158       1.0000         .10000E-03   10000.    
    25 'norm      '    .39932E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.893       1.0000         .10000E-03   10000.    
    27 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .94002       1.0000         .10000E-03   10000.    
    31 'Prefactor '    13.077       1.0000         .10000E-03   10000.    
    32 'norm      '    .40845E-02   1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.2807       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .78736       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20552.03     FROM MIGRAD    STATUS=CONVERGED    975 CALLS     4988 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8753        2.2916        .91264E-07   -.19008E-03
   2  Prefactor     .10000E-03    5.0966        .56873E-06** at limit **
   3  Prefactor     1.4674        1.5545        .18508E-06    .16645E-03
   4  norm          .10000E-03    3.9564       -.17161E-07** at limit **
   5  norm          .39260        .95643E-01    .67146E-08    .10412E-02
   6  norm          4.4849        4.5360       -.41585E-07   -.11786E-04
   7  Prefactor     .10000E-03    4.4589       -.50225E-06** at limit **
   8  Prefactor     3.5258        2.0996        .52926E-07   -.29440E-04
   9  norm          .10000E-03    5.6692       -.32433E-06** at limit **
  10  Prefactor     .54994        .64591        .75410E-08   -.95687E-03
  11  Prefactor     .10000E-03    .24061        .31093E-07** at limit **
  12  Prefactor     2.1249        1.3155        .21054E-08   -.13365E-03
  13  Prefactor     .65574        .75320       -.15421E-07   -.26147E-04
  14  Prefactor     .10000E-03    4.1173        .44997E-06** at limit **
  15  norm          5.4249        1.2432        .10818E-07    .21164E-04
  16  norm          .10000E-03    .10556       -.68681E-07** at limit **
  17  Prefactor     6.9598        4.1154        .51972E-06    .48262E-03
  18  norm          .10000E-03    .19052       -.20966E-06** at limit **
  19  norm          .10175E-03    2.5968        .28218E-05** at limit **
  20  norm          21.607        1.9916        .90896E-08    .64053E-03
  21  Prefactor     .43100        .97667        .48651E-06    .85443E-03
  22  Prefactor     .10002E-03    83.779        .60836E-06** at limit **
  23  norm          3.9933        3.5976        .39875E-05    .11158E-02
  24  Prefactor     30.133        47.202       -.34260E-05    .14888E-04
  25  norm          .10001E-03    1.6624       -.10595E-05** at limit **
  26  Prefactor     28.896        23.081       -.11971E-06   -.33790E-04
  27  Prefactor     14.923        3.8247       -.24953E-06   -.15439E-02
  28  Prefactor     .10000E-03    35.190        .46969E-05** at limit **
  29  Prefactor     .10000E-03    19.045       -.18222E-06** at limit **
  30  Prefactor     .95724        3.9349        .98723E-07   -.25523E-03
  31  Prefactor     13.080        6.6596        .48728E-07   -.26719E-03
  32  norm          .10073E-03    1.6905        .17718E-05** at limit **
  33  Normalizat    1.2806        .12651        .62018E-06   -.11515E-03
  34  Prefactor     .78737        .91033E-01   -.13146E-05   -.43630E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.87533
  Prefactor  = 0.0001
  Prefactor  = 1.46743
  norm       = 0.0001
  norm       = 0.392596
  norm       = 4.4849
  Prefactor  = 0.0001
  Prefactor  = 3.52581
  norm       = 0.0001
  Prefactor  = 0.549938
  Prefactor  = 0.0001
  Prefactor  = 2.12487
  Prefactor  = 0.65574
  Prefactor  = 0.0001
  norm       = 5.42488
  norm       = 0.0001
  Prefactor  = 6.95981
  norm       = 0.0001
  norm       = 0.000101746
  norm       = 21.6071
  Prefactor  = 0.430999
  Prefactor  = 0.000100022
  norm       = 3.99325
  Prefactor  = 30.1328
  norm       = 0.000100008
  Prefactor  = 28.8965
  Prefactor  = 14.9232
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.957239
  Prefactor  = 13.0804
  norm       = 0.000100732
  Normalizat = 1.28064
  Prefactor  = 0.787373
 **********
 **   18 **HESSE 
 **********

 FCN=   20552.03     FROM HESSE     STATUS=OK           772 CALLS     5760 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8753        2.2782        .23260E-03   -1.5434    
   2  Prefactor     .10000E-03    5.1204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4674        1.5345        .17407E-03   -1.5466    
   4  norm          .10000E-03    3.9954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .39260        .92372E-01    .19611E-04   -1.5583    
   6  norm          4.4849        4.5398        .19013E-03   -1.5284    
   7  Prefactor     .10000E-03    4.4775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.5258        2.0976        .15337E-03   -1.5332    
   9  norm          .10000E-03    5.6706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .54994        .48872        .99995E-03   -1.5560    
  11  Prefactor     .10000E-03    .34448        .12146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1249        1.3128        .12427E-03   -1.5416    
  13  Prefactor     .65574        .73505        .12891E-03   -1.5546    
  14  Prefactor     .10000E-03    4.2122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4249        1.2356        .73391E-04   -1.5242    
  16  norm          .10000E-03    .17977        .89637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.9598        4.0772        .15208E-03   -1.5180    
  18  norm          .10000E-03    .42520        .11873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10175E-03    3.0949        .64109E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          21.607        1.9904        .57499E-04   -1.4778    
  21  Prefactor     .43100        .87192        .20578E-02   -1.5577    
  22  Prefactor     .10002E-03    86.056        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.9933        3.6452        .10087E-02   -1.5308    
  24  Prefactor     30.133        47.404        .72958E-04   -1.4610    
  25  norm          .10001E-03    11.654        .33970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     28.896        22.977        .74535E-04   -1.4632    
  27  Prefactor     14.923        3.7771        .10368E-03   -1.4935    
  28  Prefactor     .10000E-03    35.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    19.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .95724        22.638        .54807E-02   -1.5512    
  31  Prefactor     13.080        6.6555        .11077E-03   -1.4984    
  32  norm          .10073E-03    2.9023        .58745E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    1.2806        .14974        .27528E-03   -.84146    
  34  Prefactor     .78737        .10824        .25863E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.99276e-09
Minuit parameter uncertainties:
  1  2.27833
  2  8.86339e-06
  3  1.53457
  4  9.78255e-06
  5  0.092372
  6  4.54015
  7  2.46474e-05
  8  2.09762
  9  7.86776e-06
  10  0.488721
  11  2.54577e-07
  12  1.31285
  13  0.735056
  14  4.16589e-06
  15  1.23559
  16  1.47515e-06
  17  4.07738
  18  8.78984e-06
  19  0.00464997
  20  1.99043
  21  0.871944
  22  0.00275503
  23  3.64541
  24  47.4635
  25  0.000613002
  26  22.9841
  27  3.77712
  28  0.000180566
  29  9.34541e-05
  30  9.31376
  31  6.65583
  32  0.00291516
  33  0.14979
  34  0.108272
Done.

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

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.000e-04  8.790e-06  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:  7.874e-01  1.083e-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.281e+00  1.498e-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.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186168/likelihoodResults_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.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) = 20550.5447708
delta logL = 1.48979350024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20550.5372417
delta logL = 1.49732257063

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .85615E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3560       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2126       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81711       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.

 FCN=   20550.54     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      442 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85132E-01    .54463        .55234E-02    .12297E-01
   2  alpha         4.3590        4.6547        .50000        .14266E-03
   3  Normalizat    1.2126        .26600E-01    .63570E-01    .26658E-04
   4  Prefactor     .81707        .20223E-01    .43940E-01    .50348E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0851317
  alpha      = 4.35901
  Normalizat = 1.21265
  Prefactor  = 0.81707
 **********
 **   18 **HESSE 
 **********

 FCN=   20550.54     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      475 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85132E-01    1.5841        .24897E-04   -1.5650    
   2  alpha         4.3590        4.2187        .37291E-01    .83844    
   3  Normalizat    1.2126        .11931        .28120E-03   -.86213    
   4  Prefactor     .81707        .89986E-01    .25413E-03   -.99102    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.54245e-06
Minuit parameter uncertainties:
  1  0.734056
  2  5.51067
  3  0.119334
  4  0.090002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186168': 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) = 20550.5372361
delta logL = 1.49732817075

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  8.513e-02  7.341e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  4.359e+00  5.511e+00  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:  8.171e-01  9.000e-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.213e+00  1.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.15
Ra Dec: 257.432 43.311
Photon Index (Free Index): 4.36 +/- 5.51
Photon Flux (Free Index): 6.00e-08 +/- 3.92e-08
Energy Flux (Free Index): 8.77e-06 +/- 1.04e-05

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/186168/cmap_HighResolution_629683201_630288001_4FGL_J1709.7+4318_weekly_bin646.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-05', comment='SUCCESS', energy_flux2='8.77e-06', dlogl='1.50e+00', photon_flux2='6.00e-08', job_status='DONE', time_completed='2021-07-26 08:27:40.062404', photon_index_error2='5.51', photon_index2='4.36', ts='-0.00', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='3.79e-08', energy_flux_error2='1.04e-05', EG='1.28', time_epoch_completed='1627313260.06', return_code='0', job_id='186168', GAL2='0.82', EG2='1.21', return_code2='102', photon_flux_error2='3.92e-08', ts2='3.15', photon_index='2.22' WHERE bin_id='646' AND source_name='4FGL J1709.7+4318' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 26 08:27:40 PDT 2021

