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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin898
RA = 322.296, Dec = -2.6829
tmin = 472089601, tmax = 472348801
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='508925', job_status='RUN', time_executed='2021-09-26 14:50:14.169861', time_epoch_executed='1632693014.17' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='898'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/508925

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/508925/ft1_4FGL_J2129.1-0240_daily_bin898.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/508925/ft2_4FGL_J2129.1-0240_daily_bin898.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/508925/ft1_4FGL_J2129.1-0240_daily_bin898.fits outfile=/scratch/kocevski/508925/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin898.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=472089601.0 tmax=472348801.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.49
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/508925/ft2_4FGL_J2129.1-0240_daily_bin898.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/508925/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin898.fits evtable="EVENTS" outfile="/scratch/kocevski/508925/ft1_filtered_4FGL_J2129.1-0240_daily_bin898.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/508925/ft1_filtered_4FGL_J2129.1-0240_daily_bin898.fits" evtable="EVENTS" scfile=/scratch/kocevski/508925/ft2_4FGL_J2129.1-0240_daily_bin898.fits sctable="SC_DATA" outfile=/scratch/kocevski/508925/ltcube_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.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/508925/ft2_4FGL_J2129.1-0240_daily_bin898.fits
.....................!
real 14.01
user 13.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/508925/ft1_filtered_4FGL_J2129.1-0240_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/508925/ft2_4FGL_J2129.1-0240_daily_bin898.fits sctable="SC_DATA" expcube=/scratch/kocevski/508925/ltcube_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.fits outfile=/scratch/kocevski/508925/expmap_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.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/508925/ltcube_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.fits
.....................!
real 192.21
user 186.41
sys 5.37

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/508925/ft1_filtered_4FGL_J2129.1-0240_daily_bin898.fits scfile=/scratch/kocevski/508925/ft2_4FGL_J2129.1-0240_daily_bin898.fits outfile=/scratch/kocevski/508925/cmap_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/508925/ft1_filtered_4FGL_J2129.1-0240_daily_bin898.fits scfile=/scratch/kocevski/508925/ft2_4FGL_J2129.1-0240_daily_bin898.fits outfile=/scratch/kocevski/508925/cmap_HighResolution_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/508925/ft1_filtered_4FGL_J2129.1-0240_daily_bin898.fits evtable="EVENTS" scfile=/scratch/kocevski/508925/ft2_4FGL_J2129.1-0240_daily_bin898.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/508925/Model_4FGL_J2129.1-0240_daily_bin898.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/508925/ft1_filtered_4FGL_J2129.1-0240_daily_bin898.fits.....................!
real 64.74
user 63.38
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4967       1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.260       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.173       1.0000         .10000E-03   10000.    
     4 'Prefactor '    59.582       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13403E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.314       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.516       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .77195E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.853       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.7726       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3943       1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .51864E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9478       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2278       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.875       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.257       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1807       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71169       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=   6031.716     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2916 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4963        6.6360        .37959E-07    .10447E-03
   2  Prefactor     35.248        21.634        .28766E-07    .42066E-04
   3  Prefactor     29.178        36.690       -.52684E-06   -.45843E-04
   4  Prefactor     59.598        37.351       -.12510E-05   -.19633E-03
   5  Prefactor     .10000E-03    34.232       -.17385E-05** at limit **
   6  Prefactor     23.317        42.485       -.54657E-06   -.17760E-04
   7  Prefactor     39.489        24.270        .75940E-06    .10487E-03
   8  Prefactor     .10017E-03    30.689        .69903E-05** at limit **
   9  Prefactor     16.851        23.153        .59962E-06    .96588E-04
  10  Prefactor     .10000E-03    31.478        .20327E-05** at limit **
  11  Prefactor     1.7742        5.1350        .64309E-06    .36081E-03
  12  Prefactor     1.3912        2.2183       -.20651E-06   -.88285E-04
  13  Prefactor     27.289        29.629        .29536E-05    .42709E-03
  14  Prefactor     .10000E-03    17.423       -.16608E-05** at limit **
  15  norm          .10000E-03    4.7325        .13332E-06** at limit **
  16  Prefactor     .10000E-03    19.253        .14171E-05** at limit **
  17  norm          .10000E-03    6.0547       -.24552E-07** at limit **
  18  Prefactor     .10000E-03    7.9856        .28738E-05** at limit **
  19  Prefactor     6.9441        8.2993       -.15536E-06    .57025E-03
  20  Prefactor     2.2117        25.536       -.10476E-05   -.11941E-04
  21  Prefactor     12.863        23.883        .37982E-06    .50700E-04
  22  Prefactor     .10000E-03    11.669        .25668E-06** at limit **
  23  Prefactor     26.233        21.934        .95882E-07    .37224E-04
  24  Normalizat    1.1812        .24884        .13712E-06    .14752E-03
  25  Prefactor     .71140        .11626        .15476E-06    .12401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.49627
  Prefactor  = 35.2479
  Prefactor  = 29.1783
  Prefactor  = 59.5979
  Prefactor  = 0.000100001
  Prefactor  = 23.3175
  Prefactor  = 39.4894
  Prefactor  = 0.000100172
  Prefactor  = 16.8508
  Prefactor  = 0.000100002
  Prefactor  = 1.77423
  Prefactor  = 1.39123
  Prefactor  = 27.2892
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.94412
  Prefactor  = 2.21168
  Prefactor  = 12.8632
  Prefactor  = 0.0001
  Prefactor  = 26.2331
  Normalizat = 1.18116
  Prefactor  = 0.711399
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.716     FROM HESSE     STATUS=OK           429 CALLS     3345 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4963        6.6335        .14648E-03   -1.5160    
   2  Prefactor     35.248        21.648        .67488E-04   -1.4520    
   3  Prefactor     29.178        36.749        .74177E-04   -1.4627    
   4  Prefactor     59.598        37.413        .51978E-04   -1.4162    
   5  Prefactor     .10000E-03    34.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     23.317        42.502        .82958E-04   -1.4742    
   7  Prefactor     39.489        23.496        .63763E-04   -1.4450    
   8  Prefactor     .10017E-03    55.028        .46171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.851        23.206        .97561E-04   -1.4887    
  10  Prefactor     .10000E-03    31.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.7742        5.1644        .28975E-03   -1.5442    
  12  Prefactor     1.3912        2.1831        .13720E-03   -1.5472    
  13  Prefactor     27.289        30.705        .76644E-04   -1.4663    
  14  Prefactor     .10000E-03    17.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.7537        .16503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.371        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.0630        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.158        .33991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9441        8.5858        .76101E-03   -1.5181    
  20  Prefactor     2.2117        25.266        .27546E-03   -1.5411    
  21  Prefactor     12.863        23.855        .11164E-03   -1.4991    
  22  Prefactor     .10000E-03    11.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     26.233        21.938        .78179E-04   -1.4683    
  24  Normalizat    1.1812        .29822        .30907E-03   -.87187    
  25  Prefactor     .71140        .13942        .18949E-03   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61893e-09
