/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 151 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin15
RA = 322.296, Dec = -2.6829
tmin = 243216001, tmax = 243475201
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='502346', job_status='RUN', time_executed='2021-09-26 14:23:50.224312', time_epoch_executed='1632691430.22' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502346

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502346/ft1_4FGL_J2129.1-0240_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502346/ft2_4FGL_J2129.1-0240_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502346/ft1_4FGL_J2129.1-0240_daily_bin15.fits outfile=/scratch/kocevski/502346/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin15.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.38
user 1.19
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502346/ft2_4FGL_J2129.1-0240_daily_bin15.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/502346/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/502346/ft1_filtered_4FGL_J2129.1-0240_daily_bin15.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/502346/ft1_filtered_4FGL_J2129.1-0240_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/502346/ft2_4FGL_J2129.1-0240_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/502346/ltcube_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.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/502346/ft2_4FGL_J2129.1-0240_daily_bin15.fits
.....................!
real 15.20
user 14.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502346/ft1_filtered_4FGL_J2129.1-0240_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/502346/ft2_4FGL_J2129.1-0240_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/502346/ltcube_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.fits outfile=/scratch/kocevski/502346/expmap_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.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/502346/ltcube_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.fits
.....................!
real 192.51
user 185.41
sys 5.07

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/502346/ft1_filtered_4FGL_J2129.1-0240_daily_bin15.fits scfile=/scratch/kocevski/502346/ft2_4FGL_J2129.1-0240_daily_bin15.fits outfile=/scratch/kocevski/502346/cmap_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502346/ft1_filtered_4FGL_J2129.1-0240_daily_bin15.fits scfile=/scratch/kocevski/502346/ft2_4FGL_J2129.1-0240_daily_bin15.fits outfile=/scratch/kocevski/502346/cmap_HighResolution_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8184       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.4301       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.598       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.214       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.900       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6497       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.684       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.1360       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8582       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.579       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4362       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15628E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    20.188       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10910E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.208       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.708       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .12899E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83406       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92612       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=   7240.983     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2905 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8190        4.4830       -.20099E-05   -.46531E-03
   2  Prefactor     5.4319        13.239       -.28407E-05   -.77429E-04
   3  Prefactor     18.600        33.619        .96755E-06    .14609E-06
   4  Prefactor     41.217        27.706        .28958E-06   -.27433E-04
   5  Prefactor     .10000E-03    9.4569        .41417E-05** at limit **
   6  Prefactor     .10000E-03    43.198       -.20853E-05** at limit **
   7  Prefactor     22.903        17.327       -.81124E-06    .20721E-04
   8  Prefactor     4.6504        10.762       -.49820E-05   -.12562E-03
   9  Prefactor     38.683        23.656       -.17917E-06    .99262E-05
  10  Prefactor     .10000E-03    68.498        .28086E-04** at limit **
  11  Prefactor     6.1364        4.6059        .47893E-07   -.10048E-03
  12  Prefactor     1.8569        2.0014        .30014E-06   -.72189E-03
  13  Prefactor     19.559        34.493       -.14959E-04   -.21448E-04
  14  Prefactor     .10000E-03    9.5515       -.49239E-05** at limit **
  15  norm          6.4366        6.0374       -.91227E-06    .95653E-04
  16  Prefactor     .10000E-03    97.626       -.24642E-04** at limit **
  17  norm          20.179        16.758        .15495E-06    .68057E-04
  18  Prefactor     .10000E-03    9.6551        .89887E-06** at limit **
  19  Prefactor     .10000E-03    5.5157       -.44429E-07** at limit **
  20  Prefactor     .10000E-03    3.5300       -.12662E-06** at limit **
  21  Prefactor     12.199        20.351        .56010E-07    .21102E-04
  22  Prefactor     10.701        11.442        .69297E-05    .10021E-03
  23  Prefactor     .10000E-03    42.340       -.77803E-05** at limit **
  24  Normalizat    .83410        .21378        .29668E-05   -.10358E-04
  25  Prefactor     .92603        .10537        .17780E-06    .15357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.81896
  Prefactor  = 5.43192
  Prefactor  = 18.6003
  Prefactor  = 41.2165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9026
  Prefactor  = 4.65036
  Prefactor  = 38.6829
  Prefactor  = 0.0001
  Prefactor  = 6.13639
  Prefactor  = 1.85693
  Prefactor  = 19.5595
  Prefactor  = 0.0001
  norm       = 6.43658
  Prefactor  = 0.0001
  norm       = 20.1788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1992
  Prefactor  = 10.7011
  Prefactor  = 0.000100005
  Normalizat = 0.834101
  Prefactor  = 0.926034
 **********
 **   18 **HESSE 
 **********

 FCN=   7240.983     FROM HESSE     STATUS=OK           433 CALLS     3338 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8190        4.5003        .18707E-03   -1.5317    
   2  Prefactor     5.4319        13.254        .17244E-03   -1.5242    
   3  Prefactor     18.600        33.652        .92873E-04   -1.4845    
   4  Prefactor     41.217        27.698        .62441E-04   -1.4423    
   5  Prefactor     .10000E-03    9.4505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.903        17.282        .83704E-04   -1.4750    
   8  Prefactor     4.6504        10.773        .18664E-03   -1.5277    
   9  Prefactor     38.683        23.659        .64443E-04   -1.4463    
  10  Prefactor     .10000E-03    68.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.1364        4.6068        .15261E-03   -1.5212    
  12  Prefactor     1.8569        1.9765        .11672E-03   -1.5435    
  13  Prefactor     19.559        34.468        .90517E-04   -1.4823    
  14  Prefactor     .10000E-03    9.5467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4366        6.0377        .15820E-03   -1.5201    
  16  Prefactor     .10000E-03    98.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          20.179        16.758        .89142E-04   -1.4809    
  18  Prefactor     .10000E-03    10.043        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7107        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5484        .15613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.199        20.348        .11465E-03   -1.5009    
  22  Prefactor     10.701        11.449        .12244E-03   -1.5054    
  23  Prefactor     .10000E-03    44.315        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83410        .25368        .34244E-03   -.98816    
  25  Prefactor     .92603        .12651        .16932E-03   -.95237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.04858e-10
