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 22 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 = 7530
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1706.9+4543_daily_bin1674
RA = 256.743, Dec = 45.7248
tmin = 673228801, tmax = 673488001
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='670993', job_status='RUN', time_executed='2022-05-06 02:57:11.159077', time_epoch_executed='1651831031.16' WHERE source_name='4FGL J1706.9+4543' and cadence='daily' and bin_id='1674'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/670993

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/670993/ft1_4FGL_J1706.9+4543_daily_bin1674.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/670993/ft1_4FGL_J1706.9+4543_daily_bin1674.fits outfile=/scratch/kocevski/670993/ft1_filteredMKT_4FGL_J1706.9+4543_daily_bin1674.fits ra=256.743 dec=45.7248 rad=12.0 tmin=673228801.0 tmax=673488001.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 2.80
user 2.51
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.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/670993/ft1_filteredMKT_4FGL_J1706.9+4543_daily_bin1674.fits evtable="EVENTS" outfile="/scratch/kocevski/670993/ft1_filtered_4FGL_J1706.9+4543_daily_bin1674.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.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 1379

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/670993/ft1_filtered_4FGL_J1706.9+4543_daily_bin1674.fits" evtable="EVENTS" scfile=/scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits sctable="SC_DATA" outfile=/scratch/kocevski/670993/ltcube_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.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/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits
.....................!
real 13.49
user 13.11
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/670993/ft1_filtered_4FGL_J1706.9+4543_daily_bin1674.fits evtable="EVENTS" scfile=/scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits sctable="SC_DATA" expcube=/scratch/kocevski/670993/ltcube_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.fits outfile=/scratch/kocevski/670993/expmap_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.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/670993/ltcube_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.fits
.....................!
real 190.71
user 184.38
sys 5.16

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/670993/ft1_filtered_4FGL_J1706.9+4543_daily_bin1674.fits scfile=/scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits outfile=/scratch/kocevski/670993/cmap_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/670993/ft1_filtered_4FGL_J1706.9+4543_daily_bin1674.fits scfile=/scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits outfile=/scratch/kocevski/670993/cmap_HighResolution_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/670993/ft1_filtered_4FGL_J1706.9+4543_daily_bin1674.fits', '/scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits', expMap='/scratch/kocevski/670993/expmap_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.fits', expCube='/scratch/kocevski/670993/ltcube_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/670993/Model_4FGL_J1706.9+4543_daily_bin1674.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/670993/ft1_filtered_4FGL_J1706.9+4543_daily_bin1674.fits
Spacecraft file(s): /scratch/kocevski/670993/ft2_4FGL_J1706.9+4543_daily_bin1674.fits
Exposure map: /scratch/kocevski/670993/expmap_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.fits
Exposure cube: /scratch/kocevski/670993/ltcube_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/670993/Model_4FGL_J1706.9+4543_daily_bin1674.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) = 14668.8413789

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.888       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6030       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11885E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.256       1.0000         .10000E-03   10000.    
     7 'norm      '    .50480E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5680       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8117       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14408E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.6970       1.0000         .10000E-03   10000.    
    18 'norm      '    .85269       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9686       1.0000         .10000E-03   10000.    
    20 'norm      '    .12969       1.0000         .10000E-03   10000.    
    21 'norm      '    6.2550       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6871       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .44819E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.002       1.0000         .10000E-03   10000.    
    25 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.403       1.0000         .10000E-03   10000.    
    27 'norm      '    2.6630       1.0000         .10000E-03   10000.    
    28 'Prefactor '    78.625       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3093       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .36311E-01   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    10.547       1.0000         .10000E-03   10000.    
    34 'Normalizat'    .99090       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.0381       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=   14668.83     FROM MIGRAD    STATUS=CONVERGED    218 CALLS     4438 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.864        26.772        .25770E-07    .87406E-03
   2  Prefactor     .10000E-03    2.1909        .16710E-06** at limit **
   3  Prefactor     7.6217        13.995        .55161E-06   -.29927E-04
   4  Prefactor     .10000E-03    3.3795        .18385E-06** at limit **
   5  Prefactor     .10000E-03    .47724       -.13204E-06** at limit **
   6  norm          17.263        10.532        .74966E-08   -.43613E-04
   7  norm          .50479E-01    .83307E-01   -.21397E-06    .22367E-03
   8  norm          .10000E-03    3.1387       -.11061E-05** at limit **
   9  Prefactor     .10000E-03    23.980       -.24517E-05** at limit **
  10  Prefactor     .10000E-03    .61801        .64382E-07** at limit **
  11  norm          .10000E-03    8.7960        .12815E-05** at limit **
  12  Prefactor     2.5687        1.4952        .14361E-06    .27811E-04
  13  Prefactor     2.8127        1.4808       -.14101E-06    .59103E-04
  14  Prefactor     .10000E-03    8.8309        .39999E-07** at limit **
  15  Prefactor     .10000E-03    2.8204        .30869E-06** at limit **
  16  Prefactor     .10000E-03    1.3681       -.59096E-07** at limit **
  17  norm          3.6977        1.2107        .17495E-07    .46299E-06
  18  norm          .85339        .51584       -.79993E-07    .30785E-04
  19  Prefactor     2.9733        3.7783       -.27274E-06    .13982E-04
  20  norm          .12999        .35954        .62898E-07   -.55411E-05
  21  norm          6.2601        5.0097       -.32559E-06    .36015E-04
  22  norm          4.6845        1.3769        .63628E-07    .99680E-06
  23  Prefactor     .45773E-01    .39252        .18891E-06   -.92306E-04
  24  Prefactor     20.026        13.618       -.25506E-07   -.18077E-02
  25  norm          .10000E-03    1.7091       -.87626E-07** at limit **
  26  Prefactor     15.462        2.3219        .43622E-08   -.52602E-03
  27  norm          2.6468        3.6236        .33278E-06    .76643E-05
  28  Prefactor     77.484        39.187       -.53995E-07    .11427E-03
  29  Prefactor     2.3109        3.3747       -.84497E-06    .30777E-04
  30  Prefactor     .10000E-03    11.657        .42725E-05** at limit **
  31  Prefactor     2.3228        103.54       -.75221E-05    .17166E-04
  32  Prefactor     .10000E-03    4.9215        .92556E-06** at limit **
  33  norm          10.530        6.4275        .49566E-06    .66117E-04
  34  Normalizat    .99042        .16762       -.24160E-06    .14950E-04
  35  Prefactor     1.0379        .12880       -.20416E-06    .22769E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.8636
  Prefactor  = 0.0001
  Prefactor  = 7.62174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.2632
  norm       = 0.0504787
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56866
  Prefactor  = 2.81272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.69769
  norm       = 0.85339
  Prefactor  = 2.97327
  norm       = 0.129994
  norm       = 6.26014
  norm       = 4.68449
  Prefactor  = 0.0457726
  Prefactor  = 20.0262
  norm       = 0.0001
  Prefactor  = 15.4615
  norm       = 2.64676
  Prefactor  = 77.4841
  Prefactor  = 2.31093
  Prefactor  = 0.0001
  Prefactor  = 2.32276
  Prefactor  = 0.0001
  norm       = 10.53
  Normalizat = 0.990418
  Prefactor  = 1.03786
 **********
 **   18 **HESSE 
 **********

 FCN=   14668.83     FROM HESSE     STATUS=OK           874 CALLS     5312 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.864        30.457        .23039E-02   -1.4839    
   2  Prefactor     .10000E-03    2.1647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.6217        14.041        .36360E-02   -1.5156    
   4  Prefactor     .10000E-03    1.5341        .50966E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .46905        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.263        10.593        .24104E-02   -1.4877    
   7  norm          .50479E-01    .81872E-01    .92724E-02   -1.5663    
   8  norm          .10000E-03    3.1319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.197        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .61208        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    8.7893        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5687        1.4310        .63681E-02   -1.5387    
  13  Prefactor     2.8127        1.4053        .60646E-02   -1.5373    
  14  Prefactor     .10000E-03    .55614        .50121E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .61943        .50486E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.3662        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.6977        1.2110        .52511E-02   -1.5323    
  18  norm          .85339        .54335        .12635E-01   -1.5523    
  19  Prefactor     2.9733        3.8115        .58916E-02   -1.5363    
  20  norm          .12999        .36099        .96518E-03   -1.5636    
  21  norm          6.2601        5.0604        .40126E-02   -1.5208    
  22  norm          4.6845        1.3811        .46470E-02   -1.5275    
  23  Prefactor     .45773E-01    1.0427        .39457E-01   -1.5665    
  24  Prefactor     20.026        28.086        .22389E-02   -1.4813    
  25  norm          .10000E-03    1.6956        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.462        44.166        .25513E-02   -1.4921    
  27  norm          2.6468        3.7344        .62442E-02   -1.5383    
  28  Prefactor     77.484        40.550        .11322E-02   -1.3945    
  29  Prefactor     2.3109        3.4358        .67500E-02   -1.5404    
  30  Prefactor     .10000E-03    11.659        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     2.3228        110.13        .92031E-02   -1.5403    
  32  Prefactor     .10000E-03    4.7673        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          10.530        6.4910        .30843E-02   -1.5059    
  34  Normalizat    .99042        .14691        .46053E-01   -.93352    
  35  Prefactor     1.0379        .11054        .40663E-01   -.91478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75158e-08
