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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin558
RA = 322.296, Dec = -2.6829
tmin = 383961601, tmax = 384220801
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='506061', job_status='RUN', time_executed='2021-09-26 14:38:08.243544', time_epoch_executed='1632692288.24' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='558'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506061/ft1_4FGL_J2129.1-0240_daily_bin558.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506061/ft2_4FGL_J2129.1-0240_daily_bin558.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506061/ft1_4FGL_J2129.1-0240_daily_bin558.fits outfile=/scratch/kocevski/506061/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin558.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=383961601.0 tmax=384220801.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 8.63
user 8.28
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506061/ft1_filtered_4FGL_J2129.1-0240_daily_bin558.fits" evtable="EVENTS" scfile=/scratch/kocevski/506061/ft2_4FGL_J2129.1-0240_daily_bin558.fits sctable="SC_DATA" outfile=/scratch/kocevski/506061/ltcube_383961601_384220801_4FGL_J2129.1-0240_daily_bin558.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/506061/ft2_4FGL_J2129.1-0240_daily_bin558.fits
.....................!
real 12.95
user 12.49
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506061/ft1_filtered_4FGL_J2129.1-0240_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/506061/ft2_4FGL_J2129.1-0240_daily_bin558.fits sctable="SC_DATA" expcube=/scratch/kocevski/506061/ltcube_383961601_384220801_4FGL_J2129.1-0240_daily_bin558.fits outfile=/scratch/kocevski/506061/expmap_383961601_384220801_4FGL_J2129.1-0240_daily_bin558.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/506061/ltcube_383961601_384220801_4FGL_J2129.1-0240_daily_bin558.fits
.....................!
real 191.17
user 185.87
sys 4.60

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/506061/ft1_filtered_4FGL_J2129.1-0240_daily_bin558.fits scfile=/scratch/kocevski/506061/ft2_4FGL_J2129.1-0240_daily_bin558.fits outfile=/scratch/kocevski/506061/cmap_383961601_384220801_4FGL_J2129.1-0240_daily_bin558.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.57
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506061/ft1_filtered_4FGL_J2129.1-0240_daily_bin558.fits evtable="EVENTS" scfile=/scratch/kocevski/506061/ft2_4FGL_J2129.1-0240_daily_bin558.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506061/Model_4FGL_J2129.1-0240_daily_bin558.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/506061/ft1_filtered_4FGL_J2129.1-0240_daily_bin558.fits.....................!
real 51.53
user 50.20
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9713       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8507       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    75.712       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .24743E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.906       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0012       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .35312E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1620       1.0000         .10000E-03   10000.    
    14 'Prefactor '    42.705       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    54.614       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8793       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.878       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.899       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0355       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45301E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80567       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87801       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=   4691.811     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3357 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9711        3.9319        .12337E-06   -.17370E-05
   2  Prefactor     6.8503        15.789        .11454E-05    .35907E-05
   3  Prefactor     .10000E-03    66.717        .17361E-06** at limit **
   4  Prefactor     75.727        46.544        .95060E-06   -.89186E-05
   5  Prefactor     .10000E-03    15.111        .19478E-06** at limit **
   6  Prefactor     .10000E-03    29.590       -.10607E-05** at limit **
   7  Prefactor     .10000E-03    26.544        .94426E-06** at limit **
   8  Prefactor     .10000E-03    5.6877       -.52764E-07** at limit **
   9  Prefactor     .10033E-03    33.063        .31833E-05** at limit **
  10  Prefactor     43.923        49.506        .54143E-06    .11663E-03
  11  Prefactor     1.0013        7.6403        .33084E-05    .14716E-03
  12  Prefactor     .10041E-03    1.8336       -.63126E-06** at limit **
  13  Prefactor     2.1718        202.57        .19217E-05    .20507E-04
  14  Prefactor     42.703        41.011       -.30153E-06    .17568E-05
  15  norm          .10000E-03    3.5280       -.76392E-08** at limit **
  16  Prefactor     54.668        80.634        .24120E-05    .11741E-03
  17  norm          .10000E-03    7.4323        .33571E-06** at limit **
  18  Prefactor     2.8743        12.829        .14847E-05    .96190E-04
  19  Prefactor     13.879        7.9867        .15231E-06   -.77985E-04
  20  Prefactor     .10000E-03    9.5195       -.39220E-07** at limit **
  21  Prefactor     10.899        17.091        .20996E-08    .83214E-05
  22  Prefactor     8.0338        15.465        .36584E-06    .57725E-04
  23  Prefactor     .10082E-03    25.905       -.11145E-05** at limit **
  24  Normalizat    .80546        .27711       -.50081E-05   -.10597E-03
  25  Prefactor     .87813        .12694        .84649E-06   -.38736E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.97113
  Prefactor  = 6.85028
  Prefactor  = 0.0001
  Prefactor  = 75.727
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100327
  Prefactor  = 43.9231
  Prefactor  = 1.00131
  Prefactor  = 0.000100406
  Prefactor  = 2.17183
  Prefactor  = 42.7025
  norm       = 0.0001
  Prefactor  = 54.668
  norm       = 0.0001
  Prefactor  = 2.87433
  Prefactor  = 13.879
  Prefactor  = 0.0001
  Prefactor  = 10.8989
  Prefactor  = 8.03378
  Prefactor  = 0.00010082
  Normalizat = 0.805464
  Prefactor  = 0.878126
 **********
 **   18 **HESSE 
 **********

 FCN=   4691.811     FROM HESSE     STATUS=OK           437 CALLS     3794 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9711        3.9327        .13047E-03   -1.5309    
   2  Prefactor     6.8503        15.820        .15329E-03   -1.5184    
   3  Prefactor     .10000E-03    66.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     75.727        46.182        .46146E-04   -1.3965    
   5  Prefactor     .10000E-03    15.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.6989        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10033E-03    212.08        .71057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.923        47.524        .60503E-04   -1.4382    
  11  Prefactor     1.0013        8.0078        .36663E-03   -1.5508    
  12  Prefactor     .10041E-03    28.226        .15645E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.1718        189.78        .28014E-03   -1.5413    
  14  Prefactor     42.703        40.938        .61345E-04   -1.4400    
  15  norm          .10000E-03    3.5282        .12566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     54.668        81.905        .54277E-04   -1.4228    
  17  norm          .10000E-03    7.4348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.8743        12.780        .23952E-03   -1.5369    
  19  Prefactor     13.879        8.0094        .10752E-03   -1.4963    
  20  Prefactor     .10000E-03    9.5925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.899        17.084        .12136E-03   -1.5048    
  22  Prefactor     8.0338        15.447        .14144E-03   -1.5141    
  23  Prefactor     .10082E-03    31.872        .91853E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .80546        .31618        .33651E-03   -.99866    
  25  Prefactor     .87813        .14946        .16575E-03   -.96910    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59022e-08
