Sender: LSF System <lsf@bullet0106>
Subject: Job 186198: <4FGL_J1709.7+4318_weekly_bin662> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1709.7+4318_weekly_bin662 257.432 43.3109 639360001 639964801 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 :                                   2977.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             319.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3257 sec.
    Turnaround time :                            3295 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 55 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 = 17149
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1709.7+4318_weekly_bin662
RA = 257.432, Dec = 43.3109
tmin = 639360001, tmax = 639964801
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='186198', job_status='RUN', time_executed='2021-07-26 07:32:21.865755', time_epoch_executed='1627309941.87' WHERE source_name='4FGL J1709.7+4318' and cadence='weekly' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/186198

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/186198/ft1_4FGL_J1709.7+4318_weekly_bin662.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/186198/ft1_4FGL_J1709.7+4318_weekly_bin662.fits outfile=/scratch/kocevski/186198/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin662.fits ra=257.432 dec=43.3109 rad=12.0 tmin=639360001.0 tmax=639964801.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.97
user 8.54
sys 0.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.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/186198/ft1_filteredMKT_4FGL_J1709.7+4318_weekly_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/186198/ft1_filtered_4FGL_J1709.7+4318_weekly_bin662.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.37
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/186198/ft1_filtered_4FGL_J1709.7+4318_weekly_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/186198/ltcube_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.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/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.fits
.....................!
real 31.60
user 30.96
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/186198/ft1_filtered_4FGL_J1709.7+4318_weekly_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/186198/ltcube_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.fits outfile=/scratch/kocevski/186198/expmap_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.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/186198/ltcube_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.fits
.....................!
real 193.24
user 187.27
sys 4.84

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/186198/ft1_filtered_4FGL_J1709.7+4318_weekly_bin662.fits scfile=/scratch/kocevski/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.fits outfile=/scratch/kocevski/186198/cmap_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.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.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/186198/ft1_filtered_4FGL_J1709.7+4318_weekly_bin662.fits scfile=/scratch/kocevski/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.fits outfile=/scratch/kocevski/186198/cmap_HighResolution_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/186198/ft1_filtered_4FGL_J1709.7+4318_weekly_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/186198/ft2_4FGL_J1709.7+4318_weekly_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/186198/Model_4FGL_J1709.7+4318_weekly_bin662.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/186198/ft1_filtered_4FGL_J1709.7+4318_weekly_bin662.fits.....................!
real 150.36
user 148.61
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .78743E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80336       1.0000         .10000E-03   10000.    
     4 'norm      '    .21448       1.0000         .10000E-03   10000.    
     5 'norm      '    .18864       1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6409       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30709       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3452       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0444       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11556E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.0004       1.0000         .10000E-03   10000.    
    16 'norm      '    .53006E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9247       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9222       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1445       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11485E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.106       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    23.139       1.0000         .10000E-03   10000.    
    28 'Prefactor '    39.477       1.0000         .10000E-03   10000.    
    29 'Prefactor '    4.9605       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    5.3411       1.0000         .10000E-03   10000.    
    32 'norm      '    2.5507       1.0000         .10000E-03   10000.    
    33 'Normalizat'    1.1747       1.0000         .10000E-01   10.000    
    34 'Prefactor '    .98143       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21051.31     FROM MIGRAD    STATUS=CONVERGED    150 CALLS     4151 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .92218        .49504E-06** at limit **
   2  Prefactor     .10000E-03    150.48       -.82947E-04** at limit **
   3  Prefactor     .80347        1.2408        .27075E-06   -.83538E-04
   4  norm          .12191        108.08        .19948E-03    .14849E-04
   5  norm          .18860        .73554E-01   -.12949E-06   -.95505E-03
   6  norm          .10000E-03    2.8981       -.14326E-05** at limit **
   7  Prefactor     .10000E-03    16.657        .28727E-04** at limit **
   8  Prefactor     2.6407        1.9611        .35994E-07   -.61730E-03
   9  norm          .10000E-03    4.8900        .23191E-06** at limit **
  10  Prefactor     .30742        .58702        .53182E-07    .29463E-03
  11  Prefactor     1.3448        .79650        .54425E-07    .51351E-03
  12  Prefactor     3.0442        1.7215       -.19520E-07   -.13808E-03
  13  Prefactor     .72945        1.1609       -.19019E-06   -.19381E-03
  14  Prefactor     .10000E-03    8.9517        .54864E-05** at limit **
  15  norm          5.0003        1.2025        .15806E-07    .68895E-03
  16  norm          .52907E-01    .92763       -.23633E-06    .13654E-03
  17  Prefactor     6.9233        2.6314        .45034E-05    .53365E-02
  18  norm          .10000E-03    .24857        .40503E-07** at limit **
  19  norm          2.9214        3.3427        .72632E-06   -.31048E-03
  20  norm          5.1440        1.1817       -.35404E-07    .73930E-03
  21  Prefactor     .10000E-03    3.1401        .85828E-06** at limit **
  22  Prefactor     .10000E-03    6.0735       -.37988E-05** at limit **
  23  norm          .10000E-03    .69549        .75012E-06** at limit **
  24  Prefactor     38.123        1.2846        .74545E-06   -.72079E-03
  25  norm          .10000E-03    1.3931       -.64791E-06** at limit **
  26  Prefactor     .10000E-03    34.610       -.43763E-04** at limit **
  27  Prefactor     23.137        3.4176        .20962E-05   -.35419E-02
  28  Prefactor     39.490        1.4837        .16368E-05   -.11006E-02
  29  Prefactor     4.9565        1.1174        .21332E-05    .91735E-04
  30  Prefactor     .10000E-03    14.169       -.16201E-04** at limit **
  31  Prefactor     5.3404        3.4510       -.11465E-05    .15584E-02
  32  norm          2.5493        1.4488       -.24132E-05   -.55756E-02
  33  Normalizat    1.1748        .14617        .21220E-05    .91849E-04
  34  Prefactor     .98140        .10623       -.27135E-05    .32023E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.803471
  norm       = 0.121907
  norm       = 0.188601
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 2.64073
  norm       = 0.0001
  Prefactor  = 0.307419
  Prefactor  = 1.3448
  Prefactor  = 3.04421
  Prefactor  = 0.729448
  Prefactor  = 0.000100001
  norm       = 5.00027
  norm       = 0.0529066
  Prefactor  = 6.92331
  norm       = 0.0001
  norm       = 2.92138
  norm       = 5.14399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.123
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 23.1372
  Prefactor  = 39.4901
  Prefactor  = 4.95655
  Prefactor  = 0.000100003
  Prefactor  = 5.34044
  norm       = 2.54932
  Normalizat = 1.17483
  Prefactor  = 0.981398
 **********
 **   18 **HESSE 
 **********

 FCN=   21051.31     FROM HESSE     STATUS=OK           844 CALLS     4995 TOTAL
                     EDM=   .35E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .91814        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.2105        .14498       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .80347        1.3339        .45317E-01   -1.5529    
   4  norm          .12191        4.5319        .10044       -1.5638    
   5  norm          .18860        .77585E-01    .52197E-02   -1.5621    
   6  norm          .10000E-03    2.8922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6407        1.9775        .62723E-02   -1.5383    
   9  norm          .10000E-03    4.8984        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .30742        .67072        .26932E-01   -1.5597    
  11  Prefactor     1.3448        .87279        .94396E-02   -1.5476    
  12  Prefactor     3.0442        1.7443        .58134E-02   -1.5359    
  13  Prefactor     .72945        1.1719        .44086E-01   -1.5537    
  14  Prefactor     .10000E-03    1.3647        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.0003        1.2067        .44959E-02   -1.5261    
  16  norm          .52907E-01    .18568        .31854E-01   -1.5662    
  17  Prefactor     6.9233        4.1861        .38115E-02   -1.5182    
  18  norm          .10000E-03    .14033        .20566E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9214        3.3657        .59412E-02   -1.5366    
  20  norm          5.1440        1.1883        .44312E-02   -1.5254    
  21  Prefactor     .10000E-03    .65286        .40124E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.0758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .69109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.123        31.293        .16232E-02   -1.4472    
  25  norm          .10000E-03    1.3728        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    34.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     23.137        4.3529        .20818E-02   -1.4746    
  28  Prefactor     39.490        30.970        .15949E-02   -1.4450    
  29  Prefactor     4.9565        14.538        .45143E-02   -1.5263    
  30  Prefactor     .10000E-03    13.964        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     5.3404        3.5157        .43474E-02   -1.5246    
  32  norm          2.5493        4.3986        .63915E-02   -1.5389    
  33  Normalizat    1.1748        .12565        .64096E-01   -.87384    
  34  Prefactor     .98140        .89283E-01    .46035E-01   -.93352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48037e-07
