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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin354
RA = 322.296, Dec = -2.6829
tmin = 331084801, tmax = 331344001
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='504701', job_status='RUN', time_executed='2021-09-26 14:33:58.621317', time_epoch_executed='1632692038.62' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='354'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504701

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504701/ft1_4FGL_J2129.1-0240_daily_bin354.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504701/ft2_4FGL_J2129.1-0240_daily_bin354.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504701/ft1_4FGL_J2129.1-0240_daily_bin354.fits outfile=/scratch/kocevski/504701/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin354.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=331084801.0 tmax=331344001.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.38
user 3.15
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504701/ft1_filtered_4FGL_J2129.1-0240_daily_bin354.fits" evtable="EVENTS" scfile=/scratch/kocevski/504701/ft2_4FGL_J2129.1-0240_daily_bin354.fits sctable="SC_DATA" outfile=/scratch/kocevski/504701/ltcube_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.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/504701/ft2_4FGL_J2129.1-0240_daily_bin354.fits
.....................!
real 14.03
user 13.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504701/ft1_filtered_4FGL_J2129.1-0240_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/504701/ft2_4FGL_J2129.1-0240_daily_bin354.fits sctable="SC_DATA" expcube=/scratch/kocevski/504701/ltcube_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.fits outfile=/scratch/kocevski/504701/expmap_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.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/504701/ltcube_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.fits
.....................!
real 192.91
user 187.10
sys 5.09

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/504701/ft1_filtered_4FGL_J2129.1-0240_daily_bin354.fits scfile=/scratch/kocevski/504701/ft2_4FGL_J2129.1-0240_daily_bin354.fits outfile=/scratch/kocevski/504701/cmap_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504701/ft1_filtered_4FGL_J2129.1-0240_daily_bin354.fits scfile=/scratch/kocevski/504701/ft2_4FGL_J2129.1-0240_daily_bin354.fits outfile=/scratch/kocevski/504701/cmap_HighResolution_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504701/ft1_filtered_4FGL_J2129.1-0240_daily_bin354.fits evtable="EVENTS" scfile=/scratch/kocevski/504701/ft2_4FGL_J2129.1-0240_daily_bin354.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504701/Model_4FGL_J2129.1-0240_daily_bin354.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/504701/ft1_filtered_4FGL_J2129.1-0240_daily_bin354.fits.....................!
real 63.97
user 62.44
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.572       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.6930       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10644E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.645       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3427       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.0681       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76858       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98178       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=   6155.329     FROM MIGRAD    STATUS=CONVERGED    563 CALLS     2886 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0982        .51095E-07** at limit **
   2  Prefactor     13.572        17.871       -.54898E-06    .24947E-04
   3  Prefactor     .10000E-03    12.874       -.70839E-06** at limit **
   4  Prefactor     .10000E-03    47.740        .13899E-05** at limit **
   5  Prefactor     .10000E-03    16.432        .63066E-06** at limit **
   6  Prefactor     .10000E-03    30.276        .30971E-06** at limit **
   7  Prefactor     .10000E-03    13.831        .29607E-06** at limit **
   8  Prefactor     7.6963        15.366       -.56180E-06    .23368E-04
   9  Prefactor     .10000E-03    6.8518        .79497E-09** at limit **
  10  Prefactor     12.600        36.900       -.16694E-05    .11529E-03
  11  Prefactor     .10000E-03    1.8394        .10300E-07** at limit **
  12  Prefactor     .10000E-03    1.9259       -.26547E-05** at limit **
  13  Prefactor     .10000E-03    18.774       -.12112E-05** at limit **
  14  Prefactor     .10000E-03    13.587       -.27456E-06** at limit **
  15  norm          .10000E-03    4.0415        .19622E-07** at limit **
  16  Prefactor     .10000E-03    25.822       -.11264E-05** at limit **
  17  norm          11.880        17.382       -.52095E-06    .19247E-04
  18  Prefactor     .10000E-03    5.0196        .85820E-07** at limit **
  19  Prefactor     20.647        10.039       -.35970E-06    .60077E-04
  20  Prefactor     3.3426        6.0001        .32937E-06    .18830E-03
  21  Prefactor     .10000E-03    7.8080        .15588E-06** at limit **
  22  Prefactor     7.0693        10.432       -.40319E-07    .60609E-04
  23  Prefactor     .10000E-03    15.760        .90838E-06** at limit **
  24  Normalizat    .76841        .23504        .53096E-05    .58036E-03
  25  Prefactor     .98185        .11542       -.11742E-05    .11911E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.5723
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.69629
  Prefactor  = 0.0001
  Prefactor  = 12.5996
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.8805
  Prefactor  = 0.0001
  Prefactor  = 20.6466
  Prefactor  = 3.34264
  Prefactor  = 0.0001
  Prefactor  = 7.06928
  Prefactor  = 0.0001
  Normalizat = 0.76841
  Prefactor  = 0.981848
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.329     FROM HESSE     STATUS=OK           417 CALLS     3303 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1256        .13478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.572        17.913        .10873E-03   -1.4971    
   3  Prefactor     .10000E-03    12.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    48.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.6963        15.399        .14458E-03   -1.5153    
   9  Prefactor     .10000E-03    6.8592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.600        36.998        .11267E-03   -1.4998    
  11  Prefactor     .10000E-03    1.8433        .10391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.1361        .16118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0467        .15404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    26.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.880        17.405        .11621E-03   -1.5018    
  18  Prefactor     .10000E-03    5.1003        .17158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.647        10.111        .88152E-04   -1.4799    
  20  Prefactor     3.3426        5.9890        .22137E-03   -1.5342    
  21  Prefactor     .10000E-03    7.8154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.0693        10.424        .15089E-03   -1.5176    
  23  Prefactor     .10000E-03    15.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .76841        .27794        .35349E-03   -1.0125    
  25  Prefactor     .98185        .13594        .16226E-03   -.93337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35954e-09
