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 5 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_J2129.9+1208_daily_bin1718
RA = 322.482, Dec = 12.1439
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='233157', job_status='RUN', time_executed='2022-09-16 23:16:39.339610', time_epoch_executed='1663395399.34' WHERE source_name='4FGL J2129.9+1208' and cadence='daily' and bin_id='1718'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233157

Creating custom pfile directory:
/scratch/kocevski/233157/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/233157/ft1_4FGL_J2129.9+1208_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/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233157/ft1_4FGL_J2129.9+1208_daily_bin1718.fits outfile=/scratch/kocevski/233157/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1718.fits ra=322.482 dec=12.1439 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.20
user 2.95
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_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/233157/ft1_filteredMKT_4FGL_J2129.9+1208_daily_bin1718.fits evtable="EVENTS" outfile="/scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_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.50
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 680

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits" evtable="EVENTS" scfile=/scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits sctable="SC_DATA" outfile=/scratch/kocevski/233157/ltcube_684633601_684892801_4FGL_J2129.9+1208_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/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits
.....................!
real 14.19
user 13.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits sctable="SC_DATA" expcube=/scratch/kocevski/233157/ltcube_684633601_684892801_4FGL_J2129.9+1208_daily_bin1718.fits outfile=/scratch/kocevski/233157/expmap_684633601_684892801_4FGL_J2129.9+1208_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/233157/ltcube_684633601_684892801_4FGL_J2129.9+1208_daily_bin1718.fits
.....................!
real 193.79
user 188.08
sys 5.31

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
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 176 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2129.9+1208 @ 322.482 12.1439

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits scfile=/scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits outfile=/scratch/kocevski/233157/cmap_684633601_684892801_4FGL_J2129.9+1208_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=322.482 yref=12.1439 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/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits scfile=/scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits outfile=/scratch/kocevski/233157/cmap_HighResolution_684633601_684892801_4FGL_J2129.9+1208_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=322.482 yref=12.1439 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.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits evtable="EVENTS" scfile=/scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/233157/Model_4FGL_J2129.9+1208_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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits....................!
real 107.67
user 106.26
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits', '/scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits', expMap='/scratch/kocevski/233157/expmap_684633601_684892801_4FGL_J2129.9+1208_daily_bin1718.fits', expCube='/scratch/kocevski/233157/ltcube_684633601_684892801_4FGL_J2129.9+1208_daily_bin1718.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/233157/Model_4FGL_J2129.9+1208_daily_bin1718.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2129.9+1208'

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  1.210e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/233157/ft1_filtered_4FGL_J2129.9+1208_daily_bin1718.fits
Spacecraft file(s): /scratch/kocevski/233157/ft2_4FGL_J2129.9+1208_daily_bin1718.fits
Exposure map: /scratch/kocevski/233157/expmap_684633601_684892801_4FGL_J2129.9+1208_daily_bin1718.fits
Exposure cube: /scratch/kocevski/233157/ltcube_684633601_684892801_4FGL_J2129.9+1208_daily_bin1718.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/233157/Model_4FGL_J2129.9+1208_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) = 7673.73302036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.182       1.0000          .0000       .10000E+07
     2 'norm      '    8.9335       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12352E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    25.831       1.0000          .0000       .10000E+07
     5 'Prefactor '    .78830E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51296E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .22486       1.0000          .0000       .10000E+07
     8 'norm      '    2.6785       1.0000          .0000       .10000E+07
     9 'Prefactor '    .29413E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    .10490E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    .15708E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .13821E-02   1.0000          .0000       .10000E+07
    13 'norm      '    .80003E-06   1.0000          .0000       .10000E+07
    14 'Prefactor '    .61230E-01   1.0000          .0000       .10000E+07
    15 'norm      '    1.4099       1.0000          .0000       .10000E+07
    16 'norm      '    14.056       1.0000          .0000       .10000E+07
    17 'Prefactor '    .96952E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    36.649       1.0000          .0000       .10000E+07
    19 'Prefactor '    .48862E-02   1.0000          .0000       .10000E+07
    20 'norm      '    .25690E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .47761       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7673.578     FROM MIGRAD    STATUS=CONVERGED    220 CALLS     1962 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.906        8.6728        .13366E-07    .33247E-01
   2  norm          8.9281        8.7988        .26318E-06   -.46925E-03
   3  Prefactor     .27201E-04    28.677        .34312E-06** at limit **
   4  Prefactor     25.816        13.389       -.77695E-07   -.18675    
   5  Prefactor     .10714E-07    12.246        .39350E-06** at limit **
   6  Prefactor     .60396E-07    32.756        .89116E-06** at limit **
   7  Prefactor     .19359E-05    108.68        .19493E-05** at limit **
   8  norm          2.6826        4.2112       -.33021E-06   -.22295E-02
   9  Prefactor     .83267E-09    4.7911        .64977E-06** at limit **
  10  Prefactor     .49960E-09    5.7584        .32316E-06** at limit **
  11  Prefactor     .20220E-04    27.358        .45604E-06** at limit **
  12  Prefactor     .51951E-04    104.21       -.28914E-06** at limit **
  13  norm          .44742E-07    13.224       -.54457E-06** at limit **
  14  Prefactor     .87507E-05    6.1050        .17724E-06** at limit **
  15  norm          1.4113        2.6627       -.32088E-07   -.61679E-03
  16  norm          13.903        11.967       -.20343E-07    .62974E-01
  17  Prefactor     .11102E-09    5.0702       -.17163E-07** at limit **
  18  Prefactor     36.271        3.2985        .24527E-07   -.15789E-01
  19  Prefactor     .64929E-04    135.87       -.67735E-06** at limit **
  20  norm          .55511E-10    15.629       -.20645E-06** at limit **
  21  Normalizat    .47885        .27736        .36154E-05   -.21187E-04
  22  Prefactor     1.0275        .11522       -.15005E-05   -.12599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.9063
  norm       = 8.92813
  Prefactor  = 2.72012e-05
  Prefactor  = 25.8163
  Prefactor  = 1.07137e-08
  Prefactor  = 6.03961e-08
  Prefactor  = 1.9359e-06
  norm       = 2.68263
  Prefactor  = 8.32667e-10
  Prefactor  = 4.996e-10
  Prefactor  = 2.02204e-05
  Prefactor  = 5.19512e-05
  norm       = 4.4742e-08
  Prefactor  = 8.75072e-06
  norm       = 1.41134
  norm       = 13.9027
  Prefactor  = 1.11022e-10
  Prefactor  = 36.2713
  Prefactor  = 6.49293e-05
  norm       = 5.55112e-11
  Normalizat = 0.478846
  Prefactor  = 1.02752
 **********
 **   18 **HESSE 
 **********

 FCN=   7673.578     FROM HESSE     STATUS=OK           402 CALLS     2364 TOTAL
                     EDM=   .25E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.906        36.503        .29935E-03   -1.5642    
   2  norm          8.9281        9.2225        .33510E-03   -1.5648    
   3  Prefactor     .27201E-04    46.953        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     25.816        16.172        .19679E-03   -1.5606    
   5  Prefactor     .10714E-07    12.419        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .60396E-07    33.155        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19359E-05    109.44        .11349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.6826        4.2883        .62237E-03   -1.5675    
   9  Prefactor     .83267E-09    4.8048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49960E-09    5.6994        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .20220E-04    41.410        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .51951E-04    125.56        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .44742E-07    1.6932        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .87507E-05    44.877        .19862E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4113        2.7805        .91215E-03   -1.5684    
  16  norm          13.903        21.232        .26690E-03   -1.5633    
  17  Prefactor     .11102E-09    5.0751        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     36.271        29.462        .16520E-03   -1.5588    
  19  Prefactor     .64929E-04    161.69        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .55511E-10    .37967        .28749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .47885        .27636        .11177       -1.1341    
  22  Prefactor     1.0275        .10588        .41450E-01   -.91818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48683e-06
