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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin315
RA = 322.296, Dec = -2.6829
tmin = 320976001, tmax = 321235201
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='504646', job_status='RUN', time_executed='2021-09-26 14:34:28.231489', time_epoch_executed='1632692068.23' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504646

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504646/ft1_4FGL_J2129.1-0240_daily_bin315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504646/ft2_4FGL_J2129.1-0240_daily_bin315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504646/ft1_4FGL_J2129.1-0240_daily_bin315.fits outfile=/scratch/kocevski/504646/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin315.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=320976001.0 tmax=321235201.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.53
user 3.27
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504646/ft1_filtered_4FGL_J2129.1-0240_daily_bin315.fits" evtable="EVENTS" scfile=/scratch/kocevski/504646/ft2_4FGL_J2129.1-0240_daily_bin315.fits sctable="SC_DATA" outfile=/scratch/kocevski/504646/ltcube_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.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/504646/ft2_4FGL_J2129.1-0240_daily_bin315.fits
.....................!
real 14.40
user 13.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504646/ft1_filtered_4FGL_J2129.1-0240_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/504646/ft2_4FGL_J2129.1-0240_daily_bin315.fits sctable="SC_DATA" expcube=/scratch/kocevski/504646/ltcube_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.fits outfile=/scratch/kocevski/504646/expmap_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.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/504646/ltcube_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.fits
.....................!
real 193.64
user 187.33
sys 4.22

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/504646/ft1_filtered_4FGL_J2129.1-0240_daily_bin315.fits scfile=/scratch/kocevski/504646/ft2_4FGL_J2129.1-0240_daily_bin315.fits outfile=/scratch/kocevski/504646/cmap_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504646/ft1_filtered_4FGL_J2129.1-0240_daily_bin315.fits scfile=/scratch/kocevski/504646/ft2_4FGL_J2129.1-0240_daily_bin315.fits outfile=/scratch/kocevski/504646/cmap_HighResolution_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504646/ft1_filtered_4FGL_J2129.1-0240_daily_bin315.fits evtable="EVENTS" scfile=/scratch/kocevski/504646/ft2_4FGL_J2129.1-0240_daily_bin315.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504646/Model_4FGL_J2129.1-0240_daily_bin315.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/504646/ft1_filtered_4FGL_J2129.1-0240_daily_bin315.fits.....................!
real 58.15
user 56.68
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4693       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.435       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.468       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13064E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.374       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.9843       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95359       1.0000         .10000E-03   10000.    
    13 'Prefactor '    54.218       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.635       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10441E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10360E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1136       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76026       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0576       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=   5403.297     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2884 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4694        6.2112        .29678E-05   -.20238E-04
   2  Prefactor     .10000E-03    7.2653        .69630E-07** at limit **
   3  Prefactor     37.431        42.922       -.21557E-05    .28498E-05
   4  Prefactor     .10000E-03    7.6205       -.27512E-07** at limit **
   5  Prefactor     .10000E-03    8.1334        .14949E-06** at limit **
   6  Prefactor     19.297        67.839        .61049E-05    .24518E-05
   7  Prefactor     .10000E-03    37.261       -.10157E-05** at limit **
   8  Prefactor     .10000E-03    6.1106       -.91749E-10** at limit **
   9  Prefactor     39.356        25.683       -.20529E-05    .18069E-04
  10  Prefactor     .10000E-03    40.042        .16910E-05** at limit **
  11  Prefactor     2.9839        5.3715        .47891E-06    .56933E-05
  12  Prefactor     .95042        4.1583       -.30528E-06   -.13705E-03
  13  Prefactor     54.228        47.064        .34929E-06    .60140E-04
  14  Prefactor     .10000E-03    23.849        .31603E-05** at limit **
  15  norm          .10000E-03    3.3158       -.17804E-08** at limit **
  16  Prefactor     .10000E-03    20.723       -.12167E-05** at limit **
  17  norm          14.650        17.161       -.19841E-06    .13133E-04
  18  Prefactor     .10000E-03    4.7965       -.32868E-07** at limit **
  19  Prefactor     .10000E-03    4.5005       -.57587E-07** at limit **
  20  Prefactor     .10000E-03    27.400       -.28817E-05** at limit **
  21  Prefactor     .10000E-03    9.6100       -.10821E-06** at limit **
  22  Prefactor     .10000E-03    12.827       -.21651E-06** at limit **
  23  Prefactor     7.1144        26.806        .27871E-05    .23516E-04
  24  Normalizat    .76034        .26954        .65198E-06    .71191E-04
  25  Prefactor     1.0576        .13218       -.58849E-06    .16907E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.46939
  Prefactor  = 0.0001
  Prefactor  = 37.4311
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.3558
  Prefactor  = 0.0001
  Prefactor  = 2.9839
  Prefactor  = 0.950422
  Prefactor  = 54.2278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.1144
  Normalizat = 0.760337
  Prefactor  = 1.05759
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.297     FROM HESSE     STATUS=OK           419 CALLS     3303 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4694        6.2183        .10856E-02   -1.5335    
   2  Prefactor     .10000E-03    7.2797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.431        42.987        .65505E-04   -1.4484    
   4  Prefactor     .10000E-03    7.6221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.297        67.741        .90776E-04   -1.4829    
   7  Prefactor     .10000E-03    38.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1221        .17746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.356        25.666        .63877E-04   -1.4452    
  10  Prefactor     .10000E-03    40.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.9839        5.3535        .22046E-03   -1.5362    
  12  Prefactor     .95042        3.8137        .23677E-03   -1.5513    
  13  Prefactor     54.228        44.850        .54474E-04   -1.4234    
  14  Prefactor     .10000E-03    23.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3159        .13073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.650        17.156        .10470E-03   -1.4942    
  18  Prefactor     .10000E-03    4.8389        .15720E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.6094        .15227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.1144        26.838        .15040E-03   -1.5174    
  24  Normalizat    .76034        .31183        .37575E-03   -1.0156    
  25  Prefactor     1.0576        .15471        .16690E-03   -.90834    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64513e-10