Minuit parameter uncertainties:
  1  30.4825
  2  1.26165e-07
  3  14.0466
  4  1.48885e-07
  5  1.71904e-07
  6  10.594
  7  0.0818727
  8  2.52318e-06
  9  4.38282e-06
  10  1.09349e-07
  11  8.8451e-06
  12  1.43101
  13  1.40527
  14  8.2995e-08
  15  1.15636e-07
  16  1.22537e-07
  17  1.211
  18  0.543352
  19  3.81179
  20  0.360994
  21  5.06072
  22  1.38109
  23  0.436458
  24  28.1047
  25  1.9365e-07
  26  44.2597
  27  3.73471
  28  40.5645
  29  3.43613
  30  2.36422e-05
  31  32.0497
  32  4.0637e-06
  33  6.49148
  34  0.146967
  35  0.110561
Done.

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

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  2.973e+00  3.812e+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

GAL_V02
   Spectrum: PowerLaw
686    Prefactor:  1.038e+00  1.106e-01  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.904e-01  1.470e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/670993/likelihoodResults_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.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) = 14668.8193952
delta logL = 0.0141774790609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 14668.8148488
delta logL = 0.0187239331153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3585       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5515       1.0000          .0000       10.000    
     3 'Normalizat'    .99567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0347       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   14668.81     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      257 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3584        4.3966        .22082E-03   -.17679E-03
   2  Index         2.5515        1.2771        .97738E-02   -.46376E-04
   3  Normalizat    .99569        .15892        .28583E-03   -.13969E-03
   4  Prefactor     1.0347        .12721        .22632E-03   -.16989E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35839
  Index      = 2.5515
  Normalizat = 0.99569
  Prefactor  = 1.03467
 **********
 **   18 **HESSE 
 **********

 FCN=   14668.81     FROM HESSE     STATUS=OK            23 CALLS      280 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3584        4.3387        .88330E-05   -1.5341    
   2  Index         2.5515        1.2601        .39095E-03   -.51175    
   3  Normalizat    .99569        .15903        .11433E-04   -.93175    
   4  Prefactor     1.0347        .12729        .90528E-05   -.91583    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75816e-10