Minuit parameter uncertainties:
  1  3.93299
  2  15.8301
  3  0.000118506
  4  46.204
  5  6.91196e-06
  6  0.000153729
  7  0.000185133
  8  2.18561e-06
  9  0.0167227
  10  47.5647
  11  5.66408
  12  0.00677154
  13  40.7371
  14  40.9651
  15  1.03325e-07
  16  82.074
  17  1.28657e-05
  18  12.126
  19  8.01002
  20  1.56474e-05
  21  17.0917
  22  15.4546
  23  0.0102325
  24  0.316909
  25  0.14953
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.392e+01  4.756e+01  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.781e-01  1.495e-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:  8.055e-01  3.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 5.58e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.53e-05

TS (Fixed Index): 1.28
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 1.86e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506061/likelihoodResults_383961601_384220801_4FGL_J2129.1-0240_daily_bin558.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4691.71930474
delta logL = 0.0915057079865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4691.64724912
delta logL = 0.163561323229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40811       1.0000         .10000E-03   10000.    
     2 'Index     '    5.7880       1.0000          .0000       10.000    
     3 'Normalizat'    .71279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91790       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=   4691.647     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      356 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .42666        5.6045        .80850E-02    .80864E-03
   2  Index         5.7621        2.9505        .13639        .93096E-04
   3  Normalizat    .71374        .57957E-01    .80394E-01    .44745E-04
   4  Prefactor     .91741        .29830E-01    .45233E-01    .93990E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.426657
  Index      = 5.7621
  Normalizat = 0.713741
  Prefactor  = 0.917407
 **********
 **   18 **HESSE 
 **********

 FCN=   4691.647     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      389 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .42666        14.183        .36702E-03   -1.5577    
   2  Index         5.7621        7.6353        .49586E-02    .15302    
   3  Normalizat    .71374        .22101        .35596E-03   -1.0335    
   4  Prefactor     .91741        .11112        .16261E-03   -.95535    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.20916e-08
Minuit parameter uncertainties:
  1  4.92054
  2  6.30915
  3  0.22129
  4  0.111148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506061': 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) = 4691.64722857
delta logL = 0.16358187243

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.267e-01  4.921e+00  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  5.762e+00  6.309e+00  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:  9.174e-01  1.111e-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:  7.137e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.81
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 5.76 +/- 6.31
Photon Flux (Free Index): 1.05e-07 +/- 8.52e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.21e-05

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/506061/cmap_HighResolution_383961601_384220801_4FGL_J2129.1-0240_daily_bin558.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='5.58e-08', energy_flux2='1.32e-05', photon_flux_error='6.04e-08', dlogl='1.64e-01', energy_flux='1.41e-05', photon_flux2='1.05e-07', job_status='DONE', time_completed='2021-09-26 14:49:17.568535', photon_index_error2='6.31', photon_index2='5.76', ts='1.28', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.86e-07', energy_flux_error2='1.21e-05', EG='0.81', time_epoch_completed='1632692957.57', return_code='0', job_id='506061', GAL2='0.92', EG2='0.71', return_code2='102', energy_flux_error='1.53e-05', photon_flux_error2='8.52e-08', ts2='1.81', photon_index='2.64' WHERE bin_id='558' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:49:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 506061: <4FGL_J2129.1-0240_daily_bin558> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin558> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 14:35:22 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:36: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:36:02 2021
Terminated at Sun Sep 26 14:49:18 2021
Results reported at Sun Sep 26 14:49:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin558 322.296 -2.6829 383961601 384220801 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 :                                   666.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            836 sec.

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

