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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin587
RA = 322.296, Dec = -2.6829
tmin = 391478401, tmax = 391737601
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='506106', job_status='RUN', time_executed='2021-09-26 14:38:53.852115', time_epoch_executed='1632692333.85' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='587'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506106

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506106/ft1_4FGL_J2129.1-0240_daily_bin587.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506106/ft2_4FGL_J2129.1-0240_daily_bin587.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506106/ft1_4FGL_J2129.1-0240_daily_bin587.fits outfile=/scratch/kocevski/506106/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin587.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=391478401.0 tmax=391737601.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 4.44
user 4.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506106/ft1_filtered_4FGL_J2129.1-0240_daily_bin587.fits" evtable="EVENTS" scfile=/scratch/kocevski/506106/ft2_4FGL_J2129.1-0240_daily_bin587.fits sctable="SC_DATA" outfile=/scratch/kocevski/506106/ltcube_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.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/506106/ft2_4FGL_J2129.1-0240_daily_bin587.fits
.....................!
real 13.51
user 13.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506106/ft1_filtered_4FGL_J2129.1-0240_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/506106/ft2_4FGL_J2129.1-0240_daily_bin587.fits sctable="SC_DATA" expcube=/scratch/kocevski/506106/ltcube_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.fits outfile=/scratch/kocevski/506106/expmap_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.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/506106/ltcube_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.fits
.....................!
real 190.63
user 185.41
sys 4.65

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/506106/ft1_filtered_4FGL_J2129.1-0240_daily_bin587.fits scfile=/scratch/kocevski/506106/ft2_4FGL_J2129.1-0240_daily_bin587.fits outfile=/scratch/kocevski/506106/cmap_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506106/ft1_filtered_4FGL_J2129.1-0240_daily_bin587.fits scfile=/scratch/kocevski/506106/ft2_4FGL_J2129.1-0240_daily_bin587.fits outfile=/scratch/kocevski/506106/cmap_HighResolution_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/506106/ft1_filtered_4FGL_J2129.1-0240_daily_bin587.fits evtable="EVENTS" scfile=/scratch/kocevski/506106/ft2_4FGL_J2129.1-0240_daily_bin587.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506106/Model_4FGL_J2129.1-0240_daily_bin587.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/506106/ft1_filtered_4FGL_J2129.1-0240_daily_bin587.fits.....................!
real 64.68
user 63.24
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .65315E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.826       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.6213       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20021E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.590       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .87669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10381E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7430       1.0000         .10000E-03   10000.    
    15 'norm      '    7.5064       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    35.470       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2158       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0203       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94237       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=   6441.387     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2881 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5903        .14490E-06** at limit **
   2  Prefactor     .10001E-03    73.432        .14113E-04** at limit **
   3  Prefactor     .10000E-03    13.395        .21594E-07** at limit **
   4  Prefactor     26.795        28.120       -.29062E-06    .61112E-04
   5  Prefactor     .10000E-03    11.026        .23155E-06** at limit **
   6  Prefactor     .10000E-03    22.167        .87970E-07** at limit **
   7  Prefactor     .10000E-03    26.935        .64658E-06** at limit **
   8  Prefactor     6.6204        14.116       -.30605E-05    .35030E-05
   9  Prefactor     .10000E-03    5.2296        .51429E-07** at limit **
  10  Prefactor     .10000E-03    155.84       -.40129E-05** at limit **
  11  Prefactor     19.588        10.351        .10634E-06    .48369E-05
  12  Prefactor     .87525        1.4936        .82489E-06    .77857E-03
  13  Prefactor     .10000E-03    12.610       -.13306E-06** at limit **
  14  Prefactor     5.8042        60.634       -.12302E-05   -.16535E-03
  15  norm          7.5062        7.8036        .29460E-06    .68595E-05
  16  Prefactor     .10000E-03    27.084        .47262E-07** at limit **
  17  norm          35.457        24.445       -.32611E-07   -.37623E-04
  18  Prefactor     .10000E-03    11.410        .34588E-06** at limit **
  19  Prefactor     8.2115        9.7630       -.23191E-05    .11565E-04
  20  Prefactor     .10000E-03    5.7877        .11413E-07** at limit **
  21  Prefactor     .10000E-03    6.4590        .33544E-07** at limit **
  22  Prefactor     .10000E-03    14.754        .11305E-06** at limit **
  23  Prefactor     .10000E-03    7.3794        .61680E-07** at limit **
  24  Normalizat    1.0205        .23937        .87178E-06   -.11737E-03
  25  Prefactor     .94246        .11473       -.35953E-06    .76039E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 26.7951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 6.62042
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 19.5879
  Prefactor  = 0.875253
  Prefactor  = 0.0001
  Prefactor  = 5.8042
  norm       = 7.50616
  Prefactor  = 0.0001
  norm       = 35.4569
  Prefactor  = 0.0001
  Prefactor  = 8.21148
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.0205
  Prefactor  = 0.942462
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.387     FROM HESSE     STATUS=OK           421 CALLS     3302 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.6170        .12611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    71.929        .53811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     26.795        28.105        .77347E-04   -1.4672    
   5  Prefactor     .10000E-03    11.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.6204        14.128        .77975E-03   -1.5193    
   9  Prefactor     .10000E-03    5.2311        .17925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    162.67        .40456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.588        10.353        .90493E-04   -1.4823    
  12  Prefactor     .87525        1.4830        .14794E-02   -1.5521    
  13  Prefactor     .10000E-03    12.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8042        59.234        .16760E-03   -1.5226    
  15  norm          7.5062        7.8042        .73190E-03   -1.5160    
  16  Prefactor     .10000E-03    27.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          35.457        24.426        .67289E-04   -1.4516    
  18  Prefactor     .10000E-03    11.802        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2115        9.7649        .69935E-03   -1.5135    
  20  Prefactor     .10000E-03    5.8130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.4609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0205        .28175        .33942E-03   -.92347    
  25  Prefactor     .94246        .13684        .17718E-03   -.94673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30729e-09
