aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 10 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 = 73886
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1706.9+4543_monthly_bin167
RA = 256.743, Dec = 45.7248
tmin = 669859201, tmax = 672451201
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='901076', job_status='RUN', time_executed='2022-04-24 02:31:28.376627', time_epoch_executed='1650792688.38' WHERE source_name='4FGL J1706.9+4543' and cadence='monthly' and bin_id='167'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/901076

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/901076/ft1_4FGL_J1706.9+4543_monthly_bin167.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/901076/ft1_4FGL_J1706.9+4543_monthly_bin167.fits outfile=/scratch/kocevski/901076/ft1_filteredMKT_4FGL_J1706.9+4543_monthly_bin167.fits ra=256.743 dec=45.7248 rad=12.0 tmin=669859201.0 tmax=672451201.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 41.71
user 37.62
sys 0.73

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.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/901076/ft1_filteredMKT_4FGL_J1706.9+4543_monthly_bin167.fits evtable="EVENTS" outfile="/scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.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.85
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 8221

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits" evtable="EVENTS" scfile=/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits sctable="SC_DATA" outfile=/scratch/kocevski/901076/ltcube_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.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/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits
.....................!
real 130.72
user 130.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits sctable="SC_DATA" expcube=/scratch/kocevski/901076/ltcube_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.fits outfile=/scratch/kocevski/901076/expmap_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.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/901076/ltcube_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.fits
.....................!
real 192.28
user 187.17
sys 4.74

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 J1706.9+4543 @ 256.743 45.7248

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits scfile=/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits outfile=/scratch/kocevski/901076/cmap_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.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=256.743 yref=45.7248 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.78
user 0.60
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits scfile=/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits outfile=/scratch/kocevski/901076/cmap_HighResolution_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.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=256.743 yref=45.7248 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.80
user 0.62
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits evtable="EVENTS" scfile=/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/901076/Model_4FGL_J1706.9+4543_monthly_bin167.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/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits.....................!
real 566.16
user 563.88
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits', '/scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits', expMap='/scratch/kocevski/901076/expmap_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.fits', expCube='/scratch/kocevski/901076/ltcube_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/901076/Model_4FGL_J1706.9+4543_monthly_bin167.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1706.9+4543'

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  1.137e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        Index:  2.819e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/901076/ft1_filtered_4FGL_J1706.9+4543_monthly_bin167.fits
Spacecraft file(s): /scratch/kocevski/901076/ft2_4FGL_J1706.9+4543_monthly_bin167.fits
Exposure map: /scratch/kocevski/901076/expmap_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.fits
Exposure cube: /scratch/kocevski/901076/ltcube_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/901076/Model_4FGL_J1706.9+4543_monthly_bin167.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 86433.2109242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2366       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19997E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.578       1.0000         .10000E-03   10000.    
     7 'norm      '    .28330       1.0000         .10000E-03   10000.    
     8 'norm      '    2.8783       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0246       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1237       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2088       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.893       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0677       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .42608E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7149       1.0000         .10000E-03   10000.    
    17 'norm      '    3.5306       1.0000         .10000E-03   10000.    
    18 'norm      '    .25146       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .39589E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    14.372       1.0000         .10000E-03   10000.    
    22 'norm      '    4.7367       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .90834       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5290       1.0000         .10000E-03   10000.    
    25 'norm      '    .37508       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.5599       1.0000         .10000E-03   10000.    
    27 'norm      '    1.4591       1.0000         .10000E-03   10000.    
    28 'Prefactor '    17.264       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.4419       1.0000         .10000E-03   10000.    
    30 'Prefactor '    16.155       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.8125       1.0000         .10000E-03   10000.    
    32 'Prefactor '    6.3669       1.0000         .10000E-03   10000.    
    33 'norm      '    1.7139       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .96701       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0433       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   86432.15     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     3637 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2367        1.0238        .35256E-07   -.11929E-02
   2  Prefactor     1.9330        1.2745        .48499E-06    .42201E-03
   3  Prefactor     .10000E-03    106.46        .29949E-05** at limit **
   4  Prefactor     .10000E-03    1.0328        .31212E-07** at limit **
   5  Prefactor     .10000E-03    .30497       -.27021E-06** at limit **
   6  norm          20.578        5.5875       -.37320E-06    .58762E-03
   7  norm          .28330        .44759E-01    .86438E-08    .72288E-03
   8  norm          2.8783        2.0955        .21098E-06    .67775E-03
   9  Prefactor     .10000E-03    2.1139       -.90910E-07** at limit **
  10  Prefactor     1.0248        .95506        .28470E-06    .22671E-03
  11  norm          6.1238        1.0051       -.16886E-07    .26094E-03
  12  Prefactor     1.2089        .65267       -.88808E-07   -.40839E-03
  13  Prefactor     14.893        .87174       -.17724E-07   -.63886E-03
  14  Prefactor     3.0677        .92812        .45917E-08    .28265E-03
  15  Prefactor     .10000E-03    14.272        .37385E-05** at limit **
  16  Prefactor     3.7149        1.4506       -.19869E-06   -.38608E-02
  17  norm          3.5306        .51604       -.13211E-07   -.15836E-03
  18  norm          .25149        .17914       -.46615E-07   -.26349E-03
  19  Prefactor     .10000E-03    27.435        .35535E-05** at limit **
  20  norm          .39638E-01    .14910       -.51151E-07    .29902E-04
  21  norm          14.372        2.4363        .31647E-06   -.42050E-03
  22  norm          4.7367        .62325       -.21398E-07   -.23123E-03
  23  Prefactor     .90788        .57887       -.13654E-07   -.35685E-05
  24  Prefactor     3.5293        1.3921       -.26679E-06    .37868E-02
  25  norm          .37501        .76188       -.10086E-06   -.21162E-04
  26  Prefactor     4.5586        1.0483        .81253E-07   -.95998E-03
  27  norm          1.4604        1.0646       -.23688E-06   -.11807E-03
  28  Prefactor     17.263        1.0141        .13966E-07   -.75964E-03
  29  Prefactor     3.4419        1.2833        .33159E-07    .26207E-04
  30  Prefactor     16.155        1.0341        .33098E-07   -.18170E-02
  31  Prefactor     4.8115        1.0479        .53368E-07   -.78830E-03
  32  Prefactor     6.3668        2.4069       -.26098E-06    .10730E-02
  33  norm          1.7140        1.7318       -.23981E-06   -.27589E-03
  34  Normalizat    .96699        .70565E-01    .63821E-07    .19653E-03
  35  Prefactor     1.0433        .54629E-01    .42432E-06    .33048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.23673
  Prefactor  = 1.93302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.5781
  norm       = 0.2833
  norm       = 2.8783
  Prefactor  = 0.0001
  Prefactor  = 1.02477
  norm       = 6.12379
  Prefactor  = 1.20887
  Prefactor  = 14.8931
  Prefactor  = 3.06773
  Prefactor  = 0.000100001
  Prefactor  = 3.71486
  norm       = 3.5306
  norm       = 0.251494
  Prefactor  = 0.0001
  norm       = 0.0396379
  norm       = 14.3717
  norm       = 4.73666
  Prefactor  = 0.907882
  Prefactor  = 3.5293
  norm       = 0.375012
  Prefactor  = 4.55864
  norm       = 1.46041
  Prefactor  = 17.2632
  Prefactor  = 3.44187
  Prefactor  = 16.1547
  Prefactor  = 4.81148
  Prefactor  = 6.36681
  norm       = 1.71396
  Normalizat = 0.966994
  Prefactor  = 1.04331
 **********
 **   18 **HESSE 
 **********

 FCN=   86432.15     FROM HESSE     STATUS=OK           904 CALLS     4541 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2367        9.0236        .37277E-02   -1.5170    
   2  Prefactor     1.9330        1.3773        .74695E-02   -1.5430    
   3  Prefactor     .10000E-03    1.5835        .11668       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .31363        .57522E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .15455        .41214E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.578        5.6799        .22074E-02   -1.4800    
   7  norm          .28330        .45801E-01    .52438E-02   -1.5602    
   8  norm          2.8783        2.1109        .59892E-02   -1.5369    
   9  Prefactor     .10000E-03    2.0828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.0248        .98701        .12662E-01   -1.5506    
  11  norm          6.1238        8.1049        .40559E-02   -1.5213    
  12  Prefactor     1.2089        .73761        .10294E-01   -1.5488    
  13  Prefactor     14.893        .96335        .25946E-02   -1.4936    
  14  Prefactor     3.0677        .95240        .57900E-02   -1.5358    
  15  Prefactor     .10000E-03    .10774        .53307E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.7149        2.2047        .52379E-02   -1.5322    
  17  norm          3.5306        .51600        .53784E-02   -1.5332    
  18  norm          .25149        .20389        .24311E-01   -1.5608    
  19  Prefactor     .10000E-03    .46199        .67297E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .39638E-01    .85714E-01    .19229E-01   -1.5668    
  21  norm          14.372        2.7046        .26413E-02   -1.4950    
  22  norm          4.7367        .63137        .46220E-02   -1.5273    
  23  Prefactor     .90788        .79852        .37497E-01   -1.5517    
  24  Prefactor     3.5293        4.3140        .53796E-02   -1.5332    
  25  norm          .37501        .79879        .10750E-01   -1.5586    
  26  Prefactor     4.5586        10.296        .47128E-02   -1.5281    
  27  norm          1.4604        1.0885        .89068E-02   -1.5466    
  28  Prefactor     17.263        10.066        .24099E-02   -1.4877    
  29  Prefactor     3.4419        1.3173        .54502E-02   -1.5337    
  30  Prefactor     16.155        11.023        .24912E-02   -1.4904    
  31  Prefactor     4.8115        9.0924        .45847E-02   -1.5269    
  32  Prefactor     6.3668        2.5031        .39768E-02   -1.5203    
  33  norm          1.7140        1.7576        .80257E-02   -1.5446    
  34  Normalizat    .96699        .62438E-01    .69732E-01   -.94145    
  35  Prefactor     1.0433        .46592E-01    .40319E-01   -.91299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.83472e-06
