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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1605
RA = 322.296, Dec = -2.6829
tmin = 655344001, tmax = 655603201
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='469807', job_status='RUN', time_executed='2021-12-08 07:38:53.093318', time_epoch_executed='1638977933.09' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469807

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469807/ft1_4FGL_J2129.1-0240_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469807/ft1_4FGL_J2129.1-0240_daily_bin1605.fits outfile=/scratch/kocevski/469807/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1605.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=655344001.0 tmax=655603201.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 2.79
user 2.54
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.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/469807/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1605.fits evtable="EVENTS" outfile="/scratch/kocevski/469807/ft1_filtered_4FGL_J2129.1-0240_daily_bin1605.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469807/ft1_filtered_4FGL_J2129.1-0240_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/469807/ltcube_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.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/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.fits
.....................!
real 15.89
user 15.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469807/ft1_filtered_4FGL_J2129.1-0240_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/469807/ltcube_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.fits outfile=/scratch/kocevski/469807/expmap_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.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/469807/ltcube_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.fits
.....................!
real 191.16
user 185.86
sys 4.74

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/469807/ft1_filtered_4FGL_J2129.1-0240_daily_bin1605.fits scfile=/scratch/kocevski/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.fits outfile=/scratch/kocevski/469807/cmap_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469807/ft1_filtered_4FGL_J2129.1-0240_daily_bin1605.fits scfile=/scratch/kocevski/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.fits outfile=/scratch/kocevski/469807/cmap_HighResolution_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.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/469807/ft1_filtered_4FGL_J2129.1-0240_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/469807/ft2_4FGL_J2129.1-0240_daily_bin1605.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469807/Model_4FGL_J2129.1-0240_daily_bin1605.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/469807/ft1_filtered_4FGL_J2129.1-0240_daily_bin1605.fits.....................!
real 50.20
user 48.33
sys 1.61

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.825       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    55.375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.132       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9259       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.2825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    43.224       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.095       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20065E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.355       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15999E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1387       1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.696       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    74.835       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.134       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .54829       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0305       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=   4617.169     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2898 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.826        6.9338       -.73868E-07    .83250E-04
   2  Prefactor     .10000E-03    3.6405       -.52903E-07** at limit **
   3  Prefactor     55.376        47.144       -.27931E-06   -.11591E-04
   4  Prefactor     12.131        37.407       -.94563E-06   -.17742E-04
   5  Prefactor     .10000E-03    15.373        .24878E-06** at limit **
   6  Prefactor     .10000E-03    56.729       -.28548E-06** at limit **
   7  Prefactor     8.9268        12.942       -.88737E-07    .21474E-04
   8  Prefactor     7.2841        12.769       -.83253E-07    .71017E-04
   9  Prefactor     .10000E-03    24.775        .23873E-06** at limit **
  10  Prefactor     43.225        53.054        .44519E-05    .10930E-03
  11  Prefactor     12.097        7.9472       -.69214E-07    .19630E-04
  12  Prefactor     .10000E-03    15.934        .93761E-05** at limit **
  13  Prefactor     11.451        57.809        .24156E-05   -.20876E-04
  14  Prefactor     .10000E-03    22.885       -.38087E-06** at limit **
  15  norm          .10000E-03    6.9186       -.26310E-07** at limit **
  16  Prefactor     .10013E-03    379.84        .98301E-06** at limit **
  17  norm          .10000E-03    8.2533        .82076E-07** at limit **
  18  Prefactor     5.1386        7.5300        .43608E-06    .64193E-03
  19  Prefactor     20.696        13.250       -.11315E-06    .65419E-04
  20  Prefactor     .10000E-03    8.2664       -.11158E-06** at limit **
  21  Prefactor     74.816        55.346        .52615E-06    .16730E-03
  22  Prefactor     12.140        21.622        .32746E-06    .72377E-04
  23  Prefactor     .10000E-03    12.472        .59884E-07** at limit **
  24  Normalizat    .54835        .30903        .13894E-05    .28765E-03
  25  Prefactor     1.0304        .14221        .20984E-06    .76978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.8257
  Prefactor  = 0.0001
  Prefactor  = 55.3763
  Prefactor  = 12.1307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.92678
  Prefactor  = 7.28408
  Prefactor  = 0.0001
  Prefactor  = 43.2245
  Prefactor  = 12.097
  Prefactor  = 0.000100003
  Prefactor  = 11.4513
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100134
  norm       = 0.0001
  Prefactor  = 5.13859
  Prefactor  = 20.6965
  Prefactor  = 0.0001
  Prefactor  = 74.8164
  Prefactor  = 12.1404
  Prefactor  = 0.0001
  Normalizat = 0.54835
  Prefactor  = 1.03044
 **********
 **   18 **HESSE 
 **********

 FCN=   4617.169     FROM HESSE     STATUS=OK           425 CALLS     3323 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.826        6.9246        .10402E-03   -1.4938    
   2  Prefactor     .10000E-03    3.6432        .12663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     55.376        47.191        .53905E-04   -1.4218    
   4  Prefactor     12.131        37.420        .11501E-03   -1.5011    
   5  Prefactor     .10000E-03    15.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9268        12.926        .13416E-03   -1.5110    
   8  Prefactor     7.2841        12.743        .14863E-03   -1.5168    
   9  Prefactor     .10000E-03    24.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     43.225        53.003        .60977E-04   -1.4392    
  11  Prefactor     12.097        7.9413        .11518E-03   -1.5012    
  12  Prefactor     .10000E-03    15.963        .17552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.451        58.083        .11889E-03   -1.5031    
  14  Prefactor     .10000E-03    22.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.9414        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10013E-03    389.61        .40839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.2557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.1386        7.5603        .17735E-03   -1.5255    
  19  Prefactor     20.696        13.270        .88043E-04   -1.4798    
  20  Prefactor     .10000E-03    8.2795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     74.816        55.372        .46414E-04   -1.3976    
  22  Prefactor     12.140        21.612        .11500E-03   -1.5011    
  23  Prefactor     .10000E-03    12.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .54835        .33641        .43849E-03   -1.1022    
  25  Prefactor     1.0304        .15896        .16427E-03   -.91722    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5528e-09
