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


Performing analysis on: 4FGL_J1729.0+6103_daily_bin1667
RA = 262.265, Dec = 61.06
tmin = 671414401, tmax = 671673601
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='478440', job_status='RUN', time_executed='2022-04-15 03:34:28.449518', time_epoch_executed='1650018868.45' WHERE source_name='4FGL J1729.0+6103' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478440

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478440/ft1_4FGL_J1729.0+6103_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478440/ft1_4FGL_J1729.0+6103_daily_bin1667.fits outfile=/scratch/kocevski/478440/ft1_filteredMKT_4FGL_J1729.0+6103_daily_bin1667.fits ra=262.265 dec=61.06 rad=12.0 tmin=671414401.0 tmax=671673601.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.53
user 3.28
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.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/478440/ft1_filteredMKT_4FGL_J1729.0+6103_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.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.60
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 966

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478440/ltcube_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.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/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits
.....................!
real 12.67
user 12.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478440/ltcube_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.fits outfile=/scratch/kocevski/478440/expmap_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.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/478440/ltcube_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.fits
.....................!
real 194.58
user 188.48
sys 5.50

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

Setting source of interest to:
4FGL J1729.0+6103 @ 262.265 61.06

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits scfile=/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits outfile=/scratch/kocevski/478440/cmap_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.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=262.265 yref=61.06 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits scfile=/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits outfile=/scratch/kocevski/478440/cmap_HighResolution_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.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=262.265 yref=61.06 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/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478440/Model_4FGL_J1729.0+6103_daily_bin1667.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/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits.....................!
real 88.14
user 86.71
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits', '/scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits', expMap='/scratch/kocevski/478440/expmap_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.fits', expCube='/scratch/kocevski/478440/ltcube_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478440/Model_4FGL_J1729.0+6103_daily_bin1667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1729.0+6103'

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  5.100e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478440/ft1_filtered_4FGL_J1729.0+6103_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/478440/ft2_4FGL_J1729.0+6103_daily_bin1667.fits
Exposure map: /scratch/kocevski/478440/expmap_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.fits
Exposure cube: /scratch/kocevski/478440/ltcube_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478440/Model_4FGL_J1729.0+6103_daily_bin1667.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) = 9963.09142068

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.771       1.0000         .10000E-03   10000.    
     4 'norm      '    36.227       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.8402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10346E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .24785       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8609       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7360       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.277       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0967       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10658E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.225       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4647       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6537       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.197       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.284       1.0000         .10000E-03   10000.    
    25 'norm      '    9.7140       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7591       1.0000         .10000E-03   10000.    
    27 'Prefactor '    16.065       1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.760       1.0000         .10000E-03   10000.    
    29 'norm      '    5.1078       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    1.1549       1.0000         .10000E-03   10000.    
    32 'Prefactor '    26.595       1.0000         .10000E-03   10000.    
    33 'Prefactor '    5.6300       1.0000         .10000E-03   10000.    
    34 'norm      '    .10586E-03   1.0000         .10000E-03   10000.    
    35 'Normalizat'    1.1663       1.0000         .10000E-01   10.000    
    36 'Prefactor '    .77268       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9963.060     FROM MIGRAD    STATUS=CONVERGED   1020 CALLS     4559 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.818        .87856E-07** at limit **
   2  norm          .10000E-03    2.6501        .14311E-06** at limit **
   3  Prefactor     13.765        23.445        .41684E-06    .77250E-06
   4  norm          36.233        21.833        .72694E-07   -.32612E-04
   5  Prefactor     8.8344        6.5966        .43858E-06   -.62866E-04
   6  Prefactor     .10000E-03    12.355       -.26600E-07** at limit **
   7  norm          .10000E-03    2.3662        .67025E-07** at limit **
   8  Prefactor     .10000E-03    6.5972        .39451E-07** at limit **
   9  Prefactor     .10000E-03    4.3350        .10487E-06** at limit **
  10  norm          .24774        .48390        .37092E-06    .10553E-02
  11  Prefactor     2.8574        6.7215        .70077E-06   -.94486E-04
  12  Prefactor     .10000E-03    3.9313       -.36712E-07** at limit **
  13  Prefactor     .10000E-03    2.7630        .74538E-06** at limit **
  14  Prefactor     2.7372        4.8815        .64511E-06    .56644E-04
  15  Prefactor     .10000E-03    1.2278        .50578E-07** at limit **
  16  Prefactor     25.251        28.348        .36686E-07    .57555E-05
  17  norm          2.0965        3.0359        .17492E-06   -.12705E-04
  18  Prefactor     .10000E-03    2.0317        .39145E-06** at limit **
  19  Prefactor     .10000E-03    19.647        .85969E-07** at limit **
  20  Prefactor     10.232        106.81        .17333E-07   -.92876E-05
  21  norm          3.4646        2.0187       -.12453E-06   -.19596E-03
  22  Prefactor     5.6573        13.591        .19232E-06   -.12463E-04
  23  Prefactor     10.194        10.674        .32618E-06   -.16682E-03
  24  Prefactor     17.268        15.282        .16494E-06   -.70988E-04
  25  norm          9.7143        5.0356        .91425E-07   -.10754E-04
  26  Prefactor     7.7598        11.806       -.21723E-07   -.20109E-04
  27  Prefactor     15.851        90.321       -.28205E-05   -.31362E-04
  28  Prefactor     13.755        8.3635        .12298E-08    .31040E-04
  29  norm          5.1075        7.0574        .33926E-06   -.43036E-04
  30  Prefactor     .10000E-03    8.8639        .34842E-07** at limit **
  31  Prefactor     1.1557        10.656        .23405E-05   -.41822E-03
  32  Prefactor     26.613        20.335        .61814E-06    .14016E-03
  33  Prefactor     5.6493        81.427        .22893E-06    .14083E-04
  34  norm          .10000E-03    1.7531       -.20637E-05** at limit **
  35  Normalizat    1.1668        .18760       -.35749E-05   -.22308E-03
  36  Prefactor     .77242        .13048        .21116E-05   -.46094E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.7652
  norm       = 36.2331
  Prefactor  = 8.83436
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.247736
  Prefactor  = 2.85743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73715
  Prefactor  = 0.0001
  Prefactor  = 25.2513
  norm       = 2.09647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2318
  norm       = 3.46455
  Prefactor  = 5.65728
  Prefactor  = 10.1942
  Prefactor  = 17.2681
  norm       = 9.71431
  Prefactor  = 7.75981
  Prefactor  = 15.8507
  Prefactor  = 13.7549
  norm       = 5.10749
  Prefactor  = 0.0001
  Prefactor  = 1.15566
  Prefactor  = 26.613
  Prefactor  = 5.64925
  norm       = 0.0001
  Normalizat = 1.16677
  Prefactor  = 0.772415
 **********
 **   18 **HESSE 
 **********

 FCN=   9963.060     FROM HESSE     STATUS=OK           823 CALLS     5382 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.6750        .15869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.765        23.449        .10794E-03   -1.4966    
   4  norm          36.233        21.836        .66585E-04   -1.4503    
   5  Prefactor     8.8344        6.6320        .13481E-03   -1.5113    
   6  Prefactor     .10000E-03    12.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3747        .14993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.6685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.3402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .24774        .45421        .90181E-03   -1.5608    
  11  Prefactor     2.8574        6.4671        .24035E-03   -1.5370    
  12  Prefactor     .10000E-03    3.9433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.8083        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7372        4.8620        .24616E-03   -1.5377    
  15  Prefactor     .10000E-03    1.2474        .10799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.251        28.347        .39838E-03   -1.4703    
  17  norm          2.0965        3.0100        .20294E-03   -1.5418    
  18  Prefactor     .10000E-03    4.6640        .27255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.232        106.59        .12530E-03   -1.5068    
  21  norm          3.4646        2.0192        .51780E-03   -1.5336    
  22  Prefactor     5.6573        13.571        .16894E-03   -1.5232    
  23  Prefactor     10.194        10.664        .12548E-03   -1.5069    
  24  Prefactor     17.268        15.268        .96337E-04   -1.4877    
  25  norm          9.7143        5.0258        .12857E-03   -1.5085    
  26  Prefactor     7.7598        11.799        .14396E-03   -1.5151    
  27  Prefactor     15.851        91.157        .99925E-04   -1.4911    
  28  Prefactor     13.755        8.3475        .10798E-03   -1.4966    
  29  norm          5.1075        7.0480        .17790E-03   -1.5256    
  30  Prefactor     .10000E-03    8.8693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.1557        48.007        .56433E-02   -1.5493    
  32  Prefactor     26.613        20.424        .77681E-04   -1.4676    
  33  Prefactor     5.6493        81.673        .16930E-03   -1.5233    
  34  norm          .10000E-03    1.8187        .25785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  Normalizat    1.1668        .20728        .28164E-03   -.87636    
  36  Prefactor     .77242        .14548        .25204E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86433e-09
