/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 116 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin31
RA = 322.296, Dec = -2.6829
tmin = 247363201, tmax = 247622401
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='502372', job_status='RUN', time_executed='2021-09-26 14:23:28.719022', time_epoch_executed='1632691408.72' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='31'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502372

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502372/ft1_4FGL_J2129.1-0240_daily_bin31.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502372/ft2_4FGL_J2129.1-0240_daily_bin31.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502372/ft1_4FGL_J2129.1-0240_daily_bin31.fits outfile=/scratch/kocevski/502372/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin31.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=247363201.0 tmax=247622401.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 1.46
user 1.29
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502372/ft1_filtered_4FGL_J2129.1-0240_daily_bin31.fits" evtable="EVENTS" scfile=/scratch/kocevski/502372/ft2_4FGL_J2129.1-0240_daily_bin31.fits sctable="SC_DATA" outfile=/scratch/kocevski/502372/ltcube_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.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/502372/ft2_4FGL_J2129.1-0240_daily_bin31.fits
.....................!
real 13.90
user 13.42
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502372/ft1_filtered_4FGL_J2129.1-0240_daily_bin31.fits evtable="EVENTS" scfile=/scratch/kocevski/502372/ft2_4FGL_J2129.1-0240_daily_bin31.fits sctable="SC_DATA" expcube=/scratch/kocevski/502372/ltcube_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.fits outfile=/scratch/kocevski/502372/expmap_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.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/502372/ltcube_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.fits
.....................!
real 190.82
user 185.40
sys 4.86

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/502372/ft1_filtered_4FGL_J2129.1-0240_daily_bin31.fits scfile=/scratch/kocevski/502372/ft2_4FGL_J2129.1-0240_daily_bin31.fits outfile=/scratch/kocevski/502372/cmap_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502372/ft1_filtered_4FGL_J2129.1-0240_daily_bin31.fits scfile=/scratch/kocevski/502372/ft2_4FGL_J2129.1-0240_daily_bin31.fits outfile=/scratch/kocevski/502372/cmap_HighResolution_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1835       1.0000         .10000E-03   10000.    
     3 'Prefactor '    25.218       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.645       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.152       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.371       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.397       1.0000         .10000E-03   10000.    
    17 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.224       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.436       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2445       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78536       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=   7101.016     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2835 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.7880       -.23428E-06** at limit **
   2  Prefactor     1.1828        32.631       -.52277E-05   -.28546E-03
   3  Prefactor     25.215        37.482       -.48340E-05    .29434E-05
   4  Prefactor     26.649        22.127        .32725E-05    .12695E-04
   5  Prefactor     .10000E-03    12.865       -.94899E-06** at limit **
   6  Prefactor     41.149        62.303       -.32816E-05    .11154E-04
   7  Prefactor     .10000E-03    24.010        .67771E-05** at limit **
   8  Prefactor     .10000E-03    11.307        .24644E-05** at limit **
   9  Prefactor     .10000E-03    9.7171        .85636E-07** at limit **
  10  Prefactor     .10000E-03    16.892       -.53427E-06** at limit **
  11  Prefactor     .10000E-03    4.2729        .32417E-05** at limit **
  12  Prefactor     .10000E-03    .84216       -.15612E-06** at limit **
  13  Prefactor     .10000E-03    13.943       -.25179E-05** at limit **
  14  Prefactor     31.370        39.044       -.16140E-05    .11279E-05
  15  norm          .10000E-03    5.4243       -.40072E-06** at limit **
  16  Prefactor     21.392        34.317       -.68693E-05    .63121E-04
  17  norm          .10000E-03    13.655       -.21662E-05** at limit **
  18  Prefactor     .10000E-03    4.2635       -.32145E-05** at limit **
  19  Prefactor     .10000E-03    3.7588        .22778E-07** at limit **
  20  Prefactor     .10000E-03    17.989        .27915E-05** at limit **
  21  Prefactor     20.223        21.656       -.18062E-06    .31111E-04
  22  Prefactor     11.433        15.748       -.72265E-06    .51158E-04
  23  Prefactor     .10000E-03    27.954       -.68734E-05** at limit **
  24  Normalizat    1.2445        .21026        .77128E-06   -.89057E-05
  25  Prefactor     .78537        .10251        .30554E-06    .19458E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.18284
  Prefactor  = 25.2146
  Prefactor  = 26.6489
  Prefactor  = 0.0001
  Prefactor  = 41.1494
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.3703
  norm       = 0.0001
  Prefactor  = 21.3924
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.2232
  Prefactor  = 11.4326
  Prefactor  = 0.0001
  Normalizat = 1.24447
  Prefactor  = 0.785369
 **********
 **   18 **HESSE 
 **********

 FCN=   7101.016     FROM HESSE     STATUS=OK           421 CALLS     3256 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8391        .13730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1828        36.127        .41978E-03   -1.5490    
   3  Prefactor     25.215        37.505        .79771E-04   -1.4703    
   4  Prefactor     26.649        22.077        .77609E-04   -1.4675    
   5  Prefactor     .10000E-03    12.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.149        62.472        .62488E-04   -1.4424    
   7  Prefactor     .10000E-03    24.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.7458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.2889        .16919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .85636        .75422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.370        39.120        .71537E-04   -1.4587    
  15  norm          .10000E-03    5.4462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.392        34.057        .86590E-04   -1.4783    
  17  norm          .10000E-03    13.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.2268        .16826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.8039        .15947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     20.223        21.681        .89065E-04   -1.4808    
  22  Prefactor     11.433        15.752        .11846E-03   -1.5032    
  23  Prefactor     .10000E-03    28.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2445        .25550        .28838E-03   -.85239    
  25  Prefactor     .78537        .12475        .17929E-03   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22697e-09
