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 6 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1706.9+4543_daily_bin1762
RA = 256.743, Dec = 45.7248
tmin = 696038401, tmax = 696297601
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='114860', job_status='RUN', time_executed='2023-01-25 01:16:35.141736', time_epoch_executed='1674638195.14' WHERE source_name='4FGL J1706.9+4543' and cadence='daily' and bin_id='1762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114860

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114860/ft1_4FGL_J1706.9+4543_daily_bin1762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114860/ft1_4FGL_J1706.9+4543_daily_bin1762.fits outfile=/scratch/kocevski/114860/ft1_filteredMKT_4FGL_J1706.9+4543_daily_bin1762.fits ra=256.743 dec=45.7248 rad=12.0 tmin=696038401.0 tmax=696297601.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 3.72
user 3.44
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.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/114860/ft1_filteredMKT_4FGL_J1706.9+4543_daily_bin1762.fits evtable="EVENTS" outfile="/scratch/kocevski/114860/ft1_filtered_4FGL_J1706.9+4543_daily_bin1762.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 695

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114860/ft1_filtered_4FGL_J1706.9+4543_daily_bin1762.fits" evtable="EVENTS" scfile=/scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits sctable="SC_DATA" outfile=/scratch/kocevski/114860/ltcube_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.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/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits
.....................!
real 15.94
user 15.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114860/ft1_filtered_4FGL_J1706.9+4543_daily_bin1762.fits evtable="EVENTS" scfile=/scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits sctable="SC_DATA" expcube=/scratch/kocevski/114860/ltcube_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.fits outfile=/scratch/kocevski/114860/expmap_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.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/114860/ltcube_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.fits
.....................!
real 195.14
user 187.35
sys 5.38

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/114860/ft1_filtered_4FGL_J1706.9+4543_daily_bin1762.fits scfile=/scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits outfile=/scratch/kocevski/114860/cmap_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114860/ft1_filtered_4FGL_J1706.9+4543_daily_bin1762.fits scfile=/scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits outfile=/scratch/kocevski/114860/cmap_HighResolution_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.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.58
user 0.40
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114860/ft1_filtered_4FGL_J1706.9+4543_daily_bin1762.fits', '/scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits', expMap='/scratch/kocevski/114860/expmap_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.fits', expCube='/scratch/kocevski/114860/ltcube_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114860/Model_4FGL_J1706.9+4543_daily_bin1762.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  0.000e+00  1.000e+06 ( 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/114860/ft1_filtered_4FGL_J1706.9+4543_daily_bin1762.fits
Spacecraft file(s): /scratch/kocevski/114860/ft2_4FGL_J1706.9+4543_daily_bin1762.fits
Exposure map: /scratch/kocevski/114860/expmap_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.fits
Exposure cube: /scratch/kocevski/114860/ltcube_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114860/Model_4FGL_J1706.9+4543_daily_bin1762.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) = 7527.00643642

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2694       1.0000          .0000       .10000E+07
     2 'Prefactor '    9.0653       1.0000          .0000       .10000E+07
     3 'Prefactor '    22.074       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.0327       1.0000          .0000       .10000E+07
     5 'Prefactor '    .73885E-07   1.0000          .0000       .10000E+07
     6 'norm      '    8.1165       1.0000          .0000       .10000E+07
     7 'norm      '    .19694       1.0000          .0000       .10000E+07
     8 'norm      '    25.297       1.0000          .0000       .10000E+07
     9 'Prefactor '    3.0906       1.0000          .0000       .10000E+07
    10 'Prefactor '    .38602E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .61292       1.0000          .0000       .10000E+07
    12 'Prefactor '    .54360       1.0000          .0000       .10000E+07
    13 'Prefactor '    .42805E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .17987E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.0434       1.0000          .0000       .10000E+07
    16 'Prefactor '    .80115E-04   1.0000          .0000       .10000E+07
    17 'norm      '    5.4102       1.0000          .0000       .10000E+07
    18 'norm      '    .89492       1.0000          .0000       .10000E+07
    19 'Prefactor '    .37476E-06   1.0000          .0000       .10000E+07
    20 'norm      '    .14433E-08   1.0000          .0000       .10000E+07
    21 'norm      '    .83938E-05   1.0000          .0000       .10000E+07
    22 'norm      '    8.4687       1.0000          .0000       .10000E+07
    23 'Prefactor '    .27078E-06   1.0000          .0000       .10000E+07
    24 'norm      '    15.126       1.0000          .0000       .10000E+07
    25 'Prefactor '    .25409E-03   1.0000          .0000       .10000E+07
    26 'norm      '    10.513       1.0000          .0000       .10000E+07
    27 'Prefactor '    .26077E-01   1.0000          .0000       .10000E+07
    28 'Prefactor '    3.6205       1.0000          .0000       .10000E+07
    29 'Prefactor '    .59429E-03   1.0000          .0000       .10000E+07
    30 'Prefactor '    12.225       1.0000          .0000       .10000E+07
    31 'norm      '    7.9406       1.0000          .0000       .10000E+07
    32 'Normalizat'    1.0695       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .76659       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=   7525.333     FROM MIGRAD    STATUS=CONVERGED    256 CALLS     2009 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2318        411.47       -.12672E-04    .26252E-02
   2  Prefactor     8.9826        6.7477        .93430E-07    .59688E-02
   3  Prefactor     22.017        17.042       -.79283E-07   -.67569E-01
   4  Prefactor     5.0855        6.0124       -.19912E-07   -.15681E-02
   5  Prefactor     .55511E-10    1.7717        .47318E-07** at limit **
   6  norm          8.0810        14.341        .52506E-06    .19492E-01
   7  norm          .19652        .12664        .17429E-07** at limit **
   8  norm          24.918        5.1493        .11197E-07    .29404E-01
   9  Prefactor     3.2010        18.975       -.40749E-06   -.21494E-01
  10  Prefactor     .27756E-09    2.6406        .23289E-07** at limit **
  11  norm          .13546E-05    226.62        .73299E-06** at limit **
  12  Prefactor     .54502        .68970        .39694E-07    .32689E-03
  13  Prefactor      .0000        .72170       -.61693E-08** at limit **
  14  Prefactor     .87641E-06    17.277       -.28456E-06** at limit **
  15  Prefactor     2.0513        2.3681        .16967E-06    .99721E-03
  16  Prefactor     .46074E-08    8.6254       -.37883E-06** at limit **
  17  norm          5.4096        1.8843        .20125E-07    .30236E-03
  18  norm          .89339        .77429       -.49336E-07   -.26598E-02
  19  Prefactor     .11102E-09    1.8289        .50794E-08** at limit **
  20  norm           .0000        .21453        .36175E-07** at limit **
  21  norm          .29421E-08    7.5528        .18806E-06** at limit **
  22  norm          8.4668        2.0811       -.12751E-07   -.15592E-02
  23  Prefactor     .61062E-09    4.0744        .83661E-07** at limit **
  24  norm          15.106        6.3447       -.11606E-06   -.16814E-02
  25  Prefactor     .26640E-06    102.58       -.40558E-05** at limit **
  26  norm          10.442        5.8076        .59778E-07    .20864E-04
  27  Prefactor     .11102E-09    78.589       -.29376E-06** at limit **
  28  Prefactor     3.6242        3.2273        .22416E-07    .11691E-02
  29  Prefactor     .21927E-07    12.666       -.16969E-06** at limit **
  30  Prefactor     12.278        9.6822       -.58716E-07   -.87235E-03
  31  norm          7.8058        7.8175        .20700E-08   -.40711E-03
  32  Normalizat    1.0702        .21814       -.29561E-05   -.54151E-04
  33  Prefactor     .76692        .16512        .18789E-06   -.61513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.23183
  Prefactor  = 8.9826
  Prefactor  = 22.0172
  Prefactor  = 5.08554
  Prefactor  = 5.55112e-11
  norm       = 8.081
  norm       = 0.196521
  norm       = 24.9178
  Prefactor  = 3.201
  Prefactor  = 2.77556e-10
  norm       = 1.35458e-06
  Prefactor  = 0.545019
  Prefactor  = 0
  Prefactor  = 8.7641e-07
  Prefactor  = 2.05135
  Prefactor  = 4.60743e-09
  norm       = 5.40961
  norm       = 0.893394
  Prefactor  = 1.11022e-10
  norm       = 0
  norm       = 2.94209e-09
  norm       = 8.46681
  Prefactor  = 6.10623e-10
  norm       = 15.1063
  Prefactor  = 2.66398e-07
  norm       = 10.4417
  Prefactor  = 1.11022e-10
  Prefactor  = 3.62417
  Prefactor  = 2.19269e-08
  Prefactor  = 12.2775
  norm       = 7.80579
  Normalizat = 1.0702
  Prefactor  = 0.766923
 **********
 **   18 **HESSE 
 **********

 FCN=   7525.333     FROM HESSE     STATUS=OK           771 CALLS     2780 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2318        441.91        .55980E-03   -1.5678    
   2  Prefactor     8.9826        7.0873        .33264E-03   -1.5648    
   3  Prefactor     22.017        23.761        .21290E-03   -1.5614    
   4  Prefactor     5.0855        6.0603        .44800E-03   -1.5663    
   5  Prefactor     .55511E-10    1.7618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.0810        14.678        .35168E-03   -1.5651    
   7  norm          .19652        .13434        .49949E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          24.918        17.438        .19886E-03   -1.5608    
   9  Prefactor     3.2010        28.217        .57663E-03   -1.5672    
  10  Prefactor     .27756E-09    2.6294        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .13546E-05    228.29        .68079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .54502        .71681        .74440E-03   -1.5693    
  13  Prefactor      .0000        .71326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .87641E-06    1.8485        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0513        2.3891        .72306E-03   -1.5679    
  16  Prefactor     .46074E-08    8.6322        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4096        1.8878        .43179E-03   -1.5661    
  18  norm          .89339        .79331        .46112E-03   -1.5689    
  19  Prefactor     .11102E-09    1.8293        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        .21292        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .29421E-08    7.5245        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.4668        2.0822        .34423E-03   -1.5650    
  23  Prefactor     .61062E-09    4.0363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          15.106        6.3506        .25726E-03   -1.5630    
  25  Prefactor     .26640E-06    103.81        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.442        5.8174        .30877E-03   -1.5643    
  27  Prefactor     .11102E-09    77.163        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     3.6242        3.2387        .53074E-03   -1.5670    
  29  Prefactor     .21927E-07    12.835        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     12.278        9.6958        .28625E-03   -1.5638    
  31  norm          7.8058        7.8301        .35558E-03   -1.5652    
  32  Normalizat    1.0702        .18507        .59829E-01   -.90714    
  33  Prefactor     .76692        .13920        .43281E-01   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53244e-07
