/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 117 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 = 7683
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin378
RA = 322.296, Dec = -2.6829
tmin = 337305601, tmax = 337564801
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='504736', job_status='RUN', time_executed='2021-09-26 14:34:00.182991', time_epoch_executed='1632692040.18' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='378'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504736/ft1_4FGL_J2129.1-0240_daily_bin378.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504736/ft2_4FGL_J2129.1-0240_daily_bin378.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504736/ft1_4FGL_J2129.1-0240_daily_bin378.fits outfile=/scratch/kocevski/504736/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin378.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=337305601.0 tmax=337564801.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 7.54
user 7.24
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504736/ft1_filtered_4FGL_J2129.1-0240_daily_bin378.fits" evtable="EVENTS" scfile=/scratch/kocevski/504736/ft2_4FGL_J2129.1-0240_daily_bin378.fits sctable="SC_DATA" outfile=/scratch/kocevski/504736/ltcube_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.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/504736/ft2_4FGL_J2129.1-0240_daily_bin378.fits
.....................!
real 12.54
user 12.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504736/ft1_filtered_4FGL_J2129.1-0240_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/504736/ft2_4FGL_J2129.1-0240_daily_bin378.fits sctable="SC_DATA" expcube=/scratch/kocevski/504736/ltcube_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.fits outfile=/scratch/kocevski/504736/expmap_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.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/504736/ltcube_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.fits
.....................!
real 191.19
user 185.62
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/504736/ft1_filtered_4FGL_J2129.1-0240_daily_bin378.fits scfile=/scratch/kocevski/504736/ft2_4FGL_J2129.1-0240_daily_bin378.fits outfile=/scratch/kocevski/504736/cmap_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504736/ft1_filtered_4FGL_J2129.1-0240_daily_bin378.fits scfile=/scratch/kocevski/504736/ft2_4FGL_J2129.1-0240_daily_bin378.fits outfile=/scratch/kocevski/504736/cmap_HighResolution_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.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.62
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504736/ft1_filtered_4FGL_J2129.1-0240_daily_bin378.fits evtable="EVENTS" scfile=/scratch/kocevski/504736/ft2_4FGL_J2129.1-0240_daily_bin378.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504736/Model_4FGL_J2129.1-0240_daily_bin378.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/504736/ft1_filtered_4FGL_J2129.1-0240_daily_bin378.fits.....................!
real 62.47
user 61.02
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.487       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10173E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.235       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.313       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10966E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.496       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15312       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3702       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11817E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.574       1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.505       1.0000         .10000E-03   10000.    
    17 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.565       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3661       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1916       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86706       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=   6067.977     FROM MIGRAD    STATUS=CONVERGED   1029 CALLS     3313 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9981        .10721E-02** at limit **
   2  Prefactor     15.482        17.638        .10178E-03    .78193E-06
   3  Prefactor     .10000E-03    41.206        .18142E-02** at limit **
   4  Prefactor     13.313        48.939        .11010E-03   -.38825E-04
   5  Prefactor     29.286        38.488        .73999E-04   -.10803E-03
   6  Prefactor     .10000E-03    17.025        .18142E-02** at limit **
   7  Prefactor     17.488        16.659        .95753E-04    .35619E-06
   8  Prefactor     .10000E-03    13.651        .18142E-02** at limit **
   9  Prefactor     .90458E-01    32.999        .10762        .61650E-04
  10  Prefactor     .10000E-03    9.6414        .18142E-02** at limit **
  11  Prefactor     6.3705        5.1388        .15259E-03   -.49992E-04
  12  Prefactor     .10000E-03    .88171        .70877E-03** at limit **
  13  Prefactor     .10000E-03    52.424        .18142E-02** at limit **
  14  Prefactor     30.522        36.955        .72462E-04   -.80046E-04
  15  norm          .10000E-03    3.3547        .13927E-02** at limit **
  16  Prefactor     10.492        46.013        .12362E-03   -.33660E-04
  17  norm          .10000E-03    11.084        .18142E-02** at limit **
  18  Prefactor     .10000E-03    3.3721        .13949E-02** at limit **
  19  Prefactor     .10000E-03    1.2316        .84363E-03** at limit **
  20  Prefactor     13.565        12.935        .10875E-03   -.10611E-03
  21  Prefactor     .10000E-03    8.2023        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.8244        .18142E-02** at limit **
  23  Prefactor     6.3677        20.159        .15908E-03    .90046E-05
  24  Normalizat    1.1919        .28264        .30371E-03   -.50499E-03
  25  Prefactor     .86702        .13894        .18056E-03   -.53335E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.4825
  Prefactor  = 0.0001
  Prefactor  = 13.3127
  Prefactor  = 29.2856
  Prefactor  = 0.0001
  Prefactor  = 17.4882
  Prefactor  = 0.0001
  Prefactor  = 0.0904576
  Prefactor  = 0.0001
  Prefactor  = 6.37046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.522
  norm       = 0.0001
  Prefactor  = 10.4923
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5645
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.3677
  Normalizat = 1.19187
  Prefactor  = 0.867023
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.977     FROM HESSE     STATUS=OK           411 CALLS     3724 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9982        .21441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.482        17.636        .40710E-05   -1.4921    
   3  Prefactor     .10000E-03    41.209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     13.313        48.905        .44040E-05   -1.4978    
   5  Prefactor     29.286        38.475        .14800E-04   -1.4625    
   6  Prefactor     .10000E-03    17.025        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.488        16.658        .19151E-04   -1.4871    
   8  Prefactor     .10000E-03    13.655        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .90458E-01    30.858        .11232       -1.5648    
  10  Prefactor     .10000E-03    9.6415        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3705        5.1386        .61037E-05   -1.5203    
  12  Prefactor     .10000E-03    .88178        .14175E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    52.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.522        36.954        .14492E-04   -1.4602    
  15  norm          .10000E-03    3.3548        .27853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.492        45.980        .49447E-05   -1.5060    
  17  norm          .10000E-03    11.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.3722        .27897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.2316        .16873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.565        12.934        .43501E-05   -1.4971    
  21  Prefactor     .10000E-03    8.2026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.8245        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3677        20.157        .63632E-05   -1.5203    
  24  Normalizat    1.1919        .28282        .60741E-04   -.86855    
  25  Prefactor     .86702        .13906        .36111E-04   -.97303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.54966e-10
