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


Performing analysis on: 4FGL_J1129.1+3703_daily_bin1718
RA = 172.296, Dec = 37.0644
tmin = 684633601, tmax = 684892801
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='103137', job_status='RUN', time_executed='2022-09-16 16:03:10.453313', time_epoch_executed='1663369390.45' WHERE source_name='4FGL J1129.1+3703' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/103137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/103137/ft1_4FGL_J1129.1+3703_daily_bin1718.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/103137/ft1_4FGL_J1129.1+3703_daily_bin1718.fits outfile=/scratch/kocevski/103137/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1718.fits ra=172.296 dec=37.0644 rad=12.0 tmin=684633601.0 tmax=684892801.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.27
user 3.04
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.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/103137/ft1_filteredMKT_4FGL_J1129.1+3703_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.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.55
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 80

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/103137/ltcube_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.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/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits
.....................!
real 15.83
user 15.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/103137/ltcube_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.fits outfile=/scratch/kocevski/103137/expmap_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.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/103137/ltcube_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.fits
.....................!
real 194.05
user 186.43
sys 5.24

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

Setting source of interest to:
4FGL J1129.1+3703 @ 172.296 37.0644

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits scfile=/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits outfile=/scratch/kocevski/103137/cmap_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.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=172.296 yref=37.0644 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits scfile=/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits outfile=/scratch/kocevski/103137/cmap_HighResolution_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.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=172.296 yref=37.0644 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/103137/Model_4FGL_J1129.1+3703_daily_bin1718.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/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits....................!
real 20.23
user 18.74
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits', '/scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits', expMap='/scratch/kocevski/103137/expmap_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.fits', expCube='/scratch/kocevski/103137/ltcube_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/103137/Model_4FGL_J1129.1+3703_daily_bin1718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1129.1+3703'

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  7.179e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/103137/ft1_filtered_4FGL_J1129.1+3703_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/103137/ft2_4FGL_J1129.1+3703_daily_bin1718.fits
Exposure map: /scratch/kocevski/103137/expmap_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.fits
Exposure cube: /scratch/kocevski/103137/ltcube_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/103137/Model_4FGL_J1129.1+3703_daily_bin1718.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) = 673.20639982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .90964E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .16117E-04   1.0000          .0000       .10000E+07
     3 'Prefactor '    52.241       1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2771       1.0000          .0000       .10000E+07
     5 'Prefactor '    .36949E-02   1.0000          .0000       .10000E+07
     6 'norm      '    1.3692       1.0000          .0000       .10000E+07
     7 'Prefactor '    .41597E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .15654E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .11503E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .10092E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .19945E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .82351E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .34020E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .23954E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .24305E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .52812E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .76732E-02   1.0000          .0000       .10000E+07
    18 'norm      '    .65435E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    15.237       1.0000          .0000       .10000E+07
    20 'norm      '    .61905E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .75048E-01   1.0000          .0000       .10000E+07
    22 'norm      '    .10000E+07   1.0000          .0000       .10000E+07
    23 'Prefactor '    .88783       1.0000          .0000       .10000E+07
    24 'Normalizat'    .12476E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .42367E-06   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   673.1767     FROM MIGRAD    STATUS=CONVERGED    334 CALLS     2931 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52736E-08    19.258        .24833E-08** at limit **
   2  Prefactor      .0000        2.7052        .31654E-07** at limit **
   3  Prefactor     53.157        60.851       -.22593E-06   -.41383E-01
   4  Prefactor     .26944E-04    504.54       -.13608E-05** at limit **
   5  Prefactor     .19834E-05    19.162        .11885E-06** at limit **
   6  norm          1.3691        .60166        .10863E-07    .23303E-02
   7  Prefactor     .53990E-06    27.165        .17265E-06** at limit **
   8  Prefactor     .21838E-06    24.106       -.40669E-07** at limit **
   9  Prefactor     .83267E-09    10.470        .90124E-07** at limit **
  10  norm          .13878E-08    12.642        .92655E-07** at limit **
  11  Prefactor      .0000        2.3172       -.19739E-07** at limit **
  12  Prefactor     .32534E-05    39.071        .11950E-06** at limit **
  13  Prefactor     .11102E-09    75.804        .15645E-06** at limit **
  14  norm           .0000        2.6058       -.21247E-07** at limit **
  15  Prefactor     .37059E-06    39.864        .19623E-06** at limit **
  16  Prefactor     .88818E-09    10.684        .10104E-06** at limit **
  17  Prefactor     .23936E-05    31.167       -.26742E-06** at limit **
  18  norm           .0000        2.1180        .18014E-07** at limit **
  19  Prefactor     13.065        134.32       -.13690E-05    .13402    
  20  norm          .12569E-04    24.556       -.37306E-06** at limit **
  21  Prefactor     .17935E-04    269.13        .14309E-06** at limit **
  22  norm          .10000E+07    3233.9        .57500E-05** at limit **
  23  Prefactor     .13738E-02    1412.9       -.39970E-05** at limit **
  24  Normalizat    .11904E-01    1.2703        .90849E-04    .17574E-04
  25  Prefactor     .64375E-10    1.8725       -.21427E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.27356e-09
  Prefactor  = 0
  Prefactor  = 53.1567
  Prefactor  = 2.69439e-05
  Prefactor  = 1.98336e-06
  norm       = 1.36912
  Prefactor  = 5.39901e-07
  Prefactor  = 2.18381e-07
  Prefactor  = 8.32667e-10
  norm       = 1.38778e-09
  Prefactor  = 0
  Prefactor  = 3.2534e-06
  Prefactor  = 1.11022e-10
  norm       = 0
  Prefactor  = 3.70592e-07
  Prefactor  = 8.88178e-10
  Prefactor  = 2.39359e-06
  norm       = 0
  Prefactor  = 13.0651
  norm       = 1.25692e-05
  Prefactor  = 1.79348e-05
  norm       = 1e+06
  Prefactor  = 0.00137377
  Normalizat = 0.0119037
  Prefactor  = 6.43752e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   673.1767     FROM HESSE     STATUS=OK           471 CALLS     3402 TOTAL
                     EDM=   .98E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52736E-08    19.212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        2.7087        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     53.157        58.090        .13836E-03   -1.5562    
   4  Prefactor     .26944E-04    501.99        .98263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19834E-05    59.406        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3691        .60004        .29335E-03   -1.5685    
   7  Prefactor     .53990E-06    27.109        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .21838E-06    24.121        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83267E-09    10.478        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .13878E-08    12.676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        2.3221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .32534E-05    42.520        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .11102E-09    75.607        .16245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        2.6074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .37059E-06    60.540        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .88818E-09    10.680        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .23936E-05    51.467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        2.1345        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.065        13425.        .25632E-03   -1.5636    
  20  norm          .12569E-04    46.027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .17935E-04    272.14        .14655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E+07    7522.5        .93238E-03    1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .13738E-02    2526.2        .46605E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .11904E-01    .27509        .10993       -1.5984    
  25  Prefactor     .64375E-10    .39992        .12999       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000984605