Minuit parameter uncertainties:
  1  4.33909
  2  1.27838
  3  0.159103
  4  0.127331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/670993': 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) = 14668.8148488
delta logL = 0.0187239505794

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  3.358e+00  4.339e+00  1.000e-04  1.000e+04 ( 1.000e-12)
351        Index:  2.552e+00  1.278e+00  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.035e+00  1.273e-01  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.957e-01  1.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.84
Ra Dec: 256.743 45.725

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/670993/cmap_HighResolution_673228801_673488001_4FGL_J1706.9+4543_daily_bin1674.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.65e-03', job_status='DONE', photon_flux_upper_limit='7.13e-08', time_completed='2022-05-06 03:33:28.894133', job_id='670993', GAL2='1.03', fit_tolerance='1e-08', EG2='1.00', EG='0.99', time_epoch_completed='1651833208.89', return_code2='0', ts='0.84', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.87e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='1674' AND source_name='4FGL J1706.9+4543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May  6 03:33:28 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 670996: <4FGL_J1706.9+4543_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1706.9+4543_daily_bin1674> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri May  6 00:08:07 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:56:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:56:38 2022
Terminated at Fri May  6 03:33:18 2022
Results reported at Fri May  6 03:33:18 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.9+4543_daily_bin1674 256.743 45.7248 673228801 673488001 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 :                                   2173.00 sec.
    Max Memory :                                 619 MB
    Average Memory :                             327.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2200 sec.
    Turnaround time :                            12311 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 670993: <4FGL_J1706.9+4543_daily_bin1674> in cluster <slac> Done

Job <4FGL_J1706.9+4543_daily_bin1674> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri May  6 00:08:07 2022
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May  6 02:56:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May  6 02:56:37 2022
Terminated at Fri May  6 03:33:29 2022
Results reported at Fri May  6 03:33:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.9+4543_daily_bin1674 256.743 45.7248 673228801 673488001 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 :                                   2158.01 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             337.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2212 sec.
    Turnaround time :                            12322 sec.

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

