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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin847
RA = 322.296, Dec = -2.6829
tmin = 458870401, tmax = 459129601
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='507616', job_status='RUN', time_executed='2021-09-26 14:48:15.635043', time_epoch_executed='1632692895.64' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='847'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507616

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507616/ft1_4FGL_J2129.1-0240_daily_bin847.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507616/ft2_4FGL_J2129.1-0240_daily_bin847.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507616/ft1_4FGL_J2129.1-0240_daily_bin847.fits outfile=/scratch/kocevski/507616/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin847.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=458870401.0 tmax=459129601.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 2.99
user 2.80
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507616/ft1_filtered_4FGL_J2129.1-0240_daily_bin847.fits" evtable="EVENTS" scfile=/scratch/kocevski/507616/ft2_4FGL_J2129.1-0240_daily_bin847.fits sctable="SC_DATA" outfile=/scratch/kocevski/507616/ltcube_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.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/507616/ft2_4FGL_J2129.1-0240_daily_bin847.fits
.....................!
real 13.56
user 13.17
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507616/ft1_filtered_4FGL_J2129.1-0240_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/507616/ft2_4FGL_J2129.1-0240_daily_bin847.fits sctable="SC_DATA" expcube=/scratch/kocevski/507616/ltcube_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.fits outfile=/scratch/kocevski/507616/expmap_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.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/507616/ltcube_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.fits
.....................!
real 157.06
user 151.52
sys 4.63

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/507616/ft1_filtered_4FGL_J2129.1-0240_daily_bin847.fits scfile=/scratch/kocevski/507616/ft2_4FGL_J2129.1-0240_daily_bin847.fits outfile=/scratch/kocevski/507616/cmap_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.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.49
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507616/ft1_filtered_4FGL_J2129.1-0240_daily_bin847.fits scfile=/scratch/kocevski/507616/ft2_4FGL_J2129.1-0240_daily_bin847.fits outfile=/scratch/kocevski/507616/cmap_HighResolution_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.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.48
user 0.32
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507616/ft1_filtered_4FGL_J2129.1-0240_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/507616/ft2_4FGL_J2129.1-0240_daily_bin847.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507616/Model_4FGL_J2129.1-0240_daily_bin847.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/507616/ft1_filtered_4FGL_J2129.1-0240_daily_bin847.fits.....................!
real 44.31
user 42.97
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17512E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.048       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.7463       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3288       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2213       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2057       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12860E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.265       1.0000         .10000E-03   10000.    
    17 'norm      '    10.746       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5878       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4444       1.0000         .10000E-03   10000.    
    20 'Prefactor '    31.435       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6821       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68353       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92048       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=   5280.021     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2520 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26552E-03    3.1475        .21055E-05** at limit **
   2  Prefactor     .10000E-03    7.1348        .33568E-06** at limit **
   3  Prefactor     .10000E-03    21.830       -.24144E-06** at limit **
   4  Prefactor     16.033        30.040        .92044E-06    .38770E-04
   5  Prefactor     .10000E-03    21.789        .40625E-06** at limit **
   6  Prefactor     3.4643        225.06       -.10816E-04   -.12605E-03
   7  Prefactor     39.521        25.409        .10277E-06   -.59311E-04
   8  Prefactor     .10000E-03    7.1931        .14785E-07** at limit **
   9  Prefactor     7.3252        14.994        .20706E-06   -.35377E-04
  10  Prefactor     .10000E-03    29.471       -.20833E-06** at limit **
  11  Prefactor     3.2185        6.3742        .40894E-06   -.43802E-04
  12  Prefactor     .10000E-03    .75805       -.12674E-09** at limit **
  13  Prefactor     8.2031        23.931        .96032E-06    .51799E-04
  14  Prefactor     .10000E-03    92.916        .18714E-05** at limit **
  15  norm          .10000E-03    10.739        .55682E-06** at limit **
  16  Prefactor     23.216        37.050        .39626E-06    .34506E-04
  17  norm          10.704        19.871       -.30755E-06   -.28154E-03
  18  Prefactor     2.5859        5.4923        .52695E-06    .20936E-04
  19  Prefactor     3.4434        5.9902        .79399E-05    .89380E-04
  20  Prefactor     31.429        15.692        .19304E-06    .29387E-04
  21  Prefactor     .10000E-03    11.795        .13511E-06** at limit **
  22  Prefactor     6.6717        18.723        .95411E-06    .46357E-04
  23  Prefactor     .10000E-03    10.908        .66902E-07** at limit **
  24  Normalizat    .68359        .23742       -.58538E-05   -.23118E-03
  25  Prefactor     .92063        .11706        .99024E-06   -.82531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000265519
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0331
  Prefactor  = 0.0001
  Prefactor  = 3.46432
  Prefactor  = 39.5207
  Prefactor  = 0.0001
  Prefactor  = 7.32515
  Prefactor  = 0.0001
  Prefactor  = 3.21852
  Prefactor  = 0.0001
  Prefactor  = 8.20306
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 23.2162
  norm       = 10.7036
  Prefactor  = 2.58592
  Prefactor  = 3.44337
  Prefactor  = 31.4291
  Prefactor  = 0.0001
  Prefactor  = 6.67173
  Prefactor  = 0.0001
  Normalizat = 0.683595
  Prefactor  = 0.920629
 **********
 **   18 **HESSE 
 **********

 FCN=   5280.021     FROM HESSE     STATUS=OK           437 CALLS     2957 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26552E-03    7.7848        .38521E-01   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.2072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.033        30.018        .99979E-04   -1.4907    
   5  Prefactor     .10000E-03    21.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.4643        230.21        .20860E-03   -1.5336    
   7  Prefactor     39.521        25.390        .63761E-04   -1.4450    
   8  Prefactor     .10000E-03    7.2009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.3252        14.985        .14816E-03   -1.5167    
  10  Prefactor     .10000E-03    29.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.2185        6.3485        .22571E-03   -1.5349    
  12  Prefactor     .10000E-03    .76433        .61733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2031        23.940        .13996E-03   -1.5135    
  14  Prefactor     .10000E-03    94.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.216        36.933        .83045E-04   -1.4744    
  17  norm          10.704        19.851        .12222E-03   -1.5054    
  18  Prefactor     2.5859        5.4569        .23538E-03   -1.5386    
  19  Prefactor     3.4434        5.9991        .10896E-02   -1.5337    
  20  Prefactor     31.429        15.685        .71465E-04   -1.4586    
  21  Prefactor     .10000E-03    11.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6717        18.693        .15523E-03   -1.5191    
  23  Prefactor     .10000E-03    10.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68359        .27310        .35462E-03   -1.0454    
  25  Prefactor     .92063        .13807        .16057E-03   -.95424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.45521e-09
