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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1700
RA = 322.296, Dec = -2.6829
tmin = 679968001, tmax = 680227201
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='83283', job_status='RUN', time_executed='2022-07-23 00:37:40.083312', time_epoch_executed='1658561860.08' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1700'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/83283

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/83283/ft1_4FGL_J2129.1-0240_daily_bin1700.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/83283/ft1_4FGL_J2129.1-0240_daily_bin1700.fits outfile=/scratch/kocevski/83283/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1700.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=679968001.0 tmax=680227201.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 4.55
user 4.33
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.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/83283/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1700.fits evtable="EVENTS" outfile="/scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.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.33
sys 0.15

Number of photons that the gtmktime cut: 492

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits" evtable="EVENTS" scfile=/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits sctable="SC_DATA" outfile=/scratch/kocevski/83283/ltcube_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.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/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits
.....................!
real 11.80
user 11.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits sctable="SC_DATA" expcube=/scratch/kocevski/83283/ltcube_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.fits outfile=/scratch/kocevski/83283/expmap_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.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/83283/ltcube_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.fits
.....................!
real 191.29
user 184.89
sys 6.03

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

Setting source of interest to:
4FGL J2129.1-0240 @ 322.296 -2.6829

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits scfile=/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits outfile=/scratch/kocevski/83283/cmap_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.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.296 yref=-2.6829 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.94
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits scfile=/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits outfile=/scratch/kocevski/83283/cmap_HighResolution_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.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.296 yref=-2.6829 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 2.82
user 0.37
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits evtable="EVENTS" scfile=/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/83283/Model_4FGL_J2129.1-0240_daily_bin1700.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/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits.....................!
real 63.62
user 56.75
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits', '/scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits', expMap='/scratch/kocevski/83283/expmap_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.fits', expCube='/scratch/kocevski/83283/ltcube_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/83283/Model_4FGL_J2129.1-0240_daily_bin1700.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2129.1-0240'

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.059e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/83283/ft1_filtered_4FGL_J2129.1-0240_daily_bin1700.fits
Spacecraft file(s): /scratch/kocevski/83283/ft2_4FGL_J2129.1-0240_daily_bin1700.fits
Exposure map: /scratch/kocevski/83283/expmap_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.fits
Exposure cube: /scratch/kocevski/83283/ltcube_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/83283/Model_4FGL_J2129.1-0240_daily_bin1700.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) = 5509.7310025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12955E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .38797       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    102.07       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.395       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.331       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33629E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.378       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .61165       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    39.182       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.985       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0478       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .76366       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5509.724     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2933 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    6.5574       -.14624E-05** at limit **
   2  Prefactor     .17334        14.780        .37996E-06    .63560E-04
   3  Prefactor     .10000E-03    45.178        .32408E-07** at limit **
   4  Prefactor     .10000E-03    30.592        .91966E-06** at limit **
   5  Prefactor     .10000E-03    11.068        .18340E-06** at limit **
   6  Prefactor     102.04        77.421       -.13421E-06   -.11161E-03
   7  Prefactor     10.398        21.098       -.14339E-06   -.89125E-04
   8  Prefactor     22.328        18.843       -.97158E-07   -.13280E-03
   9  Prefactor     .10000E-03    9.2352        .16809E-06** at limit **
  10  Prefactor     .10000E-03    22.766       -.65503E-06** at limit **
  11  Prefactor     .10000E-03    3.8705        .54704E-06** at limit **
  12  Prefactor     2.8164        3.2822       -.15126E-06   -.37468E-03
  13  Prefactor     26.755        36.482       -.57252E-07   -.71685E-04
  14  Prefactor     38.319        61.660       -.55072E-06   -.11142E-03
  15  norm          .10000E-03    3.2435        .38165E-07** at limit **
  16  Prefactor     .10000E-03    30.424        .11537E-06** at limit **
  17  norm          .10000E-03    8.1937        .16436E-06** at limit **
  18  Prefactor     .10000E-03    5.4316        .65646E-07** at limit **
  19  Prefactor     .63389        7.4832       -.24972E-05    .63619E-03
  20  Prefactor     .10000E-03    3.6855        .13216E-07** at limit **
  21  Prefactor     39.175        28.369       -.12795E-06   -.91143E-04
  22  Prefactor     15.982        14.911        .14559E-07   -.49728E-04
  23  Prefactor     .10000E-03    8.1836        .51830E-07** at limit **
  24  Normalizat    1.0476        .29350        .43315E-05   -.51245E-03
  25  Prefactor     .76400        .13516       -.40238E-05   -.10621E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100113
  Prefactor  = 0.173342
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 102.038
  Prefactor  = 10.3982
  Prefactor  = 22.3284
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.81637
  Prefactor  = 26.7554
  Prefactor  = 38.3187
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.633891
  Prefactor  = 0.0001
  Prefactor  = 39.1752
  Prefactor  = 15.9818
  Prefactor  = 0.0001
  Normalizat = 1.04758
  Prefactor  = 0.763997
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.724     FROM HESSE     STATUS=OK           433 CALLS     3366 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    33.780        .32221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17334        26.038        .77440E-01   -1.5625    
   3  Prefactor     .10000E-03    45.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     102.04        77.597        .19898E-03   -1.3684    
   7  Prefactor     10.398        21.012        .12427E-03   -1.5063    
   8  Prefactor     22.328        18.794        .84762E-04   -1.4763    
   9  Prefactor     .10000E-03    9.2523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.743        .28141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.8164        3.2439        .12744E-03   -1.5372    
  13  Prefactor     26.755        36.593        .77433E-04   -1.4673    
  14  Prefactor     38.319        61.770        .64698E-04   -1.4469    
  15  norm          .10000E-03    3.2441        .13056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.2079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.4687        .16892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .63389        25.534        .28551E-02   -1.5549    
  20  Prefactor     .10000E-03    3.6902        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     39.175        28.454        .64033E-04   -1.4455    
  22  Prefactor     15.982        14.935        .10018E-03   -1.4908    
  23  Prefactor     .10000E-03    8.1961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0476        .31498        .30602E-03   -.91453    
  25  Prefactor     .76400        .14057        .17602E-03   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07603e-08