Minuit parameter uncertainties:
  1  62.8143
  2  7.08734
  3  23.7608
  4  6.06033
  5  1.50894e-05
  6  14.6778
  7  0.134338
  8  17.4376
  9  19.0079
  10  5.18205e-05
  11  0.0351713
  12  0.716814
  13  1.78169e-06
  14  0.00254558
  15  2.38911
  16  0.000398821
  17  1.88777
  18  0.793312
  19  2.57985e-05
  20  6.04369e-08
  21  0.000298592
  22  2.0822
  23  0.000101252
  24  6.35064
  25  0.0105182
  26  5.81735
  27  0.000178136
  28  3.23866
  29  0.00106101
  30  9.69578
  31  7.83012
  32  0.185177
  33  0.139263
Done.

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

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  1.110e-10  2.580e-05  0.000e+00  1.000e+06 ( 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:  7.669e-01  1.393e-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:  1.070e+00  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/114860/likelihoodResults_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.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) = 7525.34876126
delta logL = -0.0161213981155

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7525.33263986
delta logL = -5.11045072926e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79936E-08   1.0000          .0000       .10000E+07
     2 'Index     '    3.6543       1.0000          .0000       10.000    
     3 'Normalizat'    1.0702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76693       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7525.333     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      255 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        .65397        .42118E-03** at limit **
   2  Index         1.0685        .64264        .11420E-04     .0000    
   3  Normalizat    1.0702        1.1803        .58410E-05    .62899E-05
   4  Prefactor     .76692        1.1162       -.61372E-05    .82665E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.06846
  Normalizat = 1.0702
  Prefactor  = 0.766924
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7525.333     FROM HESSE     STATUS=FAILED         9 CALLS      264 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        .65397        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .60705E-01    1.0938        .11420E-04   -.90481    
   3  Normalizat    1.0702        1.1803        .58410E-05   -.90714    
   4  Prefactor     .76692        1.1162       -.61372E-05   -1.0096    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.53397e-11