Minuit parameter uncertainties:
  1  4.50071
  2  13.261
  3  33.6861
  4  27.7065
  5  5.77558e-06
  6  6.74433e-05
  7  17.2859
  8  10.7778
  9  23.6652
  10  1.31074e-05
  11  4.60706
  12  1.97661
  13  34.5034
  14  1.50786e-06
  15  6.03824
  16  0.000438154
  17  16.762
  18  4.65739e-05
  19  2.43812e-05
  20  9.41628e-06
  21  20.3597
  22  11.4515
  23  0.000919928
  24  0.25404
  25  0.126546
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.311e-05  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.260e-01  1.265e-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.341e-01  2.540e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502346/likelihoodResults_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.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) = 7240.98340001
delta logL = -6.91814038873e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7240.98333093
delta logL = -9.97279130388e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5857       1.0000          .0000       10.000    
     3 'Normalizat'    .83413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92602       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=   7240.983     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      279 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.978        .18142E-02** at limit **
   2  Index         2.6366        6.3177        .50000       -.76805E-05
   3  Normalizat    .83410        .23728        .34244E-03    .49500E-04
   4  Prefactor     .92603        .12416        .16932E-03    .12186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.63662
  Normalizat = 0.834103
  Prefactor  = 0.926033
 **********
 **   18 **HESSE 
 **********

 FCN=   7240.983     FROM HESSE     STATUS=OK            29 CALLS      308 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.355        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6366        6.3113        .50000       -.49233    
   3  Normalizat    .83410        .23745        .13697E-04   -.98816    
   4  Prefactor     .92603        .12425        .33865E-04   -.95237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16713e-10
Minuit parameter uncertainties:
  1  0.00107932
  2  4.42246
  3  0.237751
  4  0.124291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502346': 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) = 7240.98333083
delta logL = -1.01772457128e-09

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.079e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  4.422e+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.260e-01  1.243e-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.341e-01  2.378e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/502346/cmap_HighResolution_243216001_243475201_4FGL_J2129.1-0240_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.21e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-26 14:36:33.719514', job_id='502346', GAL2='0.93', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1632692193.72', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-1.02e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='15' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:36:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0191>
Subject: Job 502346: <4FGL_J2129.1-0240_daily_bin15> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin15> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:20:24 2021
Job was executed on host(s) <bullet0191>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:21:08 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:21:08 2021
Terminated at Sun Sep 26 14:36:34 2021
Results reported at Sun Sep 26 14:36:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin15 322.296 -2.6829 243216001 243475201 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            970 sec.

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