Minuit parameter uncertainties:
  1  9.02529
  2  1.37729
  3  4.54056e-06
  4  2.90441e-08
  5  7.9865e-07
  6  5.68009
  7  0.0458008
  8  2.111
  9  2.62961e-06
  10  0.98703
  11  8.10633
  12  0.737618
  13  0.963349
  14  0.952408
  15  1.50261e-05
  16  2.20477
  17  0.515998
  18  0.203892
  19  1.15812e-05
  20  0.0857143
  21  2.7046
  22  0.631369
  23  0.798532
  24  4.31433
  25  0.798813
  26  10.2996
  27  1.08856
  28  10.067
  29  1.31734
  30  11.0243
  31  9.09504
  32  2.50312
  33  1.75761
  34  0.0624423
  35  0.046594
Done.

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

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  1.000e-04  1.158e-05  1.000e-04  1.000e+04 ( 1.000e-12)
351        Index:  2.819e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.043e+00  4.659e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  9.670e-01  6.244e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 256.743 45.725
Photon Flux Upper Limit: 2.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/901076/likelihoodResults_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.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) = 86432.1513892
delta logL = -0.000187437763088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 86432.1094322
delta logL = 0.0417695384967

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   86432.11     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      291 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .24415        .61274        .62427E-01    .63212E-02
   2  Index         3.6340        .80137        .50000        .99647E-04
   3  Normalizat    .96200        .26865E-02    .69891E-01    .21642E-03
   4  Prefactor     1.0454        .21497E-02    .40189E-01    .70057E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.244148
  Index      = 3.63401
  Normalizat = 0.962004
  Prefactor  = 1.04535
 **********
 **   18 **HESSE 
 **********

 FCN=   86432.11     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      326 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24415        132.43        .18782E-02   -1.5609    
   2  Index         3.6340        7.3430        .25346E-01   -.27672    
   3  Normalizat    .96200        .48181E-01    .30921E-03   -.94314    
   4  Prefactor     1.0454        .31690E-01    .23721E-03   -.91233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38063e-05
