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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin598
RA = 322.296, Dec = -2.6829
tmin = 394329601, tmax = 394588801
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='506125', job_status='RUN', time_executed='2021-09-26 14:39:44.709123', time_epoch_executed='1632692384.71' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506125

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

Retrieving the FT1 file...

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

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

Retrieving 53 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506125/ft1_4FGL_J2129.1-0240_daily_bin598.fits


Retrieving the FT1 file...

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

Retrieving 53 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506125/ft2_4FGL_J2129.1-0240_daily_bin598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506125/ft1_4FGL_J2129.1-0240_daily_bin598.fits outfile=/scratch/kocevski/506125/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin598.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=394329601.0 tmax=394588801.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.49
user 7.15
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506125/ft1_filtered_4FGL_J2129.1-0240_daily_bin598.fits" evtable="EVENTS" scfile=/scratch/kocevski/506125/ft2_4FGL_J2129.1-0240_daily_bin598.fits sctable="SC_DATA" outfile=/scratch/kocevski/506125/ltcube_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.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/506125/ft2_4FGL_J2129.1-0240_daily_bin598.fits
.....................!
real 13.65
user 13.16
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506125/ft1_filtered_4FGL_J2129.1-0240_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/506125/ft2_4FGL_J2129.1-0240_daily_bin598.fits sctable="SC_DATA" expcube=/scratch/kocevski/506125/ltcube_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.fits outfile=/scratch/kocevski/506125/expmap_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.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/506125/ltcube_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.fits
.....................!
real 193.52
user 187.22
sys 5.45

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/506125/ft1_filtered_4FGL_J2129.1-0240_daily_bin598.fits scfile=/scratch/kocevski/506125/ft2_4FGL_J2129.1-0240_daily_bin598.fits outfile=/scratch/kocevski/506125/cmap_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506125/ft1_filtered_4FGL_J2129.1-0240_daily_bin598.fits scfile=/scratch/kocevski/506125/ft2_4FGL_J2129.1-0240_daily_bin598.fits outfile=/scratch/kocevski/506125/cmap_HighResolution_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506125/ft1_filtered_4FGL_J2129.1-0240_daily_bin598.fits evtable="EVENTS" scfile=/scratch/kocevski/506125/ft2_4FGL_J2129.1-0240_daily_bin598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506125/Model_4FGL_J2129.1-0240_daily_bin598.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/506125/ft1_filtered_4FGL_J2129.1-0240_daily_bin598.fits.....................!
real 54.48
user 53.00
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15419E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10841E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12009E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .60482       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.873       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.675       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.101       1.0000         .10000E-03   10000.    
    15 'norm      '    6.1751       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.474       1.0000         .10000E-03   10000.    
    17 'norm      '    19.524       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.013       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.6425       1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.947       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.880       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .75804       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95322       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=   5228.095     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2915 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.5939       -.27620E-07** at limit **
   2  Prefactor     .10017E-03    12.973       -.23873E-07** at limit **
   3  Prefactor     .10000E-03    56.174        .26649E-04** at limit **
   4  Prefactor     .10000E-03    33.410        .14022E-04** at limit **
   5  Prefactor     .10000E-03    13.589        .23747E-06** at limit **
   6  Prefactor     .10000E-03    41.417       -.24173E-04** at limit **
   7  Prefactor     .10000E-03    48.638       -.92549E-05** at limit **
   8  Prefactor     .58932        9.2590        .23080E-07   -.12473E-04
   9  Prefactor     12.907        31.703        .88530E-05   -.35597E-04
  10  Prefactor     .10000E-03    21.879       -.14913E-05** at limit **
  11  Prefactor     .10000E-03    6.0291        .10431E-06** at limit **
  12  Prefactor     .10000E-03    1.2227        .13975E-07** at limit **
  13  Prefactor     35.671        34.765       -.22139E-05   -.20174E-05
  14  Prefactor     28.105        29.607        .93337E-06    .30420E-05
  15  norm          6.1762        8.3634        .37946E-07   -.31586E-04
  16  Prefactor     13.487        40.279        .14820E-04   -.63321E-05
  17  norm          19.508        24.426       -.15505E-06   -.29424E-04
  18  Prefactor     .10000E-03    4.0556       -.88188E-07** at limit **
  19  Prefactor     10.011        6.9939       -.81459E-06    .10268E-04
  20  Prefactor     9.6473        11.690       -.45607E-06   -.35875E-04
  21  Prefactor     14.949        16.092        .16991E-07    .87191E-04
  22  Prefactor     .10000E-03    6.2500        .65018E-07** at limit **
  23  Prefactor     12.878        16.560        .40235E-06   -.19737E-04
  24  Normalizat    .75826        .25125       -.14947E-05   -.37900E-04
  25  Prefactor     .95312        .12118       -.36898E-06   -.15227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.589322
  Prefactor  = 12.9072
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.6708
  Prefactor  = 28.1047
  norm       = 6.17623
  Prefactor  = 13.4875
  norm       = 19.508
  Prefactor  = 0.0001
  Prefactor  = 10.0112
  Prefactor  = 9.64728
  Prefactor  = 14.9491
  Prefactor  = 0.0001
  Prefactor  = 12.8784
  Normalizat = 0.758261
  Prefactor  = 0.953116
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.095     FROM HESSE     STATUS=OK           431 CALLS     3346 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6810        .15119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10017E-03    150.73        .49619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    56.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    33.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    49.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .58932        79.646        .41858E-02   -1.5554    
   9  Prefactor     12.907        31.607        .11164E-03   -1.4989    
  10  Prefactor     .10000E-03    21.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1088        .17330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.2502        .15593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     35.671        34.759        .67096E-04   -1.4513    
  14  Prefactor     28.105        29.604        .75576E-04   -1.4647    
  15  norm          6.1762        8.3587        .16155E-03   -1.5211    
  16  Prefactor     13.487        40.219        .10912E-03   -1.4973    
  17  norm          19.508        24.389        .90645E-04   -1.4824    
  18  Prefactor     .10000E-03    4.0697        .14217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.011        7.0046        .12663E-03   -1.5075    
  20  Prefactor     9.6473        11.690        .12905E-03   -1.5087    
  21  Prefactor     14.949        16.091        .51799E-03   -1.4934    
  22  Prefactor     .10000E-03    6.2529        .17654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     12.878        16.547        .11161E-03   -1.4990    
  24  Normalizat    .75826        .29747        .35556E-03   -1.0164    
  25  Prefactor     .95312        .14606        .16306E-03   -.94309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73807e-08