Minuit parameter uncertainties:
  1  6.21942
  2  4.5103e-06
  3  43.0222
  4  4.52929e-06
  5  3.36886e-06
  6  68.0133
  7  1.16288e-05
  8  2.78709e-06
  9  25.6733
  10  2.90247e-05
  11  5.35441
  12  3.80789
  13  44.8776
  14  1.7045e-05
  15  1.50418e-07
  16  1.03925e-05
  17  17.1614
  18  2.6941e-06
  19  3.52996e-06
  20  6.20514e-05
  21  1.01765e-05
  22  3.15298e-05
  23  26.8833
  24  0.312559
  25  0.154774
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.902e-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:  1.058e+00  1.548e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  7.603e-01  3.126e-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.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504646/likelihoodResults_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.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) = 5403.29684844
delta logL = -0.000118898940855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5403.29672908
delta logL = 4.63226569991e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10510E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5173       1.0000          .0000       10.000    
     3 'Normalizat'    .76033       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0576       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5403.297     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      252 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16374        .90712E-01** at limit **
   2  Index         3.5338        6.5900        .50000       -.24658E-05
   3  Normalizat    .76034        .72707E-03    .84849E-01    .84645E-04
   4  Prefactor     1.0576        .37719E-03    .39485E-01    .84762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 3.53383
  Normalizat = 0.760338
  Prefactor  = 1.05758
 **********
 **   18 **HESSE 
 **********

 FCN=   5403.297     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      285 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    93.896        .49213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5338        6.0610        .50000       -.29761    
   3  Normalizat    .76034        .72924E-02    .37575E-03   -1.0156    
   4  Prefactor     1.0576        .37925E-02    .16690E-03   -.90834    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.48602e-08
Minuit parameter uncertainties:
  1  0.0012198
  2  344.608
  3  0.00729238
  4  0.00379248
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504646': 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) = 5403.29672903
delta logL = 5.13281520398e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.220e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.534e+00  3.446e+02  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:  1.058e+00  3.792e-03  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  7.603e-01  7.292e-03  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/504646/cmap_HighResolution_320976001_321235201_4FGL_J2129.1-0240_daily_bin315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-26 14:45:23.582871', job_id='504646', GAL2='1.06', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632692723.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='5.13e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='315' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:45:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 504646: <4FGL_J2129.1-0240_daily_bin315> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin315 322.296 -2.6829 320976001 321235201 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 :                                   650.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            906 sec.

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

