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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1657
RA = 322.296, Dec = -2.6829
tmin = 668822401, tmax = 669081601
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='530604', job_status='RUN', time_executed='2022-03-16 01:19:31.744983', time_epoch_executed='1647418771.75' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1657'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530604

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530604/ft1_4FGL_J2129.1-0240_daily_bin1657.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530604/ft1_4FGL_J2129.1-0240_daily_bin1657.fits outfile=/scratch/kocevski/530604/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1657.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=668822401.0 tmax=669081601.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.26
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.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/530604/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1657.fits evtable="EVENTS" outfile="/scratch/kocevski/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.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.48
user 0.28
sys 0.15
Number of photons that survived the gtmktime cut: 544

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits" evtable="EVENTS" scfile=/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits sctable="SC_DATA" outfile=/scratch/kocevski/530604/ltcube_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.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/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits
.....................!
real 10.26
user 9.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits sctable="SC_DATA" expcube=/scratch/kocevski/530604/ltcube_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.fits outfile=/scratch/kocevski/530604/expmap_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.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/530604/ltcube_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.fits
.....................!
real 153.01
user 148.68
sys 3.96

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/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits scfile=/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits outfile=/scratch/kocevski/530604/cmap_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.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.50
user 0.34
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits scfile=/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits outfile=/scratch/kocevski/530604/cmap_HighResolution_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.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 0.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits evtable="EVENTS" scfile=/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/530604/Model_4FGL_J2129.1-0240_daily_bin1657.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/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits.....................!
real 50.50
user 49.15
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits', '/scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits', expMap='/scratch/kocevski/530604/expmap_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.fits', expCube='/scratch/kocevski/530604/ltcube_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/530604/Model_4FGL_J2129.1-0240_daily_bin1657.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/530604/ft1_filtered_4FGL_J2129.1-0240_daily_bin1657.fits
Spacecraft file(s): /scratch/kocevski/530604/ft2_4FGL_J2129.1-0240_daily_bin1657.fits
Exposure map: /scratch/kocevski/530604/expmap_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.fits
Exposure cube: /scratch/kocevski/530604/ltcube_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/530604/Model_4FGL_J2129.1-0240_daily_bin1657.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) = 6038.14386609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    53.197       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7567       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .58675E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2263       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82096       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=   6038.139     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2832 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9344        6.7528        .10828E-07   -.18045E-03
   2  Prefactor     .10000E-03    19.233        .46375E-06** at limit **
   3  Prefactor     .10001E-03    102.75        .80269E-06** at limit **
   4  Prefactor     .10000E-03    24.244       -.79889E-06** at limit **
   5  Prefactor     .10000E-03    10.542       -.40953E-07** at limit **
   6  Prefactor     53.158        76.844        .32960E-05   -.10146E-03
   7  Prefactor     8.7581        14.791        .14692E-06   -.36240E-05
   8  Prefactor     .10000E-03    5.8610        .17895E-07** at limit **
   9  Prefactor     .10000E-03    124.68       -.12062E-05** at limit **
  10  Prefactor     .10000E-03    84.383       -.24151E-05** at limit **
  11  Prefactor     .10000E-03    2.2897        .26917E-07** at limit **
  12  Prefactor     3.4176        2.3720       -.19931E-07   -.15008E-03
  13  Prefactor     .10000E-03    29.727        .72571E-06** at limit **
  14  Prefactor     .10000E-03    19.284        .39763E-06** at limit **
  15  norm          .10000E-03    6.9491        .70515E-07** at limit **
  16  Prefactor     .10000E-03    64.364       -.15015E-05** at limit **
  17  norm          .10000E-03    19.515        .17624E-06** at limit **
  18  Prefactor     .10000E-03    2.6602        .72476E-07** at limit **
  19  Prefactor     2.0274        5.9027        .72558E-05    .47026E-04
  20  Prefactor     .10000E-03    7.2128        .29090E-07** at limit **
  21  Prefactor     .10000E-03    8.5726        .62238E-07** at limit **
  22  Prefactor     .10000E-03    45.649        .12705E-05** at limit **
  23  Prefactor     .10000E-03    25.595       -.20833E-06** at limit **
  24  Normalizat    1.2263        .23630       -.56605E-06    .40754E-05
  25  Prefactor     .82082        .11441       -.49786E-06   -.19000E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.93435
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.1578
  Prefactor  = 8.75808
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 3.41759
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.02742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22627
  Prefactor  = 0.820822
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.139     FROM HESSE     STATUS=OK           411 CALLS     3243 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9344        6.7543        .12715E-03   -1.5077    
   2  Prefactor     .10000E-03    19.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    103.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     53.158        77.089        .54991E-04   -1.4248    
   7  Prefactor     8.7581        14.786        .13545E-03   -1.5116    
   8  Prefactor     .10000E-03    5.8819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    129.85        .42152E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    85.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2999        .11482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.4176        2.3735        .95708E-04   -1.5338    
  13  Prefactor     .10000E-03    29.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.9879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    19.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6677        .12377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.0274        5.9192        .14534E-02   -1.5423    
  20  Prefactor     .10000E-03    7.2448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    47.039        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2263        .28844        .30481E-03   -.85795    
  25  Prefactor     .82082        .13994        .18004E-03   -.98965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56451e-10
