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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin532
RA = 322.296, Dec = -2.6829
tmin = 377222401, tmax = 377481601
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='506017', job_status='RUN', time_executed='2021-09-26 14:38:17.056229', time_epoch_executed='1632692297.06' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='532'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506017

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506017/ft1_4FGL_J2129.1-0240_daily_bin532.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506017/ft2_4FGL_J2129.1-0240_daily_bin532.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506017/ft1_4FGL_J2129.1-0240_daily_bin532.fits outfile=/scratch/kocevski/506017/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin532.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=377222401.0 tmax=377481601.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.44
user 3.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506017/ft1_filtered_4FGL_J2129.1-0240_daily_bin532.fits" evtable="EVENTS" scfile=/scratch/kocevski/506017/ft2_4FGL_J2129.1-0240_daily_bin532.fits sctable="SC_DATA" outfile=/scratch/kocevski/506017/ltcube_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.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/506017/ft2_4FGL_J2129.1-0240_daily_bin532.fits
.....................!
real 12.67
user 12.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506017/ft1_filtered_4FGL_J2129.1-0240_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/506017/ft2_4FGL_J2129.1-0240_daily_bin532.fits sctable="SC_DATA" expcube=/scratch/kocevski/506017/ltcube_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.fits outfile=/scratch/kocevski/506017/expmap_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.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/506017/ltcube_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.fits
.....................!
real 191.21
user 185.63
sys 5.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/506017/ft1_filtered_4FGL_J2129.1-0240_daily_bin532.fits scfile=/scratch/kocevski/506017/ft2_4FGL_J2129.1-0240_daily_bin532.fits outfile=/scratch/kocevski/506017/cmap_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506017/ft1_filtered_4FGL_J2129.1-0240_daily_bin532.fits scfile=/scratch/kocevski/506017/ft2_4FGL_J2129.1-0240_daily_bin532.fits outfile=/scratch/kocevski/506017/cmap_HighResolution_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.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/506017/ft1_filtered_4FGL_J2129.1-0240_daily_bin532.fits evtable="EVENTS" scfile=/scratch/kocevski/506017/ft2_4FGL_J2129.1-0240_daily_bin532.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506017/Model_4FGL_J2129.1-0240_daily_bin532.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/506017/ft1_filtered_4FGL_J2129.1-0240_daily_bin532.fits.....................!
real 66.75
user 65.07
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.130       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.764       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3057       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    30.092       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6472       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13307E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    34.362       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13070E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .52574E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10464E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.601       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1971       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95679       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=   6463.780     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2922 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2528       -.98267E-07** at limit **
   2  Prefactor     36.836        24.092       -.45089E-05    .66710E-04
   3  Prefactor     14.933        49.011       -.39765E-04    .15255E-04
   4  Prefactor     .10000E-03    13.496       -.51624E-05** at limit **
   5  Prefactor     32.209        22.280       -.19163E-05    .33794E-04
   6  Prefactor     .10000E-03    21.010       -.53896E-05** at limit **
   7  Prefactor     27.781        33.590       -.14602E-04    .77838E-04
   8  Prefactor     7.2940        16.706       -.79080E-05    .21895E-04
   9  Prefactor     .10000E-03    8.2918       -.25975E-06** at limit **
  10  Prefactor     30.126        34.313       -.14469E-04    .93404E-04
  11  Prefactor     4.6495        5.0693        .11023E-05    .15153E-03
  12  Prefactor     .10000E-03    .77382        .25433E-06** at limit **
  13  Prefactor     .10000E-03    33.474       -.38781E-04** at limit **
  14  Prefactor     .10000E-03    11.468        .13531E-05** at limit **
  15  norm          .10000E-03    5.0369       -.70758E-07** at limit **
  16  Prefactor     .10000E-03    15.753        .79878E-05** at limit **
  17  norm          34.386        26.044       -.24356E-05   -.23899E-04
  18  Prefactor     .10000E-03    3.0864       -.22187E-06** at limit **
  19  Prefactor     .10015E-03    4.9760       -.30129E-05** at limit **
  20  Prefactor     .10167E-03    9.7782       -.17891E-05** at limit **
  21  Prefactor     .10000E-03    31.757        .41543E-04** at limit **
  22  Prefactor     .10000E-03    8.0140       -.39807E-07** at limit **
  23  Prefactor     21.605        19.149        .47255E-05    .62213E-04
  24  Normalizat    1.1972        .25745        .77491E-05    .36872E-03
  25  Prefactor     .95687        .12277        .14886E-05    .67398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 36.8361
  Prefactor  = 14.9326
  Prefactor  = 0.0001
  Prefactor  = 32.209
  Prefactor  = 0.0001
  Prefactor  = 27.7811
  Prefactor  = 7.29398
  Prefactor  = 0.0001
  Prefactor  = 30.1258
  Prefactor  = 4.64955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 34.386
  Prefactor  = 0.0001
  Prefactor  = 0.000100151
  Prefactor  = 0.000101671
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.6048
  Normalizat = 1.19718
  Prefactor  = 0.95687
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.780     FROM HESSE     STATUS=OK           429 CALLS     3351 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3707        .32363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     36.836        24.143        .66023E-04   -1.4493    
   3  Prefactor     14.933        49.148        .10297E-03   -1.4935    
   4  Prefactor     .10000E-03    13.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.209        22.281        .70600E-04   -1.4572    
   6  Prefactor     .10000E-03    21.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     27.781        33.539        .76032E-04   -1.4653    
   8  Prefactor     7.2940        16.657        .14839E-03   -1.5168    
   9  Prefactor     .10000E-03    8.3011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.126        34.326        .73039E-04   -1.4610    
  11  Prefactor     4.6495        5.0668        .18254E-03   -1.5277    
  12  Prefactor     .10000E-03    .77722        .69007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.0515        .17623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          34.386        26.084        .68362E-04   -1.4535    
  18  Prefactor     .10000E-03    3.1023        .13793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10015E-03    24.578        .34460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10167E-03    14.600        .73014E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    31.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.0345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.605        19.170        .86181E-04   -1.4778    
  24  Normalizat    1.1972        .30825        .33881E-03   -.86690    
  25  Prefactor     .95687        .14794        .18742E-03   -.94181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51395e-09