Minuit parameter uncertainties:
  1  0.0718017
  2  2.17489e-05
  3  3.91318e-05
  4  30.0464
  5  1.78704e-05
  6  56.7095
  7  25.3967
  8  6.44858e-06
  9  14.9928
  10  8.18658e-05
  11  6.34986
  12  3.07966e-06
  13  23.9679
  14  0.000629894
  15  7.39669e-05
  16  36.9698
  17  19.8629
  18  5.45797
  19  6.00017
  20  15.6867
  21  7.87788e-06
  22  18.7098
  23  8.82828e-05
  24  0.273641
  25  0.138127
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  8.187e-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.206e-01  1.381e-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:  6.836e-01  2.736e-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: 9.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507616/likelihoodResults_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.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) = 5280.02154275
delta logL = -0.000161070038303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5280.02138228
delta logL = -6.01290594204e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1652       1.0000          .0000       10.000    
     3 'Normalizat'    .68359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92063       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=   5280.021     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      277 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10323E-03    10.971        .18142E-01** at limit **
   2  Index         3.0694        7.1021        .50000        .84988E-05
   3  Normalizat    .68359        .38570E-02    .35462E-03    .51359E-04
   4  Prefactor     .92063        .20199E-02    .16057E-03    .76780E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010323
  Index      = 3.06937
  Normalizat = 0.683592
  Prefactor  = 0.920631
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10323E-03    574.11        .68048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0694        6.9855        .50000       -.39643    
   3  Normalizat    .68359        .28382E-01    .14185E-04   -1.0454    
   4  Prefactor     .92063        .14864E-01    .32113E-04   -.95424    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5846e-09
Minuit parameter uncertainties:
  1  0.0869669
  2  1010.52
  3  0.028383
  4  0.0148638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507616': 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) = 5280.02138216
delta logL = -4.76021341456e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.032e-04  8.697e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.069e+00  1.011e+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:  9.206e-01  1.486e-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:  6.836e-01  2.838e-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/507616/cmap_HighResolution_458870401_459129601_4FGL_J2129.1-0240_daily_bin847.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.48e-03', job_status='DONE', photon_flux_upper_limit='9.54e-08', time_completed='2021-09-26 14:56:47.327573', job_id='507616', GAL2='0.92', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1632693407.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-4.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='847' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:56:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 507616: <4FGL_J2129.1-0240_daily_bin847> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin847> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:40:45 2021
Job was executed on host(s) <bullet0023>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:45:49 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:45:49 2021
Terminated at Sun Sep 26 14:56:48 2021
Results reported at Sun Sep 26 14:56:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin847 322.296 -2.6829 458870401 459129601 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 :                                   508.52 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            963 sec.

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