Minuit parameter uncertainties:
  1  2.96424e-06
  2  0.000146654
  3  1.33391
  4  1.48607
  5  0.0775847
  6  5.79998e-05
  7  0.000477532
  8  1.97752
  9  5.1977e-05
  10  0.670736
  11  0.872801
  12  1.74431
  13  1.17195
  14  5.75583e-05
  15  1.20669
  16  0.185679
  17  4.18625
  18  2.16216e-06
  19  3.36592
  20  1.18831
  21  3.19595e-05
  22  5.04399e-05
  23  2.44534e-06
  24  31.306
  25  2.40523e-05
  26  0.000528895
  27  4.35292
  28  30.9824
  29  14.5484
  30  0.000427653
  31  3.51588
  32  4.3992
  33  0.125679
  34  0.0892961
Done.

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

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  1.000e-04  2.162e-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:  9.814e-01  8.930e-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.175e+00  1.257e-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.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/186198/likelihoodResults_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.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) = 21050.8921946
delta logL = 0.413534153555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21050.8715966
delta logL = 0.434132166116

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .31987E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    4.5075       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1403       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99680       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=   21050.87     FROM MIGRAD    STATUS=FAILED        96 CALLS      309 TOTAL
                     EDM=   .23E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31626E-01    1.4214        .25531E-03   -.16548E-01
   2  alpha         4.5143        2.8896        .41187        .22046E-02
   3  Normalizat    1.1400        .49013E-01    .28713E-03   -.88916E-03
   4  Prefactor     .99695        .37808E-01    .23385E-03   -.58868E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   21050.87     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      394 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31626E-01    1.4214        .24439E-04   -.16548E-01
   2  alpha         4.5143        2.8896        .54619E-02    .22046E-02
   3  Normalizat    1.1400        .49013E-01    .72922E-04   -.88916E-03
   4  Prefactor     .99695        .37808E-01    .31356E-04   -.58868E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   21050.87     FROM MIGRAD    STATUS=FAILED        68 CALLS      462 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31624E-01    1.8884        .40849E-06   -.16094E-01
   2  alpha         4.5143        2.8682        .74740E-01   -.43739E-04
   3  Normalizat    1.1400        .99657E-01    .11485E-04   -.76417E-03
   4  Prefactor     .99695        .76289E-01    .93539E-05   -.50950E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.031624
  alpha      = 4.51433
  Normalizat = 1.13998
  Prefactor  = 0.996953
 **********
 **   18 **HESSE 
 **********

 FCN=   21050.87     FROM HESSE     STATUS=OK            25 CALLS      487 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31624E-01    .10649        .37366E-06   -1.5672    
   2  alpha         4.5143        4.1204        .29896E-02    .93691    
   3  Normalizat    1.1400        .14048        .22970E-05   -.88478    
   4  Prefactor     .99695        .10603        .18708E-05   -.92831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11384e-09
Minuit parameter uncertainties:
  1  0.10649
  2  2.1465
  3  0.140527
  4  0.106054
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/186198': 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) = 21050.8715872
delta logL = 0.434141583424

Extracting fit parameters...

4FGL J1709.7+4318
   Spectrum: LogParabola
333         norm:  3.162e-02  1.065e-01  1.000e-04  1.000e+04 ( 1.000e-11)
334        alpha:  4.514e+00  2.147e+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:  9.970e-01  1.061e-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.140e+00  1.405e-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/186198/cmap_HighResolution_639360001_639964801_4FGL_J1709.7+4318_weekly_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-05', job_status='DONE', photon_flux_upper_limit='3.13e-08', time_completed='2021-07-26 08:25:29.916997', job_id='186198', GAL2='1.00', fit_tolerance='1e-08', EG2='1.14', EG='1.17', time_epoch_completed='1627313129.92', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.34e-01', ts2='0.91', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='662' AND source_name='4FGL J1709.7+4318' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Mon Jul 26 08:25:29 PDT 2021