Minuit parameter uncertainties:
  1  2.62081e-06
  2  17.9205
  3  0.000123354
  4  0.00033867
  5  0.000107344
  6  0.000102555
  7  3.67099e-05
  8  15.4069
  9  5.18137e-06
  10  37.0652
  11  8.20928e-07
  12  8.50043e-05
  13  0.000213139
  14  2.85435e-05
  15  7.87629e-07
  16  0.000290075
  17  17.4124
  18  1.9624e-07
  19  10.1122
  20  5.99005
  21  1.40087e-05
  22  10.4262
  23  0.000127519
  24  0.278453
  25  0.135984
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.260e+01  3.707e+01  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.818e-01  1.360e-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.684e-01  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504701/likelihoodResults_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.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): 0
logL (Free Index) = 6155.29039897
delta logL = 0.03832467554

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6155.27659465
delta logL = 0.0521289903709

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3112       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3002       1.0000          .0000       10.000    
     3 'Normalizat'    .75509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98641       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6155.277     FROM MIGRAD    STATUS=FAILED       102 CALLS      294 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3473        1609.8        .74169E-03   -.10285E-04
   2  Index         3.2981        8.0603        .13158E-01    .28750E-03
   3  Normalizat    .75486        .26772        .35647E-03    .63466E-05
   4  Prefactor     .98650        .14409        .16192E-03    .24293E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6155.277     FROM SIMPLEX   STATUS=UNCHANGED    101 CALLS      395 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3473        1609.8        .53937E-03   -.10285E-04
   2  Index         3.2981        8.0603        .14098E-02    .28750E-03
   3  Normalizat    .75486        .26772        .23496E-03    .63466E-05
   4  Prefactor     .98650        .14409        .58267E-04    .24293E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6155.277     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      425 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3473        36.756        .29667E-04   -.12033E-04
   2  Index         3.2981        2.5351        .26317E-02   -.20779E-05
   3  Normalizat    .75486        .26793        .14259E-04    .62190E-05
   4  Prefactor     .98650        .13591        .64768E-05    .24223E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.34735
  Index      = 3.29809
  Normalizat = 0.754857
  Prefactor  = 0.986505
 **********
 **   18 **HESSE 
 **********

 FCN=   6155.277     FROM HESSE     STATUS=OK            23 CALLS      448 TOTAL
                     EDM=   .96E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3473        31.075        .59335E-05   -1.5166    
   2  Index         3.2981        2.3495        .10527E-03   -.34732    
   3  Normalizat    .75486        .26800        .28518E-05   -1.0177    
   4  Prefactor     .98650        .13587        .12954E-05   -.93181    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.59026e-13
Minuit parameter uncertainties:
  1  30.247
  2  2.46023
  3  0.268468
  4  0.135919
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504701': 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) = 6155.27659361
delta logL = 0.0521300393057

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  7.347e+00  3.025e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.298e+00  2.460e+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.865e-01  1.359e-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.549e-01  2.685e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
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/504701/cmap_HighResolution_331084801_331344001_4FGL_J2129.1-0240_daily_bin354.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.94e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-26 14:45:47.179137', job_id='504701', GAL2='0.99', fit_tolerance='1e-08', EG2='0.75', EG='0.77', time_epoch_completed='1632692747.18', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.21e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='354' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:45:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 504701: <4FGL_J2129.1-0240_daily_bin354> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin354> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:22 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:31:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 14:31:25 2021
Terminated at Sun Sep 26 14:45:48 2021
Results reported at Sun Sep 26 14:45:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin354 322.296 -2.6829 331084801 331344001 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 :                                   706.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            926 sec.

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

