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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin249
RA = 322.296, Dec = -2.6829
tmin = 303868801, tmax = 304128001
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='503731', job_status='RUN', time_executed='2021-09-26 14:28:56.699870', time_epoch_executed='1632691736.7' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='249'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503731

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503731/ft1_4FGL_J2129.1-0240_daily_bin249.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503731/ft2_4FGL_J2129.1-0240_daily_bin249.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503731/ft1_4FGL_J2129.1-0240_daily_bin249.fits outfile=/scratch/kocevski/503731/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin249.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=303868801.0 tmax=304128001.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.87
user 2.59
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503731/ft1_filtered_4FGL_J2129.1-0240_daily_bin249.fits" evtable="EVENTS" scfile=/scratch/kocevski/503731/ft2_4FGL_J2129.1-0240_daily_bin249.fits sctable="SC_DATA" outfile=/scratch/kocevski/503731/ltcube_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.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/503731/ft2_4FGL_J2129.1-0240_daily_bin249.fits
.....................!
real 12.22
user 11.90
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503731/ft1_filtered_4FGL_J2129.1-0240_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/503731/ft2_4FGL_J2129.1-0240_daily_bin249.fits sctable="SC_DATA" expcube=/scratch/kocevski/503731/ltcube_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.fits outfile=/scratch/kocevski/503731/expmap_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.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/503731/ltcube_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.fits
.....................!
real 156.40
user 151.83
sys 4.29

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/503731/ft1_filtered_4FGL_J2129.1-0240_daily_bin249.fits scfile=/scratch/kocevski/503731/ft2_4FGL_J2129.1-0240_daily_bin249.fits outfile=/scratch/kocevski/503731/cmap_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.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.48
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503731/ft1_filtered_4FGL_J2129.1-0240_daily_bin249.fits scfile=/scratch/kocevski/503731/ft2_4FGL_J2129.1-0240_daily_bin249.fits outfile=/scratch/kocevski/503731/cmap_HighResolution_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503731/ft1_filtered_4FGL_J2129.1-0240_daily_bin249.fits evtable="EVENTS" scfile=/scratch/kocevski/503731/ft2_4FGL_J2129.1-0240_daily_bin249.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503731/Model_4FGL_J2129.1-0240_daily_bin249.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/503731/ft1_filtered_4FGL_J2129.1-0240_daily_bin249.fits.....................!
real 53.06
user 51.92
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11522E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.702       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11337E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23647E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28652       1.0000         .10000E-03   10000.    
    13 'Prefactor '    71.012       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.214       1.0000         .10000E-03   10000.    
    15 'norm      '    5.5743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.682       1.0000         .10000E-03   10000.    
    17 'norm      '    17.866       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2699       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.499       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3066       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .38321       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1781       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=   6384.895     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2916 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0059       -.29202E-06** at limit **
   2  Prefactor     .10000E-03    40.341       -.20194E-05** at limit **
   3  Prefactor     16.776        36.999        .13591E-05    .32060E-04
   4  Prefactor     33.691        32.209       -.45040E-06    .91110E-05
   5  Prefactor     .10000E-03    73.895       -.28874E-05** at limit **
   6  Prefactor     .10000E-03    40.260        .69376E-06** at limit **
   7  Prefactor     .10001E-03    119.31        .45567E-05** at limit **
   8  Prefactor     .10000E-03    8.1635       -.19838E-06** at limit **
   9  Prefactor     .10000E-03    27.484        .69985E-06** at limit **
  10  Prefactor     .10000E-03    23.134       -.78953E-06** at limit **
  11  Prefactor     .10000E-03    3.9878       -.16497E-06** at limit **
  12  Prefactor     .28740        2.2491       -.37613E-06    .30277E-04
  13  Prefactor     71.094        43.868        .18890E-05    .45195E-03
  14  Prefactor     32.248        37.906        .47851E-06    .11601E-03
  15  norm          5.5741        5.7914       -.52177E-06   -.16736E-03
  16  Prefactor     19.754        50.815        .92663E-05    .17148E-03
  17  norm          17.874        20.064       -.10489E-05   -.28670E-04
  18  Prefactor     .10000E-03    4.3188        .11514E-05** at limit **
  19  Prefactor     7.2789        9.0406       -.11482E-05   -.31027E-03
  20  Prefactor     10.505        10.842       -.67012E-06   -.25070E-04
  21  Prefactor     .10000E-03    27.437        .10315E-05** at limit **
  22  Prefactor     3.3149        11.785        .11174E-04   -.10039E-03
  23  Prefactor     .10000E-03    12.133       -.68953E-06** at limit **
  24  Normalizat    .38234        .29071        .10928E-05   -.27509E-04
  25  Prefactor     1.1783        .14078       -.14861E-05    .87551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.776
  Prefactor  = 33.6913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.287397
  Prefactor  = 71.0937
  Prefactor  = 32.2475
  norm       = 5.57414
  Prefactor  = 19.7538
  norm       = 17.8743
  Prefactor  = 0.0001
  Prefactor  = 7.27891
  Prefactor  = 10.5051
  Prefactor  = 0.0001
  Prefactor  = 3.3149
  Prefactor  = 0.0001
  Normalizat = 0.382341
  Prefactor  = 1.17827
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.895     FROM HESSE     STATUS=OK           425 CALLS     3341 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.1638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.776        37.021        .97829E-04   -1.4889    
   4  Prefactor     33.691        32.066        .69026E-04   -1.4546    
   5  Prefactor     .10000E-03    74.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    40.290        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    124.82        .36563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.1909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    27.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    23.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.1061        .31153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .28740        4.5811        .21005E-02   -1.5601    
  13  Prefactor     71.094        44.247        .47638E-04   -1.4020    
  14  Prefactor     32.248        37.898        .70598E-04   -1.4572    
  15  norm          5.5741        5.7985        .17016E-03   -1.5236    
  16  Prefactor     19.754        51.375        .90280E-04   -1.4819    
  17  norm          17.874        20.035        .94757E-04   -1.4862    
  18  Prefactor     .10000E-03    4.3138        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2789        8.9257        .14876E-03   -1.5168    
  20  Prefactor     10.505        10.845        .12366E-03   -1.5060    
  21  Prefactor     .10000E-03    27.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.3149        12.042        .11132E-02   -1.5344    
  23  Prefactor     .10000E-03    12.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .38234        .28005        .50766E-03   -1.1822    
  25  Prefactor     1.1783        .14010        .15635E-03   -.87003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29494e-09
