Sender: LSF System <lsf@bullet0234>
Subject: Job 186208: <4FGL_J1709.7+4318_weekly_bin666> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1709.7+4318_weekly_bin666 257.432 43.3109 641779201 642384001 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 :                                   3501.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             346.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3634 sec.
    Turnaround time :                            3673 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 99 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 = 17192
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1709.7+4318_weekly_bin666
RA = 257.432, Dec = 43.3109
tmin = 641779201, tmax = 642384001
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='186208', job_status='RUN', time_executed='2021-07-26 07:33:09.404563', time_epoch_executed='1627309989.4' WHERE source_name='4FGL J1709.7+4318' and cadence='weekly' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186208

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186208/ft1_4FGL_J1709.7+4318_weekly_bin666.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186208/ft1_4FGL_J1709.7+4318_weekly_bin666.fits outfile=/scratch/kocevski/186208/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin666.fits ra=257.432 dec=43.3109 rad=12.0 tmin=641779201.0 tmax=642384001.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 8.75
user 8.40
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.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/186208/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/186208/ft1_filtered_4FGL_J1709.7+4318_weekly_bin666.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.57
user 0.36
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186208/ft1_filtered_4FGL_J1709.7+4318_weekly_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/186208/ltcube_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.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/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.fits
.....................!
real 31.16
user 30.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186208/ft1_filtered_4FGL_J1709.7+4318_weekly_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/186208/ltcube_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.fits outfile=/scratch/kocevski/186208/expmap_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.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/186208/ltcube_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.fits
.....................!
real 193.56
user 187.04
sys 5.97

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/186208/ft1_filtered_4FGL_J1709.7+4318_weekly_bin666.fits scfile=/scratch/kocevski/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.fits outfile=/scratch/kocevski/186208/cmap_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.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.60
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186208/ft1_filtered_4FGL_J1709.7+4318_weekly_bin666.fits scfile=/scratch/kocevski/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.fits outfile=/scratch/kocevski/186208/cmap_HighResolution_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.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.61
user 0.43
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/186208/ft1_filtered_4FGL_J1709.7+4318_weekly_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/186208/ft2_4FGL_J1709.7+4318_weekly_bin666.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/186208/Model_4FGL_J1709.7+4318_weekly_bin666.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/186208/ft1_filtered_4FGL_J1709.7+4318_weekly_bin666.fits.....................!
real 161.52
user 159.74
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.835       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.2899       1.0000         .10000E-03   10000.    
     4 'norm      '    14.925       1.0000         .10000E-03   10000.    
     5 'norm      '    .30338       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4742       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50897       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3064       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6660       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5320       1.0000         .10000E-03   10000.    
    16 'norm      '    .10185E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .45441       1.0000         .10000E-03   10000.    
    18 'norm      '    .10138E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.0266       1.0000         .10000E-03   10000.    
    20 'norm      '    3.3624       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7217       1.0000         .10000E-03   10000.    
    22 'Prefactor '    37.051       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0258       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .61484       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .96196       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.025       1.0000         .10000E-03   10000.    
    28 'Prefactor '    18.897       1.0000         .10000E-03   10000.    
    29 'Prefactor '    26.235       1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.9183       1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.5211       1.0000         .10000E-03   10000.    
    32 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .95847       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .97037       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=   23501.11     FROM MIGRAD    STATUS=CONVERGED    979 CALLS     5001 TOTAL
                     EDM=   .91E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.4366        .83929E-07** at limit **
   2  Prefactor     21.828        13.267        .54588E-07   -.29739E-04
   3  Prefactor     1.2899        1.1003       -.25796E-07   -.14839E-03
   4  norm          14.924        10.321        .24835E-06    .96466E-04
   5  norm          .30340        .76080E-01   -.67485E-08   -.15778E-02
   6  norm          .10000E-03    1.7190        .20027E-07** at limit **
   7  Prefactor     .10000E-03    5.0832        .59493E-07** at limit **
   8  Prefactor     1.4741        1.6195        .10372E-06   -.78783E-03
   9  norm          .10000E-03    12.872        .12553E-07** at limit **
  10  Prefactor     .50824        .75089        .32725E-06   -.17015E-02
  11  Prefactor     1.3070        .82995       -.14767E-06   -.10662E-02
  12  Prefactor     3.6663        1.6233        .55713E-08   -.57560E-03
  13  Prefactor     .10000E-03    .50962       -.12847E-07** at limit **
  14  Prefactor     .10000E-03    1.7773        .17861E-08** at limit **
  15  norm          8.5320        1.2982       -.89366E-08   -.11554E-03
  16  norm          .10000E-03    .11588        .81692E-08** at limit **
  17  Prefactor     .45040        1.3012       -.16837E-07   -.34652E-03
  18  norm          .10000E-03    .11071        .58739E-08** at limit **
  19  norm          6.0266        3.9065        .13151E-07   -.18322E-03
  20  norm          3.3624        .99638        .72265E-08   -.13825E-02
  21  Prefactor     1.7219        1.4591        .24966E-07   -.52116E-03
  22  Prefactor     37.048        22.470        .68058E-06    .19505E-03
  23  norm          3.0259        2.5350        .82485E-07   -.66199E-03
  24  Prefactor     .10000E-03    10.244       -.84383E-07** at limit **
  25  norm          .61395        1.3253        .97390E-07   -.12047E-02
  26  Prefactor     .83428        13.969        .21405E-05   -.39573E-03
  27  Prefactor     12.027        3.1507        .39396E-06   -.33283E-02
  28  Prefactor     18.844        32.143       -.41018E-05   -.25055E-03
  29  Prefactor     26.220        23.398       -.20753E-05   -.76539E-03
  30  Prefactor     6.9179        8.5076       -.11200E-07   -.63998E-04
  31  Prefactor     7.5205        5.0652        .31552E-07   -.20180E-03
  32  norm          .10000E-03    2.8076        .44057E-07** at limit **
  33  Normalizat    .95857        .11212       -.48070E-06   -.32096E-03
  34  Prefactor     .97034        .82116E-01    .20963E-06   -.42614E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.8278
  Prefactor  = 1.28992
  norm       = 14.9244
  norm       = 0.303398
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.4741
  norm       = 0.0001
  Prefactor  = 0.508238
  Prefactor  = 1.30696
  Prefactor  = 3.66628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.53202
  norm       = 0.0001
  Prefactor  = 0.4504
  norm       = 0.0001
  norm       = 6.02663
  norm       = 3.36238
  Prefactor  = 1.72192
  Prefactor  = 37.0481
  norm       = 3.02594
  Prefactor  = 0.0001
  norm       = 0.613945
  Prefactor  = 0.834281
  Prefactor  = 12.0274
  Prefactor  = 18.8438
  Prefactor  = 26.2203
  Prefactor  = 6.91793
  Prefactor  = 7.5205
  norm       = 0.0001
  Normalizat = 0.958573
  Prefactor  = 0.970341
 **********
 **   18 **HESSE 
 **********

 FCN=   23501.11     FROM HESSE     STATUS=OK           760 CALLS     5761 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0036        .31928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.828        12.054        .85718E-04   -1.4773    
   3  Prefactor     1.2899        1.1001        .38997E-04   -1.5481    
   4  norm          14.924        10.320        .10367E-03   -1.4935    
   5  norm          .30340        .74607E-01    .19447E-04   -1.5598    
   6  norm          .10000E-03    1.7205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.1496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4741        1.6222        .19634E-03   -1.5465    
   9  norm          .10000E-03    12.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .50824        .71579        .10514E-03   -1.5565    
  11  Prefactor     1.3070        .78014        .70738E-04   -1.5479    
  12  Prefactor     3.6663        1.6102        .12212E-03   -1.5325    
  13  Prefactor     .10000E-03    .53156        .21332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.7884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5320        1.2969        .65331E-04   -1.5124    
  16  norm          .10000E-03    1.1399        .97346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .45040        4.1229        .27066E-02   -1.5574    
  18  norm          .10000E-03    .10892        .17803E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.0266        3.9028        .16356E-03   -1.5217    
  20  norm          3.3624        .98917        .77823E-04   -1.5341    
  21  Prefactor     1.7219        1.4429        .16383E-03   -1.5446    
  22  Prefactor     37.048        22.568        .65843E-04   -1.4490    
  23  norm          3.0259        2.5627        .21306E-03   -1.5360    
  24  Prefactor     .10000E-03    10.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .61395        1.5252        .24140E-02   -1.5551    
  26  Prefactor     .83428        163.96        .90511E-02   -1.5525    
  27  Prefactor     12.027        3.2231        .57760E-03   -1.5014    
  28  Prefactor     18.844        31.889        .92137E-04   -1.4840    
  29  Prefactor     26.220        27.166        .78212E-04   -1.4683    
  30  Prefactor     6.9179        8.5198        .15253E-03   -1.5182    
  31  Prefactor     7.5205        5.0690        .14623E-03   -1.5159    
  32  norm          .10000E-03    2.9297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .95857        .13196        .28506E-03   -.94432    
  34  Prefactor     .97034        .97040E-01    .22226E-03   -.93725    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.07015e-08