Minuit parameter uncertainties:
  1  11.3955
  2  25.3971
  3  0.0481831
  4  0.0316905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/901076': 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) = 86432.1094321
delta logL = 0.0417696790682

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  2.441e-01  1.140e+01  1.000e-04  1.000e+04 ( 1.000e-12)
351        Index:  3.634e+00  2.540e+01  0.000e+00  1.000e+01 (-1.000e+00)
352        Scale:  5.400e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.045e+00  3.169e-02  0.000e+00  1.000e+01 ( 1.000e+00)
687        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
688        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
685   Normalization:  9.620e-01  4.818e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 256.743 45.725

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/901076/cmap_HighResolution_669859201_672451201_4FGL_J1706.9+4543_monthly_bin167.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-03', job_status='DONE', photon_flux_upper_limit='2.41e-08', time_completed='2022-04-24 05:36:18.008235', job_id='901076', GAL2='1.05', fit_tolerance='1e-08', EG2='0.96', EG='0.97', time_epoch_completed='1650803778.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='4.18e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='167' AND source_name='4FGL J1706.9+4543' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Apr 24 05:36:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 901076: <4FGL_J1706.9+4543_monthly_bin167> in cluster <slac> Done

Job <4FGL_J1706.9+4543_monthly_bin167> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr 24 02:05:35 2022
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr 24 02:31:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr 24 02:31:10 2022
Terminated at Sun Apr 24 05:36:19 2022
Results reported at Sun Apr 24 05:36:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.9+4543_monthly_bin167 256.743 45.7248 669859201 672451201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1706.9+4543 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   11044.00 sec.
    Max Memory :                                 689 MB
    Average Memory :                             438.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11108 sec.
    Turnaround time :                            12644 sec.

The output (if any) is above this job summary.