Minuit parameter uncertainties:
  1  0.0039154
  2  4.24967
  3  7.38796e-05
  4  0.000268572
  5  3.00009e-05
  6  77.6741
  7  21.0265
  8  18.7991
  9  2.91042e-05
  10  0.000124307
  11  0.000171045
  12  3.24415
  13  36.6238
  14  61.8736
  15  4.33548e-06
  16  6.41974e-05
  17  2.75674e-05
  18  1.12844e-05
  19  8.04937
  20  2.73426e-06
  21  28.4642
  22  14.9388
  23  3.84848e-06
  24  0.315542
  25  0.140637
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.243e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  7.640e-01  1.406e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.048e+00  3.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/83283/likelihoodResults_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.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) = 5509.72433127
delta logL = -0.000208937183743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5509.72412347
delta logL = -1.14349313662e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5509.724     FROM MIGRAD    STATUS=FAILED        93 CALLS      283 TOTAL
                     EDM=   .58E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11127E-03    11.260        .18142E-01** at limit **
   2  Index         2.9437        5.5684        .50000        .34255E-05
   3  Normalizat    1.0476        .41859E-02    .30601E-03    .35665E-05
   4  Prefactor     .76400        .21006E-02    .17602E-03   -.13563E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5509.724     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      374 TOTAL
                     EDM=   .74E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11127E-03    11.260        .71503E-03** at limit **
   2  Index         2.9437        5.5684        .22132E-02    .34255E-05
   3  Normalizat    1.0476        .41859E-02    .49108E-05    .35665E-05
   4  Prefactor     .76400        .21006E-02    .36421E-05   -.13563E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5509.724     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      451 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    403.05        .66757E-02** at limit **
   2  Index         2.4719        5.5102        .50000        .38199E-08
   3  Normalizat    1.0476        .24643E-01    .24481E-05   -.13003E-04
   4  Prefactor     .76400        .12364E-01    .14081E-05   -.19376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.47194
  Normalizat = 1.04758
  Prefactor  = 0.763999
 **********
 **   18 **HESSE 
 **********

 FCN=   5509.724     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      480 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2083.7        .13351E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4719        7.0049        .50000       -.53009    
   3  Normalizat    1.0476        .64800E-01    .48962E-06   -.91453    
   4  Prefactor     .76400        .32486E-01    .28163E-06   -1.0107    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47569e-09
Minuit parameter uncertainties:
  1  0.00194755
  2  4403.48
  3  0.0648048
  4  0.0324868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/83283': 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) = 5509.72412231
delta logL = 2.16023181565e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.948e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.472e+00  4.403e+03  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  7.640e-01  3.249e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.048e+00  6.480e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.296 -2.683

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/83283/cmap_HighResolution_679968001_680227201_4FGL_J2129.1-0240_daily_bin1700.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2022-07-23 00:49:20.335431', job_id='83283', GAL2='0.76', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1658562560.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='2.16e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1700' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul 23 00:49:20 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 83283: <4FGL_J2129.1-0240_daily_bin1700> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1700> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:35:36 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:35:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:35:37 2022
Terminated at Sat Jul 23 00:49:21 2022
Results reported at Sat Jul 23 00:49:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1700 322.296 -2.6829 679968001 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2129.1-0240 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   664.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            825 sec.

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