Minuit parameter uncertainties:
  1  1.31409e-05
  2  0.0101537
  3  1.80936e-05
  4  0.00011496
  5  1.83047e-05
  6  2.63487e-05
  7  0.000313286
  8  13.7196
  9  31.6478
  10  2.29745e-05
  11  2.182e-05
  12  4.91655e-06
  13  34.7791
  14  29.6199
  15  8.36032
  16  40.2996
  17  24.4012
  18  2.19339e-05
  19  7.00516
  20  11.6931
  21  16.0952
  22  2.2667e-06
  23  16.5528
  24  0.298109
  25  0.146121
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.297e-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.531e-01  1.461e-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.583e-01  2.981e-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.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506125/likelihoodResults_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.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) = 5228.09515807
delta logL = -0.000217396943299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5228.09494295
delta logL = -2.27408418141e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2665       1.0000          .0000       10.000    
     3 'Normalizat'    .75826       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95312       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=   5228.095     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      254 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1603.0        .90712E-02** at limit **
   2  Index         3.2385        5.7429        .50000        .24140E-04
   3  Normalizat    .75826        .93319E-01    .80307E-01    .66201E-04
   4  Prefactor     .95312        .47548E-01    .45678E-01    .84947E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 3.23851
  Normalizat = 0.758262
  Prefactor  = 0.953115
 **********
 **   18 **HESSE 
 **********

 FCN=   5228.095     FROM HESSE     STATUS=OK            31 CALLS      285 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2385        6.6186        .50000       -.36003    
   3  Normalizat    .75826        .28071        .35556E-03   -1.0164    
   4  Prefactor     .95312        .14441        .16306E-03   -.94309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70922e-09
Minuit parameter uncertainties:
  1  0.000410982
  2  5.55738
  3  0.281244
  4  0.144466
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506125': 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) = 5228.09494278
delta logL = -2.1093082978e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.110e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.239e+00  5.557e+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.531e-01  1.445e-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.583e-01  2.812e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/506125/cmap_HighResolution_394329601_394588801_4FGL_J2129.1-0240_daily_bin598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.34e-08', time_completed='2021-09-26 14:50:49.769851', job_id='506125', GAL2='0.95', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632693049.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-2.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='598' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 506125: <4FGL_J2129.1-0240_daily_bin598> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin598 322.296 -2.6829 394329601 394588801 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 :                                   661.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            923 sec.

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