Minuit parameter uncertainties:
  1  2.56987e-05
  2  12.0554
  3  1.1001
  4  10.3208
  5  0.0746071
  6  8.59198e-07
  7  2.77216e-06
  8  1.62228
  9  2.30315e-06
  10  0.715803
  11  0.780148
  12  1.61019
  13  1.2675e-07
  14  6.63049e-07
  15  1.29692
  16  6.91989e-07
  17  2.72536
  18  7.65584e-07
  19  3.90298
  20  0.989171
  21  1.44292
  22  22.573
  23  2.56283
  24  9.80019e-06
  25  1.52527
  26  23.4557
  27  3.22317
  28  31.9174
  29  27.1784
  30  8.52128
  31  5.06928
  32  2.62982e-06
  33  0.132
  34  0.0970574
Done.

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

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.000e-04  7.656e-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.703e-01  9.706e-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:  9.586e-01  1.320e-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: 2.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.93e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186208/likelihoodResults_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.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) = 23501.1109573
delta logL = -0.00259170158097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 23500.8493617
delta logL = 0.259003857125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49368E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1968       1.0000          .0000       5.0000    
     3 'Normalizat'    .96075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96746       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=   23500.85     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      243 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49383E-01    .13514        .17511E-01    .94263E-02
   2  alpha         1.1966        .81395        .50000       -.16145E-03
   3  Normalizat    .96075        .10186        .45673E-01    .60909E-04
   4  Prefactor     .96746        .80309E-01    .45859E-01    .27620E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0493828
  alpha      = 1.19658
  Normalizat = 0.960753
  Prefactor  = 0.967463
 **********
 **   18 **HESSE 
 **********

 FCN=   23500.85     FROM HESSE     STATUS=OK            35 CALLS      278 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49383E-01    .11295        .68848E-03   -1.5664    
   2  alpha         1.1966        .95213        .44354E-01   -.54845    
   3  Normalizat    .96075        .11907        .28476E-03   -.94357    
   4  Prefactor     .96746        .93888E-01    .22253E-03   -.93822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.69394e-11
Minuit parameter uncertainties:
  1  0.112949
  2  0.986964
  3  0.119106
  4  0.093904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186208': 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) = 23500.8493617
delta logL = 0.259003930183

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  4.938e-02  1.129e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  1.197e+00  9.870e-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.675e-01  9.390e-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:  9.608e-01  1.191e-01  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/186208/cmap_HighResolution_641779201_642384001_4FGL_J1709.7+4318_weekly_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.93e-06', job_status='DONE', photon_flux_upper_limit='2.35e-08', time_completed='2021-07-26 08:31:50.005708', job_id='186208', GAL2='0.97', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1627313510.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.59e-01', ts2='0.52', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='666' AND source_name='4FGL J1709.7+4318' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 26 08:31:50 PDT 2021

