Sender: LSF System <lsf@bullet0010>
Subject: Job 555495: <4FGL_J1739.5+4955_weekly_bin437> in cluster <slac> Done

Job <4FGL_J1739.5+4955_weekly_bin437> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Jul 27 06:10:30 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 27 06:18:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 27 06:18:01 2021
Terminated at Tue Jul 27 07:31:01 2021
Results reported at Tue Jul 27 07:31:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1739.5+4955_weekly_bin437 264.886 49.932 503280001 503884801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1739.5+4955 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3082.00 sec.
    Max Memory :                                 801 MB
    Average Memory :                             256.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4380 sec.
    Turnaround time :                            4831 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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 134 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 = 17068
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1739.5+4955_weekly_bin437
RA = 264.886, Dec = 49.932
tmin = 503280001, tmax = 503884801
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='555495', job_status='RUN', time_executed='2021-07-27 06:35:53.251989', time_epoch_executed='1627392953.25' WHERE source_name='4FGL J1739.5+4955' and cadence='weekly' and bin_id='437'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/555495

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/555495/ft1_4FGL_J1739.5+4955_weekly_bin437.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/555495/ft1_4FGL_J1739.5+4955_weekly_bin437.fits outfile=/scratch/kocevski/555495/ft1_filteredMKT_4FGL_J1739.5+4955_weekly_bin437.fits ra=264.886 dec=49.932 rad=12.0 tmin=503280001.0 tmax=503884801.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 14.64
user 13.93
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.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/555495/ft1_filteredMKT_4FGL_J1739.5+4955_weekly_bin437.fits evtable="EVENTS" outfile="/scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.38
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits" evtable="EVENTS" scfile=/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits sctable="SC_DATA" outfile=/scratch/kocevski/555495/ltcube_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.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/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits
.....................!
real 30.40
user 29.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits sctable="SC_DATA" expcube=/scratch/kocevski/555495/ltcube_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.fits outfile=/scratch/kocevski/555495/expmap_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.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/555495/ltcube_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.fits
.....................!
real 192.26
user 186.60
sys 5.10

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 J1739.5+4955 @ 264.886 49.932

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits scfile=/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits outfile=/scratch/kocevski/555495/cmap_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.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=264.886 yref=49.932 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits scfile=/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits outfile=/scratch/kocevski/555495/cmap_HighResolution_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.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=264.886 yref=49.932 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.63
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits evtable="EVENTS" scfile=/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/555495/Model_4FGL_J1739.5+4955_weekly_bin437.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/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits.....................!
real 171.67
user 169.89
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits', '/scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits', expMap='/scratch/kocevski/555495/expmap_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.fits', expCube='/scratch/kocevski/555495/ltcube_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/555495/Model_4FGL_J1739.5+4955_weekly_bin437.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1739.5+4955'

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  3.625e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/555495/ft1_filtered_4FGL_J1739.5+4955_weekly_bin437.fits
Spacecraft file(s): /scratch/kocevski/555495/ft2_4FGL_J1739.5+4955_weekly_bin437.fits
Exposure map: /scratch/kocevski/555495/expmap_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.fits
Exposure cube: /scratch/kocevski/555495/ltcube_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/555495/Model_4FGL_J1739.5+4955_weekly_bin437.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) = 21210.0230196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.355       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.8764       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.7734       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6127       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17921       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.4846       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .19508E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5193       1.0000         .10000E-03   10000.    
    10 'norm      '    .33795       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8467       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.7701       1.0000         .10000E-03   10000.    
    14 'norm      '    1.1629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7361       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11858E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.8233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.294       1.0000         .10000E-03   10000.    
    19 'norm      '    .18080E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.241       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4073       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.294       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.8143       1.0000         .10000E-03   10000.    
    27 'norm      '    25.715       1.0000         .10000E-03   10000.    
    28 'Prefactor '    21.478       1.0000         .10000E-03   10000.    
    29 'norm      '    4.0784       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    14.459       1.0000         .10000E-03   10000.    
    32 'norm      '    8.9555       1.0000         .10000E-03   10000.    
    33 'Prefactor '    2.8841       1.0000         .10000E-03   10000.    
    34 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
    35 'Prefactor '    .99534       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   21210.00     FROM MIGRAD    STATUS=CONVERGED    996 CALLS     4441 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.354        11.622        .61546E-07   -.12422E-04
   2  Prefactor     1.8766        2.3210        .32577E-07   -.72565E-04
   3  Prefactor     2.7728        4.7158        .25398E-06   -.51554E-05
   4  Prefactor     9.6149        3.1494        .45431E-07   -.27929E-03
   5  Prefactor     .18228        1.0728        .23529E-06   -.50454E-03
   6  Prefactor     3.4843        4.5091        .11724E-06   -.14770E-04
   7  Prefactor     .10000E-03    4.3950        .23303E-07** at limit **
   8  norm          .16583E-01    .18836        .60975E-07   -.27733E-03
   9  Prefactor     9.5209        6.3708       -.43945E-06   -.51282E-03
  10  norm          .33803        .47609        .42441E-06    .97124E-03
  11  Prefactor     1.8416        4.7797        .30095E-06    .17498E-03
  12  norm          4.9752        4.7433       -.10816E-06   -.93047E-04
  13  Prefactor     9.7694        6.0119        .81416E-07    .88319E-05
  14  norm          1.1630        1.0463        .36610E-07   -.31793E-03
  15  Prefactor     1.7373        1.8640        .50234E-07    .16647E-03
  16  Prefactor     .10000E-03    67.081       -.16541E-05** at limit **
  17  norm          1.8259        2.4737        .20256E-06   -.11172E-03
  18  Prefactor     12.209        33.149        .48223E-05   -.23558E-04
  19  norm          .10005E-03    2.0821       -.49028E-06** at limit **
  20  Prefactor     10.254        21.887        .35453E-06    .98447E-05
  21  Prefactor     3.4117        3.3719        .16597E-06    .23147E-03
  22  Prefactor     13.290        24.099        .23502E-06    .77392E-05
  23  Prefactor     .10000E-03    20.543       -.64915E-06** at limit **
  24  Prefactor     .10000E-03    28.995        .11952E-05** at limit **
  25  Prefactor     .10000E-03    2.1048        .84610E-07** at limit **
  26  Prefactor     7.8130        11.952        .66797E-07    .38407E-05
  27  norm          25.715        7.0772        .61160E-07   -.36490E-04
  28  Prefactor     21.477        12.221        .21608E-06    .10911E-04
  29  norm          4.0776        4.2757        .11022E-06    .11741E-04
  30  Prefactor     .10000E-03    3.2071       -.12204E-07** at limit **
  31  norm          14.458        6.3666        .31247E-07    .56496E-05
  32  norm          8.9551        5.3661       -.36555E-07    .57422E-05
  33  Prefactor     2.8838        1.9400        .42732E-07    .25990E-04
  34  Normalizat    1.1150        .14777       -.15537E-05   -.32494E-04
  35  Prefactor     .99538        .89796E-01    .51679E-06   -.31318E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.3541
  Prefactor  = 1.87663
  Prefactor  = 2.7728
  Prefactor  = 9.61493
  Prefactor  = 0.182277
  Prefactor  = 3.48433
  Prefactor  = 0.0001
  norm       = 0.0165825
  Prefactor  = 9.52089
  norm       = 0.33803
  Prefactor  = 1.84163
  norm       = 4.97524
  Prefactor  = 9.76937
  norm       = 1.16299
  Prefactor  = 1.7373
  Prefactor  = 0.0001
  norm       = 1.82592
  Prefactor  = 12.2092
  norm       = 0.000100054
  Prefactor  = 10.2542
  Prefactor  = 3.41168
  Prefactor  = 13.2902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.81296
  norm       = 25.7148
  Prefactor  = 21.4766
  norm       = 4.07761
  Prefactor  = 0.0001
  norm       = 14.4576
  norm       = 8.95513
  Prefactor  = 2.88375
  Normalizat = 1.11503
  Prefactor  = 0.995376
 **********
 **   18 **HESSE 
 **********

 FCN=   21210.00     FROM HESSE     STATUS=OK           802 CALLS     5243 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.354        11.623        .91039E-04   -1.4828    
   2  Prefactor     1.8766        2.2997        .23724E-03   -1.5434    
   3  Prefactor     2.7728        4.7233        .24437E-03   -1.5375    
   4  Prefactor     9.6149        3.1806        .64626E-03   -1.5088    
   5  Prefactor     .18228        4.1628        .28459E-02   -1.5623    
   6  Prefactor     3.4843        4.4987        .21661E-03   -1.5335    
   7  Prefactor     .10000E-03    4.4027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .16583E-01    5.4209        .11473E-02   -1.5682    
   9  Prefactor     9.5209        6.4436        .12989E-03   -1.5091    
  10  norm          .33803        .46988        .11606E-02   -1.5592    
  11  Prefactor     1.8416        4.8017        .15343E-02   -1.5437    
  12  norm          4.9752        4.7399        .90147E-03   -1.5262    
  13  Prefactor     9.7694        6.0217        .12820E-03   -1.5083    
  14  norm          1.1630        1.0239        .13175E-03   -1.5492    
  15  Prefactor     1.7373        1.8300        .19722E-03   -1.5444    
  16  Prefactor     .10000E-03    68.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.8259        2.4499        .25409E-03   -1.5438    
  18  Prefactor     12.209        32.753        .11425E-03   -1.5009    
  19  norm          .10005E-03    17.254        .37211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.254        21.771        .12521E-03   -1.5067    
  21  Prefactor     3.4117        3.2727        .21916E-03   -1.5339    
  22  Prefactor     13.290        24.036        .10986E-03   -1.4979    
  23  Prefactor     .10000E-03    20.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.8130        11.943        .14344E-03   -1.5149    
  27  norm          25.715        7.0855        .78997E-04   -1.4693    
  28  Prefactor     21.477        12.232        .86426E-04   -1.4781    
  29  norm          4.0776        4.2679        .19964E-03   -1.5304    
  30  Prefactor     .10000E-03    3.2086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          14.458        6.3675        .10533E-03   -1.4947    
  32  norm          8.9551        5.3650        .13393E-03   -1.5109    
  33  Prefactor     2.8838        1.9335        .15797E-03   -1.5368    
  34  Normalizat    1.1150        .17156        .32409E-03   -.89271    
  35  Prefactor     .99538        .10623        .22948E-03   -.92884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33726e-07