Minuit parameter uncertainties:
  1  1.51399e-05
  2  5.77932e-06
  3  23.4645
  4  21.8405
  5  6.63254
  6  8.19869e-06
  7  2.25764e-06
  8  1.05024e-05
  9  5.23346e-06
  10  0.454213
  11  6.46864
  12  7.04555e-06
  13  1.80534e-05
  14  4.86266
  15  1.33812e-06
  16  28.3623
  17  3.01021
  18  3.53313e-05
  19  1.13929e-05
  20  66.2002
  21  2.01928
  22  13.5782
  23  10.6663
  24  15.2715
  25  5.02603
  26  11.8028
  27  76.2004
  28  8.34818
  29  7.04918
  30  1.68606e-06
  31  14.9091
  32  20.4294
  33  43.0307
  34  3.13063e-05
  35  0.207424
  36  0.145553
Done.

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

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  2.525e+01  2.836e+01  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  2.405e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
360        Scale:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  7.724e-01  1.456e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.167e+00  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 262.265 61.060
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.35e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 4.38e-06 +/- 4.92e-06

TS (Fixed Index): 2.30
Ra Dec: 262.265 61.060
Photon Flux Upper Limit: 6.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478440/likelihoodResults_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.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) = 9962.14810361
delta logL = 0.912152944629

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9962.1481007
delta logL = 0.912155853359

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9962.148     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      244 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.231        85.199        .14638E-02   -.83102E-04
   2  Index         1.4201        .85445        .30808       -.40410E-05
   3  Normalizat    1.1778        .16178        .63401E-01    .27277E-04
   4  Prefactor     .76747        .12020        .43294E-01    .36816E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.2306
  Index      = 1.42013
  Normalizat = 1.17779
  Prefactor  = 0.767474
 **********
 **   18 **HESSE 
 **********

 FCN=   9962.148     FROM HESSE     STATUS=OK            31 CALLS      275 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.231        50.774        .58552E-04   -1.4332    
   2  Index         1.4201        .61755        .13857E-01   -.79802    
   3  Normalizat    1.1778        .18724        .28044E-03   -.87292    
   4  Prefactor     .76747        .14000        .25269E-03   -1.0094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42036e-11
