Sender: LSF System <lsf@bullet0082>
Subject: Job 534068: <4FGL_J1738.0+8717_weekly_bin586> in cluster <slac> Done

Job <4FGL_J1738.0+8717_weekly_bin586> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Jul 27 05:00:38 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 27 05:01:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 27 05:01:05 2021
Terminated at Tue Jul 27 05:53:09 2021
Results reported at Tue Jul 27 05:53:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.0+8717_weekly_bin586 264.501 87.2851 593395201 594000001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.0+8717 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2442.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             326.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   3126 sec.
    Turnaround time :                            3151 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 188 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 = 17307
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1738.0+8717_weekly_bin586
RA = 264.501, Dec = 87.2851
tmin = 593395201, tmax = 594000001
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='534068', job_status='RUN', time_executed='2021-07-27 05:04:34.412046', time_epoch_executed='1627387474.41' WHERE source_name='4FGL J1738.0+8717' and cadence='weekly' and bin_id='586'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534068

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

Retrieving the FT1 file...

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

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

Retrieving 109 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534068/ft1_4FGL_J1738.0+8717_weekly_bin586.fits


Retrieving the FT1 file...

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

Retrieving 109 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534068/ft1_4FGL_J1738.0+8717_weekly_bin586.fits outfile=/scratch/kocevski/534068/ft1_filteredMKT_4FGL_J1738.0+8717_weekly_bin586.fits ra=264.501 dec=87.2851 rad=12.0 tmin=593395201.0 tmax=594000001.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.18
user 7.80
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.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/534068/ft1_filteredMKT_4FGL_J1738.0+8717_weekly_bin586.fits evtable="EVENTS" outfile="/scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.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.58
user 0.40
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits" evtable="EVENTS" scfile=/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits sctable="SC_DATA" outfile=/scratch/kocevski/534068/ltcube_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.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/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits
.....................!
real 31.01
user 30.58
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits sctable="SC_DATA" expcube=/scratch/kocevski/534068/ltcube_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.fits outfile=/scratch/kocevski/534068/expmap_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.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/534068/ltcube_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.fits
.....................!
real 193.86
user 187.86
sys 5.54

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

Setting source of interest to:
4FGL J1738.0+8717 @ 264.501 87.2851

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits scfile=/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits outfile=/scratch/kocevski/534068/cmap_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.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.501 yref=87.2851 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 1.19
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits scfile=/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits outfile=/scratch/kocevski/534068/cmap_HighResolution_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.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.501 yref=87.2851 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.42
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits evtable="EVENTS" scfile=/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534068/Model_4FGL_J1738.0+8717_weekly_bin586.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/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits.....................!
real 362.86
user 357.88
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits', '/scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits', expMap='/scratch/kocevski/534068/expmap_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.fits', expCube='/scratch/kocevski/534068/ltcube_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/534068/Model_4FGL_J1738.0+8717_weekly_bin586.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.0+8717'

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  5.760e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/534068/ft1_filtered_4FGL_J1738.0+8717_weekly_bin586.fits
Spacecraft file(s): /scratch/kocevski/534068/ft2_4FGL_J1738.0+8717_weekly_bin586.fits
Exposure map: /scratch/kocevski/534068/expmap_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.fits
Exposure cube: /scratch/kocevski/534068/ltcube_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/534068/Model_4FGL_J1738.0+8717_weekly_bin586.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) = 28989.8471478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2231       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.2142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .48497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .22681E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.787       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0701       1.0000         .10000E-03   10000.    
    15 'norm      '    7.2987       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11771E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    98.016       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.7118       1.0000         .10000E-03   10000.    
    20 'norm      '    .35741       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2138       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .89043       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   28989.79     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2228 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3661        .50811E-06** at limit **
   2  Prefactor     .10000E-03    2.3351       -.17708E-06** at limit **
   3  Prefactor     8.2232        6.0851        .13321E-06   -.77695E-03
   4  Prefactor     6.2444        4.2322        .16288E-06   -.86457E-03
   5  Prefactor     .10000E-03    3.3905       -.11395E-06** at limit **
   6  norm          7.2129        2.6603        .75589E-08   -.15685E-04
   7  Prefactor     .10000E-03    2.0959       -.16671E-06** at limit **
   8  Prefactor     .10000E-03    2.2081       -.93648E-07** at limit **
   9  norm          .48494        .78619       -.11667E-07    .23000E-04
  10  Prefactor     .10000E-03    5.0354        .54239E-07** at limit **
  11  Prefactor     .10000E-03    11.419       -.43077E-05** at limit **
  12  Prefactor     .10000E-03    4.8641       -.55477E-07** at limit **
  13  Prefactor     11.786        13.881        .25144E-06    .56716E-05
  14  Prefactor     8.0676        18.583       -.82685E-06   -.61389E-05
  15  norm          7.2985        6.8133       -.87328E-07   -.55552E-05
  16  Prefactor     .10000E-03    .83681       -.30371E-07** at limit **
  17  Prefactor     98.022        20.947        .12588E-05    .10821E-03
  18  Prefactor     .10000E-03    19.579        .25577E-05** at limit **
  19  norm          1.7116        .45172       -.45198E-07   -.25844E-03
  20  norm          .35765        .89723        .10258E-06   -.15945E-02
  21  Prefactor     .10000E-03    10.703        .31301E-05** at limit **
  22  Normalizat    1.2140        .99866E-01   -.33303E-06    .15830E-03
  23  Prefactor     .89038        .43306E-01    .10996E-06    .11704E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.22323
  Prefactor  = 6.24439
  Prefactor  = 0.0001
  norm       = 7.2129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.484938
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 11.7855
  Prefactor  = 8.06764
  norm       = 7.29845
  Prefactor  = 0.0001
  Prefactor  = 98.0217
  Prefactor  = 0.0001
  norm       = 1.71159
  norm       = 0.35765
  Prefactor  = 0.0001
  Normalizat = 1.21398
  Prefactor  = 0.890376
 **********
 **   18 **HESSE 
 **********

 FCN=   28989.79     FROM HESSE     STATUS=OK           378 CALLS     2606 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.4755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.4217        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2232        6.6959        .69904E-03   -1.5134    
   4  Prefactor     6.2444        4.5553        .80319E-03   -1.5208    
   5  Prefactor     .10000E-03    3.4392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.2129        2.6645        .14934E-03   -1.5171    
   7  Prefactor     .10000E-03    2.1098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.2380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .48494        .78563        .44837E-04   -1.5569    
  10  Prefactor     .10000E-03    5.0371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.613        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1355        .13083       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.786        13.885        .11668E-03   -1.5021    
  14  Prefactor     8.0676        18.604        .14114E-03   -1.5140    
  15  norm          7.2985        6.8135        .14847E-03   -1.5168    
  16  Prefactor     .10000E-03    .86067        .30301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     98.022        20.974        .40603E-04   -1.3725    
  18  Prefactor     .10000E-03    19.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.7116        .45143        .55352E-04   -1.5446    
  20  norm          .35765        1.3286        .36550E-03   -1.5588    
  21  Prefactor     .10000E-03    10.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2140        .11242        .32176E-03   -.86172    
  23  Prefactor     .89038        .48924E-01    .16639E-03   -.96478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95928e-09