Minuit parameter uncertainties:
  1  36.5039
  2  9.22249
  3  0.0714758
  4  16.1725
  5  0.000729801
  6  0.00283022
  7  0.0291118
  8  4.28831
  9  0.000125123
  10  0.000104091
  11  0.0578732
  12  0.161535
  13  0.000550338
  14  0.0396341
  15  2.7805
  16  21.2323
  17  5.27331e-05
  18  29.4618
  19  0.204929
  20  1.03757e-05
  21  0.277154
  22  0.105897
Done.

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

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  4.996e-10  1.041e-04  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  2.618e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.028e+00  1.059e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  4.788e-01  2.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.482 12.144
Photon Flux Upper Limit: 9.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/233157/likelihoodResults_684633601_684892801_4FGL_J2129.9+1208_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): 102
logL (Free Index) = 7673.57996047
delta logL = -0.00146978797966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7673.57849817
delta logL = -7.48655656935e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16418E-04   1.0000          .0000       .10000E+07
     2 'Index     '    1.8087       1.0000          .0000       10.000    
     3 'Normalizat'    .47805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7673.578     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      230 TOTAL
                     EDM=   .19E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.0699       -.33424E-06** at limit **
   2  Index         2.4437        1.6645        .67511E-06     .0000    
   3  Normalizat    .47885        .26888        .86850E-05   -.48564E-05
   4  Prefactor     1.0275        .11403       -.15532E-05   -.28431E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.44368
  Normalizat = 0.478845
  Prefactor  = 1.02752
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   7673.578     FROM HESSE     STATUS=FAILED        11 CALLS      241 TOTAL
                     EDM=   .19E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.0937        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .67123        1.8652        .67511E-06   -.53666    
   3  Normalizat    .47885        .80802        .86850E-05   -1.1341    
   4  Prefactor     1.0275        1.2226       -.15532E-05   -.91818    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.89887e-13
Minuit parameter uncertainties:
  1  7.9584e-07
  2  1.16114
  3  0.829143
  4  1.25825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233157': 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) = 7673.57849068
delta logL = 4.72937244922e-11

Extracting fit parameters...

4FGL J2129.9+1208
   Spectrum: PowerLaw
301    Prefactor:  0.000e+00  7.958e-07  0.000e+00  1.000e+06 ( 1.000e-12)
302        Index:  2.444e+00  1.161e+00  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  6.533e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  1.028e+00  1.258e+00  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  4.788e-01  8.291e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.482 12.144

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/233157/cmap_HighResolution_684633601_684892801_4FGL_J2129.9+1208_daily_bin1718.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.12e-03', job_status='DONE', photon_flux_upper_limit='9.09e-08', time_completed='2022-09-16 23:28:30.376766', job_id='233157', GAL2='1.03', fit_tolerance='1e-08', EG2='0.48', EG='0.48', time_epoch_completed='1663396110.38', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='4.73e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='1718' AND source_name='4FGL J2129.9+1208' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 23:28:30 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 233157: <4FGL_J2129.9+1208_daily_bin1718> in cluster <slac> Done

Job <4FGL_J2129.9+1208_daily_bin1718> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 23:15:19 2022
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 23:16:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 23:16:24 2022
Terminated at Fri Sep 16 23:28:30 2022
Results reported at Fri Sep 16 23:28:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.9+1208_daily_bin1718 322.482 12.1439 684633601 684892801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2129.9+1208 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   713.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            791 sec.

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