Minuit parameter uncertainties:
  1  5.62255e-06
  2  13.0821
  3  37.5405
  4  22.0837
  5  7.81398e-05
  6  62.5716
  7  0.000115617
  8  3.88993e-05
  9  3.39333e-06
  10  1.3075e-05
  11  1.77556e-05
  12  2.08856e-06
  13  2.04476e-05
  14  39.1525
  15  2.58726e-06
  16  34.0874
  17  4.37382e-05
  18  4.32844e-05
  19  6.52118e-06
  20  1.06448e-05
  21  21.6892
  22  15.7573
  23  9.7627e-05
  24  0.255757
  25  0.124798
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.308e-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:  7.854e-01  1.248e-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.244e+00  2.558e-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: 7.93e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502372/likelihoodResults_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.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) = 7101.01601296
delta logL = -0.000281748773887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7101.01573121
delta logL = 5.65705704503e-10

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7101.012     FROM MIGRAD    STATUS=CONVERGED    189 CALLS      335 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18492E-01    .23253        .11481E-01    .33776E-02
   2  Index         5.7622        .92629        .50000       -.65423E-05
   3  Normalizat    1.2382        .26183        .28838E-03   -.16755E-04
   4  Prefactor     .78742        .12757        .17929E-03   -.24477E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.018492
  Index      = 5.76224
  Normalizat = 1.23824
  Prefactor  = 0.787416
 **********
 **   18 **HESSE 
 **********

 FCN=   7101.012     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      366 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18492E-01    108.03        .65692E-03   -1.5681    
   2  Index         5.7622        5.1040        .13907E-01    2.9885    
   3  Normalizat    1.2382        .16165        .11535E-04   -.85429    
   4  Prefactor     .78742        .67961E-01    .71715E-05   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.79253e-06
Minuit parameter uncertainties:
  1  2.82427
  2  76.3167
  3  0.161716
  4  0.0679681
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502372': 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) = 7101.01180058
delta logL = 0.0039306314311

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.849e-02  2.824e+00  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  5.762e+00  7.632e+01  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:  7.874e-01  6.797e-02  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  1.238e+00  1.617e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/502372/cmap_HighResolution_247363201_247622401_4FGL_J2129.1-0240_daily_bin31.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-03', job_status='DONE', photon_flux_upper_limit='7.93e-08', time_completed='2021-09-26 14:36:03.519249', job_id='502372', GAL2='0.79', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1632692163.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.93e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='31' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:36:03 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin31 322.296 -2.6829 247363201 247622401 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 :                                   751.38 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             294.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            938 sec.

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