Minuit parameter uncertainties:
  1  2.8236e-06
  2  1.44818e-08
  3  6.69646
  4  4.55555
  5  1.09707e-06
  6  2.66456
  7  5.22006e-07
  8  1.95516e-06
  9  0.78565
  10  9.71676e-07
  11  2.09008e-05
  12  0.000264619
  13  13.8885
  14  18.6177
  15  6.81418
  16  1.10366e-05
  17  20.9759
  18  3.49281e-05
  19  0.451434
  20  1.32871
  21  1.62045e-05
  22  0.112445
  23  0.0489267
Done.

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

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  1.000e-04  3.493e-05  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.202e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.904e-01  4.893e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.214e+00  1.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.501 87.285
Photon Flux Upper Limit: 2.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/534068/likelihoodResults_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.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) = 28989.7854714
delta logL = -0.000241903395363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28989.7852345
delta logL = -5.07615914103e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11345E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7511       1.0000          .0000       10.000    
     3 'Normalizat'    1.2140       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89037       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   28989.79     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      244 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.784        .90712E-02** at limit **
   2  Index         2.7027        6.1644        .50000        .54181E-04
   3  Normalizat    1.2140        .41783E-02    .72713E-01    .13360E-03
   4  Prefactor     .89038        .18922E-02    .44882E-01    .47096E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.70275
  Normalizat = 1.21398
  Prefactor  = 0.890376
 **********
 **   18 **HESSE 
 **********

 FCN=   28989.79     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      277 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1369.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7027        6.1487        .50000       -.47738    
   3  Normalizat    1.2140        .51346E-01    .32176E-03   -.86172    
   4  Prefactor     .89038        .23250E-01    .16639E-03   -.96478    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30108e-07
Minuit parameter uncertainties:
  1  0.00392251
  2  58.8627
  3  0.0513479
  4  0.0232498
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534068': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 28989.785233
delta logL = -3.5547564039e-06

Extracting fit parameters...

4FGL J1738.0+8717
   Spectrum: PowerLaw
500    Prefactor:  1.000e-04  3.923e-03  1.000e-04  1.000e+04 ( 1.000e-14)
501        Index:  2.703e+00  5.886e+01  0.000e+00  1.000e+01 (-1.000e+00)
502        Scale:  1.993e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  8.904e-01  2.325e-02  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.214e+00  5.135e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.501 87.285

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/534068/cmap_HighResolution_593395201_594000001_4FGL_J1738.0+8717_weekly_bin586.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.26e-03', job_status='DONE', photon_flux_upper_limit='2.97e-08', time_completed='2021-07-27 05:53:08.583376', job_id='534068', GAL2='0.89', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1627390388.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-3.55e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.20' WHERE bin_id='586' AND source_name='4FGL J1738.0+8717' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 27 05:53:08 PDT 2021