Minuit parameter uncertainties:
  1  5.31073e-07
  2  0.00127782
  3  5.92578e-05
  4  28.1185
  5  0.000103477
  6  5.66239e-05
  7  0.000341865
  8  14.1352
  9  5.6961e-07
  10  0.000901008
  11  10.354
  12  1.48309
  13  0.000104454
  14  37.1311
  15  7.80528
  16  9.07019e-05
  17  24.4331
  18  4.97742e-05
  19  9.7668
  20  8.20387e-07
  21  6.82581e-06
  22  0.000183574
  23  7.00641e-06
  24  0.282159
  25  0.136887
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  9.010e-04  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.425e-01  1.369e-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.020e+00  2.822e-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.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/506106/likelihoodResults_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.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) = 6441.38738161
delta logL = -2.9197080039e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6441.38738161
delta logL = -2.91968908641e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96355E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6372       1.0000          .0000       10.000    
     3 'Normalizat'    1.0205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94247       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6441.387     FROM MIGRAD    STATUS=FAILED       124 CALLS      274 TOTAL
                     EDM=   .31E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11281E-02    8940.6        .94865E-02** at limit **
   2  Index         2.0618        6.5900        .50000       -.25468E-04
   3  Normalizat    1.0205        .55062E-01    .33942E-03   -.96832E-04
   4  Prefactor     .94246        .28390E-01    .17718E-03   -.24112E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6441.384     FROM SIMPLEX   STATUS=PROGRESS     124 CALLS      398 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2762        8940.6        .14295E-02   -.66011E-02
   2  Index         2.0611        6.5900        .44484E-04   -.25468E-04
   3  Normalizat    1.0205        .55062E-01    .73685E-06   -.96832E-04
   4  Prefactor     .94245        .28390E-01    .78952E-07   -.24112E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6441.383     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      501 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6760        122.08        .75892E-03    .24268E-05
   2  Index         2.1584        2.3061        .21690E-01    .12408E-04
   3  Normalizat    1.0199        .26673        .27154E-05   -.13398E-04
   4  Prefactor     .94180        .13555        .70873E-05   -.22457E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.67602
  Index      = 2.15842
  Normalizat = 1.01991
  Prefactor  = 0.941799
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.383     FROM HESSE     STATUS=OK            27 CALLS      528 TOTAL
                     EDM=   .84E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6760        113.74        .30357E-04    444.50    
   2  Index         2.1584        2.2370        .43380E-02   -.60446    
   3  Normalizat    1.0199        .26590        .54307E-06   -.92366    
   4  Prefactor     .94180        .13523        .14175E-05   -.94695    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.41216e-13
Minuit parameter uncertainties:
  1  40.9812
  2  2.36517
  3  0.266247
  4  0.135276
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506106': 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) = 6441.38309553
delta logL = 0.0042568753388

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.676e+00  4.098e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.158e+00  2.365e+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.418e-01  1.353e-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.020e+00  2.662e-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/506106/cmap_HighResolution_391478401_391737601_4FGL_J2129.1-0240_daily_bin587.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.51e-03', job_status='DONE', photon_flux_upper_limit='1.09e-07', time_completed='2021-09-26 14:50:59.921355', job_id='506106', GAL2='0.94', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1632693059.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.26e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='587' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:50:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 506106: <4FGL_J2129.1-0240_daily_bin587> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin587 322.296 -2.6829 391478401 391737601 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 :                                   723.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            934 sec.

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