Minuit parameter uncertainties:
  1  6.63419
  2  21.6527
  3  36.7772
  4  37.4282
  5  0.000305742
  6  42.5574
  7  23.5012
  8  0.00615347
  9  23.2183
  10  0.000509576
  11  5.16572
  12  2.1832
  13  30.7226
  14  0.000336547
  15  1.36859e-05
  16  0.000282963
  17  4.72187e-06
  18  0.000111154
  19  8.58735
  20  14.9582
  21  23.8728
  22  4.74508e-05
  23  21.9445
  24  0.298648
  25  0.139484
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  5.096e-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.114e-01  1.395e-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.181e+00  2.986e-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.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/508925/likelihoodResults_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.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) = 6031.71573561
delta logL = -0.00015015642748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6031.71558624
delta logL = -7.84049916547e-07

Fit tolerance = 1e-08

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

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

 FCN=   6031.716     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10438E-03    15.514        .18142E-01** at limit **
   2  Index         2.9841        5.6109        .50000        .10409E-04
   3  Normalizat    1.1812        .47396E-02    .30906E-03    .61393E-04
   4  Prefactor     .71140        .23263E-02    .18949E-03    .66955E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104381
  Index      = 2.9841
  Normalizat = 1.18116
  Prefactor  = 0.711399
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.716     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10438E-03    114.06        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9841        5.3728        .50000       -.41499    
   3  Normalizat    1.1812        .12825E-01    .12363E-04   -.87187    
   4  Prefactor     .71140        .62947E-02    .75797E-05   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79082e-09
Minuit parameter uncertainties:
  1  0.0447936
  2  412.289
  3  0.0128253
  4  0.00629474
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/508925': 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) = 6031.71558605
delta logL = -5.99156010139e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.044e-04  4.479e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.984e+00  4.123e+02  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.114e-01  6.295e-03  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.181e+00  1.283e-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/508925/cmap_HighResolution_472089601_472348801_4FGL_J2129.1-0240_daily_bin898.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.84e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-26 15:01:46.743660', job_id='508925', GAL2='0.71', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632693706.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='-5.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='898' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 15:01:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 508925: <4FGL_J2129.1-0240_daily_bin898> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin898> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep 26 14:45:13 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:47:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 14:47:02 2021
Terminated at Sun Sep 26 15:01:47 2021
Results reported at Sun Sep 26 15:01:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin898 322.296 -2.6829 472089601 472348801 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 :                                   691.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            994 sec.

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