Minuit parameter uncertainties:
  1  0.000636703
  2  7.3764e-06
  3  58.0902
  4  0.232618
  5  0.0217095
  6  0.600042
  7  0.00765143
  8  0.00459021
  9  0.000187601
  10  0.0002626
  11  3.35386e-06
  12  0.0235232
  13  0.00019471
  14  7.1761e-08
  15  0.00947369
  16  0.000197673
  17  0.0221984
  18  1.06665e-06
  19  839.502
  20  0.0481052
  21  0.139731
  22  57.4838
  23  3.72737
  24  0.0459858
  25  1.02168e-05
Done.

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

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  3.253e-06  2.352e-02  0.000e+00  1.000e+06 ( 1.000e-14)
337        Index:  2.171e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  6.438e-11  1.022e-05  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.190e-02  4.599e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.296 37.064
Photon Flux Upper Limit: 1.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/103137/likelihoodResults_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.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) = 673.180456356
delta logL = -0.0037616694965

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 673.176698848
delta logL = -4.16172554196e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73008E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.6509       1.0000          .0000       10.000    
     3 'Normalizat'    .11863E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .16723E-04   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   673.1767     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      296 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20106E-06    112.38       -.56961E-05** at limit **
   2  Index         1.0616        8.7214       -.18412E-03   -.17193E-08
   3  Normalizat    .11904E-01    1.1267        .21471E-03    .11084E-04
   4  Prefactor     .20359E-08    1.9430       -.48761E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.01061e-07
  Index      = 1.0616
  Normalizat = 0.0119041
  Prefactor  = 2.03594e-09
 **********
 **   18 **HESSE 
 **********

 FCN=   673.1767     FROM HESSE     STATUS=NOT POSDEF    51 CALLS      347 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20106E-06    49.882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.0616        5.4449        .50000       -.90704    
   3  Normalizat    .11904E-01    .12901E-02    .10994       -1.5984    
   4  Prefactor     .20359E-08    .29465E-03    .13020       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.04119e-10
Minuit parameter uncertainties:
  1  0.00633349
  2  7495.19
  3  0.00129011
  4  1.54904e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/103137': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 673.17669465
delta logL = 3.68951305063e-08

Extracting fit parameters...

4FGL J1129.1+3703
   Spectrum: PowerLaw
336    Prefactor:  2.011e-07  6.333e-03  0.000e+00  1.000e+06 ( 1.000e-14)
337        Index:  1.062e+00  7.495e+03  0.000e+00  1.000e+01 (-1.000e+00)
338        Scale:  2.253e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  2.036e-09  1.549e-06  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.190e-02  1.290e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.296 37.064

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/103137/cmap_HighResolution_684633601_684892801_4FGL_J1129.1+3703_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-02', job_status='DONE', photon_flux_upper_limit='1.88e-07', time_completed='2022-09-16 16:09:57.072056', job_id='103137', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1663369797.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='3.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1718' AND source_name='4FGL J1129.1+3703' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:09:57 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 103137: <4FGL_J1129.1+3703_daily_bin1718> in cluster <slac> Done

Job <4FGL_J1129.1+3703_daily_bin1718> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep 16 15:55:22 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:00:01 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:00:01 2022
Terminated at Fri Sep 16 16:09:57 2022
Results reported at Fri Sep 16 16:09:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1129.1+3703_daily_bin1718 172.296 37.0644 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1129.1+3703 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   405.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            875 sec.

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