Minuit parameter uncertainties:
  1  11.6239
  2  2.29976
  3  4.72389
  4  3.18064
  5  1.74182
  6  4.49913
  7  2.16414e-06
  8  0.597882
  9  6.44404
  10  0.469885
  11  4.80273
  12  4.74022
  13  6.02209
  14  1.02394
  15  1.83001
  16  0.000124593
  17  2.45005
  18  32.801
  19  0.00193243
  20  21.7882
  21  3.27285
  22  24.0535
  23  1.15055e-05
  24  2.79958e-06
  25  1.1368e-06
  26  11.9464
  27  7.08571
  28  12.233
  29  4.26817
  30  7.04645e-07
  31  6.36782
  32  5.36531
  33  1.93355
  34  0.171646
  35  0.10625
Done.

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

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  1.001e-04  1.932e-03  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  9.954e-01  1.062e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.115e+00  1.716e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.886 49.932
Photon Flux Upper Limit: 4.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/555495/likelihoodResults_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.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) = 21209.9959371
delta logL = -0.000268636038527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 21209.7309723
delta logL = 0.264696182396

Fit tolerance = 1e-08

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

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

 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=   21209.73     FROM MIGRAD    STATUS=FAILED        84 CALLS      428 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76049        67.938        .16510E-03    .13419E-02
   2  alpha         3.6898        3.0848        .46037E-01    .79056E-04
   3  Normalizat    1.0828        .12551        .32835E-03    .47988E-03
   4  Prefactor     1.0062        .86962E-01    .22837E-03    .61655E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   21209.73     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      517 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76049        67.938        .12985E-03    .13419E-02
   2  alpha         3.6898        3.0848        .42051E-02    .79056E-04
   3  Normalizat    1.0828        .12551        .18899E-03    .47988E-03
   4  Prefactor     1.0062        .86962E-01    .35267E-04    .61655E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   21209.73     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      547 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76051        2.1426        .66042E-05    .15548E-02
   2  alpha         3.6898        1.6161        .18415E-02    .45290E-04
   3  Normalizat    1.0828        .15792        .13134E-04    .48265E-03
   4  Prefactor     1.0062        .10372        .45673E-04    .62328E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.760512
  alpha      = 3.68978
  Normalizat = 1.08284
  Prefactor  = 1.00625
 **********
 **   18 **HESSE 
 **********

 FCN=   21209.73     FROM HESSE     STATUS=OK            23 CALLS      570 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76051        2.0809        .13208E-05   -1.5534    
   2  alpha         3.6898        1.5803        .73659E-04    .49600    
   3  Normalizat    1.0828        .15791        .26268E-05   -.90305    
   4  Prefactor     1.0062        .10370        .91347E-05   -.92522    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.87346e-10
Minuit parameter uncertainties:
  1  2.08107
  2  1.76335
  3  0.157983
  4  0.103725
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/555495': 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) = 21209.7309722
delta logL = 0.264696264032

Extracting fit parameters...

4FGL J1739.5+4955
   Spectrum: LogParabola
347         norm:  7.605e-01  2.081e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  3.690e+00  1.763e+00  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  8.485e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  1.006e+00  1.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.083e+00  1.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.886 49.932

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/555495/cmap_HighResolution_503280001_503884801_4FGL_J1739.5+4955_weekly_bin437.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-05', job_status='DONE', photon_flux_upper_limit='4.56e-08', time_completed='2021-07-27 07:31:00.674755', job_id='555495', GAL2='1.01', fit_tolerance='1e-08', EG2='1.08', EG='1.12', time_epoch_completed='1627396260.67', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.65e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.27' WHERE bin_id='437' AND source_name='4FGL J1739.5+4955' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 27 07:31:00 PDT 2021