Minuit parameter uncertainties:
  1  7.88305e-06
  2  24.149
  3  49.2813
  4  1.98385e-05
  5  22.2868
  6  4.24053e-05
  7  33.5617
  8  16.6674
  9  1.94901e-05
  10  34.3486
  11  5.06722
  12  9.90773e-06
  13  1.53653e-05
  14  2.70892e-06
  15  5.15277e-06
  16  2.46347e-05
  17  26.0925
  18  1.44262e-05
  19  0.00385346
  20  0.00988136
  21  0.000417228
  22  5.74795e-05
  23  19.1757
  24  0.308717
  25  0.148001
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.013e+01  3.435e+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:  9.569e-01  1.480e-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.197e+00  3.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 3.83e-08 +/- 4.36e-08
Energy Flux (Fixed Index): 9.70e-06 +/- 1.11e-05

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

Saving results to:
/scratch/kocevski/506017/likelihoodResults_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.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) = 6463.69213998
delta logL = 0.0879501148611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.68727683
delta logL = 0.0928132664867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.655       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1681       1.0000          .0000       10.000    
     3 'Normalizat'    1.2172       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94998       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=   6463.687     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      300 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.656        42.554        .66196E-04   -.72063E-04
   2  Index         2.1681        .97897        .13749E-01   -.20981E-04
   3  Normalizat    1.2170        .29382        .33635E-03    .27074E-04
   4  Prefactor     .95007        .14702        .18799E-03    .54065E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.6556
  Index      = 2.16814
  Normalizat = 1.21704
  Prefactor  = 0.950068
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.687     FROM HESSE     STATUS=OK            25 CALLS      325 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.656        42.495        .13239E-04   -1.4496    
   2  Index         2.1681        .97743        .54994E-03   -.60210    
   3  Normalizat    1.2170        .29398        .13454E-04   -.86078    
   4  Prefactor     .95007        .14711        .75195E-05   -.94413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14182e-11
Minuit parameter uncertainties:
  1  42.5298
  2  0.986836
  3  0.294377
  4  0.147175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506017': 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): 0
logL (Free Index) = 6463.68727661
delta logL = 0.0928134859196

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.666e+01  4.253e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.168e+00  9.868e-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:  9.501e-01  1.472e-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.217e+00  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.42
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 2.17 +/- 0.99
Photon Flux (Free Index): 2.52e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.68e-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/506017/cmap_HighResolution_377222401_377481601_4FGL_J2129.1-0240_daily_bin532.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='3.83e-08', energy_flux2='1.20e-05', photon_flux_error='4.36e-08', dlogl='9.28e-02', energy_flux='9.70e-06', photon_flux2='2.52e-08', job_status='DONE', time_completed='2021-09-26 14:50:18.278750', photon_index_error2='0.99', photon_index2='2.17', ts='1.24', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='1.68e-05', EG='1.20', time_epoch_completed='1632693018.28', return_code='0', job_id='506017', GAL2='0.95', EG2='1.22', return_code2='0', energy_flux_error='1.11e-05', photon_flux_error2='4.12e-08', ts2='1.42', photon_index='2.64' WHERE bin_id='532' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:50:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 506017: <4FGL_J2129.1-0240_daily_bin532> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin532 322.296 -2.6829 377222401 377481601 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 :                                   720.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            901 sec.

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