Minuit parameter uncertainties:
  1  6.92499
  2  1.50163e-05
  3  47.2226
  4  37.492
  5  9.04392e-05
  6  0.000142758
  7  12.9299
  8  12.7482
  9  0.000103156
  10  53.0609
  11  7.94203
  12  0.000403117
  13  51.6595
  14  0.000127458
  15  1.0523e-05
  16  0.0145543
  17  1.32405e-05
  18  7.56173
  19  13.2722
  20  8.8879e-06
  21  55.4098
  22  21.6258
  23  4.74463e-05
  24  0.337667
  25  0.159033
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.322e+01  5.306e+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:  1.030e+00  1.590e-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:  5.484e-01  3.377e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.92
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 2.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.61e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/469807/likelihoodResults_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.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) = 4616.83885757
delta logL = 0.329745171811

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4616.83860361
delta logL = 0.329999135577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    69.048       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0289       1.0000          .0000       10.000    
     3 'Normalizat'    .57366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0197       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=   4616.839     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      299 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     68.928        72.045        .24153E-03    .63450E-04
   2  Index         2.0275        .65631        .84814E-02   -.30346E-04
   3  Normalizat    .57376        .30857        .42902E-03   -.36701E-04
   4  Prefactor     1.0197        .15586        .16495E-03    .53429E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 68.928
  Index      = 2.02754
  Normalizat = 0.573761
  Prefactor  = 1.01969
 **********
 **   18 **HESSE 
 **********

 FCN=   4616.839     FROM HESSE     STATUS=OK            23 CALLS      322 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     68.928        72.149        .96612E-05   -1.4046    
   2  Index         2.0275        .65720        .33926E-03   -.63663    
   3  Normalizat    .57376        .30864        .17161E-04   -1.0911    
   4  Prefactor     1.0197        .15589        .32990E-04   -.92076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03011e-10
Minuit parameter uncertainties:
  1  72.2412
  2  0.660163
  3  0.30957
  4  0.155956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469807': 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) = 4616.83860016
delta logL = 0.330002580683

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  6.893e+01  7.224e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.028e+00  6.602e-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:  1.020e+00  1.560e-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:  5.738e-01  3.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 2.03 +/- 0.66
Photon Flux (Free Index): 4.06e-08 +/- 5.25e-08
Energy Flux (Free Index): 2.62e-05 +/- 3.47e-05

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/469807/cmap_HighResolution_655344001_655603201_4FGL_J2129.1-0240_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.61e-02', comment='SUCCESS', energy_flux2='2.62e-05', dlogl='3.30e-01', photon_flux2='4.06e-08', job_status='DONE', time_completed='2021-12-08 07:48:52.496863', photon_index_error2='0.66', photon_index2='2.03', ts='0.92', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='2.05e-07', energy_flux_error2='3.47e-05', EG='0.55', time_epoch_completed='1638978532.5', return_code='0', job_id='469807', GAL2='1.02', EG2='0.57', return_code2='0', photon_flux_error2='5.25e-08', ts2='1.57', photon_index='2.64' WHERE bin_id='1605' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 07:48:52 PST 2021


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

Job <4FGL_J2129.1-0240_daily_bin1605> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec  8 07:35:33 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 07:35:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 07:35:39 2021
Terminated at Wed Dec  8 07:48:53 2021
Results reported at Wed Dec  8 07:48:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1605 322.296 -2.6829 655344001 655603201 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 :                                   598.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            800 sec.

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