Minuit parameter uncertainties:
  1  3.29594e-06
  2  17.6414
  3  9.53062e-05
  4  49.0529
  5  38.5078
  6  5.97895e-06
  7  16.6624
  8  1.13883e-05
  9  3.34137
  10  1.46496e-05
  11  5.13892
  12  1.29189e-05
  13  0.0003234
  14  36.9819
  15  1.54501e-06
  16  43.9858
  17  5.11158e-06
  18  4.39451e-06
  19  8.46535e-07
  20  12.9364
  21  3.35561e-06
  22  2.31913e-05
  23  20.178
  24  0.28318
  25  0.139112
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.465e-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:  8.670e-01  1.391e-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.192e+00  2.832e-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: 6.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504736/likelihoodResults_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.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) = 6067.97771105
delta logL = -0.000491613845043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6067.97722415
delta logL = -4.70442591904e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6211       1.0000          .0000       10.000    
     3 'Normalizat'    1.1920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86674       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=   6067.977     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      259 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.847        .18142E-01** at limit **
   2  Index         1.9950        8.9068        .50000        .18144E-06
   3  Normalizat    1.1919        .12233E-01    .30370E-03    .11043E-04
   4  Prefactor     .86702        .63482E-02    .18056E-03    .22164E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99496
  Normalizat = 1.19187
  Prefactor  = 0.867022
 **********
 **   18 **HESSE 
 **********

 FCN=   6067.977     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      288 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    370.67        .26615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9950        7.3880        .50000       -.64476    
   3  Normalizat    1.1919        .32893E-01    .12148E-04   -.86854    
   4  Prefactor     .86702        .17071E-01    .72222E-05   -.97303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.32771e-09
Minuit parameter uncertainties:
  1  0.000255392
  2  1291.98
  3  0.0328936
  4  0.0170707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504736': 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) = 6067.97721834
delta logL = 1.1011661627e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.554e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.995e+00  1.292e+03  0.000e+00  1.000e+01 (-1.000e+00)
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.670e-01  1.707e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.192e+00  3.289e-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/504736/cmap_HighResolution_337305601_337564801_4FGL_J2129.1-0240_daily_bin378.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.00e-03', job_status='DONE', photon_flux_upper_limit='6.37e-08', time_completed='2021-09-26 14:46:36.072432', job_id='504736', GAL2='0.87', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1632692796.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='378' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:46:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 504736: <4FGL_J2129.1-0240_daily_bin378> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin378> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:24 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:31:54 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:31:54 2021
Terminated at Sun Sep 26 14:46:36 2021
Results reported at Sun Sep 26 14:46:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin378 322.296 -2.6829 337305601 337564801 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 :                                   752.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            972 sec.

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