Minuit parameter uncertainties:
  1  1.87897e-06
  2  0.64737
  3  1.21132
  4  1.15183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114860': 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): 101
logL (Free Index) = 7525.33263986
delta logL = 2.18278728426e-11

Extracting fit parameters...

4FGL J1706.9+4543
   Spectrum: PowerLaw
350    Prefactor:  0.000e+00  1.879e-06  0.000e+00  1.000e+06 ( 1.000e-12)
351        Index:  1.068e+00  6.474e-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:  7.669e-01  1.152e+00  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:  1.070e+00  1.211e+00  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/114860/cmap_HighResolution_696038401_696297601_4FGL_J1706.9+4543_daily_bin1762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.27e-03', job_status='DONE', photon_flux_upper_limit='5.39e-08', time_completed='2023-01-25 01:31:18.121532', job_id='114860', GAL2='0.77', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1674639078.12', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.18e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.82' WHERE bin_id='1762' AND source_name='4FGL J1706.9+4543' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan 25 01:31:18 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 114860: <4FGL_J1706.9+4543_daily_bin1762> in cluster <slac> Done

Job <4FGL_J1706.9+4543_daily_bin1762> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jan 25 01:15:23 2023
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan 25 01:16:20 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan 25 01:16:20 2023
Terminated at Wed Jan 25 01:31:18 2023
Results reported at Wed Jan 25 01:31:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1706.9+4543_daily_bin1762 256.743 45.7248 696038401 696297601 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 :                                   876.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             347.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            955 sec.

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