Minuit parameter uncertainties:
  1  2.73066e-05
  2  0.000115405
  3  37.0717
  4  32.0825
  5  0.000316624
  6  5.29914e-05
  7  0.00212837
  8  9.78312e-06
  9  7.2889e-05
  10  6.65799e-05
  11  1.30233e-05
  12  2.29466
  13  44.2678
  14  37.9259
  15  5.79906
  16  51.4908
  17  20.0428
  18  4.1145e-05
  19  8.92734
  20  10.8471
  21  2.80475e-05
  22  12.0512
  23  0.000110329
  24  0.281083
  25  0.140143
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  6.658e-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:  1.178e+00  1.401e-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:  3.823e-01  2.811e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503731/likelihoodResults_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.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) = 6384.89508174
delta logL = -0.000205704360269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6384.8948782
delta logL = -2.16382250073e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1023       1.0000          .0000       10.000    
     3 'Normalizat'    .38234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1783       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=   6384.895     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      297 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    145.94        .18142E-01** at limit **
   2  Index         1.9304        6.2179        .50000        .15193E-06
   3  Normalizat    .38233        .10077E-01    .50770E-03   -.26772E-02
   4  Prefactor     1.1783        .53011E-02    .15635E-03   -.87039E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.93042
  Normalizat = 0.382332
  Prefactor  = 1.17826
 **********
 **   18 **HESSE 
 **********

 FCN=   6384.895     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      326 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    731.84        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9304        5.9200        .50000       -.66101    
   3  Normalizat    .38233        .23034E-01    .10154E-03   -1.1822    
   4  Prefactor     1.1783        .12118E-01    .31270E-04   -.87003    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.43865e-09
Minuit parameter uncertainties:
  1  0.00150277
  2  945.195
  3  0.0230347
  4  0.0121179
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503731': 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) = 6384.89487503
delta logL = 1.00794022728e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.503e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.930e+00  9.452e+02  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.178e+00  1.212e-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:  3.823e-01  2.303e-02  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/503731/cmap_HighResolution_303868801_304128001_4FGL_J2129.1-0240_daily_bin249.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.85e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-26 14:38:43.613576', job_id='503731', GAL2='1.18', fit_tolerance='1e-08', EG2='0.38', EG='0.38', time_epoch_completed='1632692323.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='1.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='249' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:38:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 503731: <4FGL_J2129.1-0240_daily_bin249> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin249> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:25:24 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:26:32 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:26:32 2021
Terminated at Sun Sep 26 14:38:44 2021
Results reported at Sun Sep 26 14:38:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin249 322.296 -2.6829 303868801 304128001 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 :                                   583.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             258.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            800 sec.

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