Minuit parameter uncertainties:
  1  6.75485
  2  3.64798e-05
  3  0.00220878
  4  0.000125822
  5  1.19507e-05
  6  77.2343
  7  14.7923
  8  9.90456e-06
  9  0.000984472
  10  0.000429964
  11  5.99761e-06
  12  2.37359
  13  0.000283648
  14  1.96635e-05
  15  6.56024e-06
  16  0.000825822
  17  9.03141e-05
  18  8.07534e-06
  19  5.92093
  20  2.49704e-05
  21  1.13328e-05
  22  8.03441e-05
  23  0.000115587
  24  0.288821
  25  0.139999
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.300e-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:  8.208e-01  1.400e-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.226e+00  2.888e-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.23e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530604/likelihoodResults_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.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) = 6038.13903681
delta logL = -5.57799266971e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6038.13898113
delta logL = -9.85055521596e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5897       1.0000          .0000       10.000    
     3 'Normalizat'    1.2263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82083       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.

 FCN=   6038.139     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      244 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    7489.3        .90712E-02** at limit **
   2  Index         2.6595        5.2965        .50000       -.96379E-05
   3  Normalizat    1.2263        .53072E-01    .68891E-01   -.33112E-03
   4  Prefactor     .82083        .26304E-01    .43988E-01   -.12710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100024
  Index      = 2.65946
  Normalizat = 1.22626
  Prefactor  = 0.820826
 **********
 **   18 **HESSE 
 **********

 FCN=   6038.139     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    9736.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6595        6.0343        .50000       -.48715    
   3  Normalizat    1.2263        .13192        .30481E-03   -.85795    
   4  Prefactor     .82083        .65502E-01    .18004E-03   -.98965    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.53805e-09
Minuit parameter uncertainties:
  1  0.0411315
  2  62.4805
  3  0.131953
  4  0.0655078
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530604': 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) = 6038.13898098
delta logL = 4.70727172797e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.113e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.659e+00  6.248e+01  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:  8.208e-01  6.551e-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.226e+00  1.320e-01  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/530604/cmap_HighResolution_668822401_669081601_4FGL_J2129.1-0240_daily_bin1657.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.68e-03', job_status='DONE', photon_flux_upper_limit='1.23e-07', time_completed='2022-03-16 01:28:55.419970', job_id='530604', GAL2='0.82', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1647419335.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='4.71e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1657' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar 16 01:28:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 530604: <4FGL_J2129.1-0240_daily_bin1657> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1657> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Mar 16 01:15:38 2022
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar 16 01:16:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar 16 01:16:50 2022
Terminated at Wed Mar 16 01:28:57 2022
Results reported at Wed Mar 16 01:28:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1657 322.296 -2.6829 668822401 669081601 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 :                                   564.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            799 sec.

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