Minuit parameter uncertainties:
  1  50.8203
  2  0.620817
  3  0.187346
  4  0.140062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478440': 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) = 9962.14807896
delta logL = 0.91217758932

Extracting fit parameters...

4FGL J1729.0+6103
   Spectrum: PowerLaw
358    Prefactor:  4.723e+01  5.082e+01  1.000e-04  1.000e+04 ( 1.000e-14)
359        Index:  1.420e+00  6.208e-01  0.000e+00  1.000e+01 (-1.000e+00)
360        Scale:  1.567e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
665    Prefactor:  7.675e-01  1.401e-01  0.000e+00  1.000e+01 ( 1.000e+00)
666        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
667        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
664   Normalization:  1.178e+00  1.873e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.12
Ra Dec: 262.265 61.060
Photon Index (Free Index): 1.42 +/- 0.62
Photon Flux (Free Index): 5.29e-09 +/- 6.76e-09
Energy Flux (Free Index): 2.19e-05 +/- 3.70e-05

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/478440/cmap_HighResolution_671414401_671673601_4FGL_J1729.0+6103_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.80e-03', comment='SUCCESS', photon_flux='1.35e-08', energy_flux2='2.19e-05', photon_flux_error='1.51e-08', dlogl='9.12e-01', energy_flux='4.38e-06', photon_flux2='5.29e-09', job_status='DONE', time_completed='2022-04-15 04:01:00.685400', photon_index_error2='0.62', photon_index2='1.42', ts='2.30', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='6.21e-08', energy_flux_error2='3.70e-05', EG='1.17', time_epoch_completed='1650020460.69', return_code='0', job_id='478440', GAL2='0.77', EG2='1.18', return_code2='0', energy_flux_error='4.92e-06', photon_flux_error2='6.76e-09', ts2='4.12', photon_index='2.41' WHERE bin_id='1667' AND source_name='4FGL J1729.0+6103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 04:01:00 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 478441: <4FGL_J1729.0+6103_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1729.0+6103_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:51 2022
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:35 2022
Terminated at Fri Apr 15 04:00:45 2022
Results reported at Fri Apr 15 04:00:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1729.0+6103_daily_bin1667 262.265 61.06 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1729.0+6103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1605.00 sec.
    Max Memory :                                 620 MB
    Average Memory :                             297.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1750 sec.
    Turnaround time :                            13974 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0177>
Subject: Job 478440: <4FGL_J1729.0+6103_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1729.0+6103_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:51 2022
Job was executed on host(s) <bullet0177>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:31:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:31:35 2022
Terminated at Fri Apr 15 04:01:01 2022
Results reported at Fri Apr 15 04:01:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1729.0+6103_daily_bin1667 262.265 61.06 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1729.0+6103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1590.98 sec.
    Max Memory :                                 624 MB
    Average Memory :                             302.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1766 sec.
    Turnaround time :                            13990 sec.

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

