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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1631
RA = 322.296, Dec = -2.6829
tmin = 662083201, tmax = 662342401
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='560054', job_status='RUN', time_executed='2021-12-28 00:34:30.317190', time_epoch_executed='1640680470.32' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1631'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560054

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560054/ft1_4FGL_J2129.1-0240_daily_bin1631.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560054/ft2_4FGL_J2129.1-0240_daily_bin1631.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560054/ft1_4FGL_J2129.1-0240_daily_bin1631.fits outfile=/scratch/kocevski/560054/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1631.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=662083201.0 tmax=662342401.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.88
user 3.66
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/560054/ft1_filtered_4FGL_J2129.1-0240_daily_bin1631.fits" evtable="EVENTS" scfile=/scratch/kocevski/560054/ft2_4FGL_J2129.1-0240_daily_bin1631.fits sctable="SC_DATA" outfile=/scratch/kocevski/560054/ltcube_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.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/560054/ft2_4FGL_J2129.1-0240_daily_bin1631.fits
.....................!
real 12.68
user 12.24
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560054/ft1_filtered_4FGL_J2129.1-0240_daily_bin1631.fits evtable="EVENTS" scfile=/scratch/kocevski/560054/ft2_4FGL_J2129.1-0240_daily_bin1631.fits sctable="SC_DATA" expcube=/scratch/kocevski/560054/ltcube_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.fits outfile=/scratch/kocevski/560054/expmap_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.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/560054/ltcube_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.fits
.....................!
real 191.42
user 185.60
sys 5.34

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/560054/ft1_filtered_4FGL_J2129.1-0240_daily_bin1631.fits scfile=/scratch/kocevski/560054/ft2_4FGL_J2129.1-0240_daily_bin1631.fits outfile=/scratch/kocevski/560054/cmap_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.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/560054/ft1_filtered_4FGL_J2129.1-0240_daily_bin1631.fits scfile=/scratch/kocevski/560054/ft2_4FGL_J2129.1-0240_daily_bin1631.fits outfile=/scratch/kocevski/560054/cmap_HighResolution_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3159       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.567       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.466       1.0000         .10000E-03   10000.    
     4 'Prefactor '    39.102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11218E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5252       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8563       1.0000         .10000E-03   10000.    
    13 'Prefactor '    67.511       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2818       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4652       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10594E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9135       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.6367       1.0000         .10000E-03   10000.    
    21 'Prefactor '    71.688       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .99889       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80552       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=   7345.550     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2888 TOTAL
                     EDM=   .84E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3147        5.5138        .62437E-06   -.81272E-04
   2  Prefactor     16.570        16.051        .23380E-06    .50094E-05
   3  Prefactor     29.451        33.320        .16129E-05    .51019E-04
   4  Prefactor     39.082        29.358        .15364E-05    .80434E-04
   5  Prefactor     .10000E-03    11.107       -.66024E-06** at limit **
   6  Prefactor     .10000E-03    15.586       -.12385E-06** at limit **
   7  Prefactor     .10000E-03    6.0711        .32258E-07** at limit **
   8  Prefactor     .10000E-03    3.6590        .12072E-07** at limit **
   9  Prefactor     .10000E-03    6.5163       -.11964E-06** at limit **
  10  Prefactor     .10000E-03    81.606       -.11015E-05** at limit **
  11  Prefactor     3.5258        6.7400        .38650E-05   -.12053E-03
  12  Prefactor     3.8597        2.5692        .16918E-07    .58604E-04
  13  Prefactor     67.503        36.543        .98536E-06    .57187E-04
  14  Prefactor     6.2807        21.818        .19869E-06    .33796E-05
  15  norm          1.4648        5.4340        .58547E-06   -.66608E-05
  16  Prefactor     .10000E-03    32.806        .91813E-06** at limit **
  17  norm          .10000E-03    33.122        .31150E-06** at limit **
  18  Prefactor     .10000E-03    2.5422        .13697E-06** at limit **
  19  Prefactor     6.9154        6.8022        .93887E-07   -.15663E-04
  20  Prefactor     5.6373        9.2059        .31129E-06   -.22839E-05
  21  Prefactor     71.710        31.122       -.92932E-06   -.12379E-03
  22  Prefactor     .10000E-03    4.6463        .57941E-07** at limit **
  23  Prefactor     .10000E-03    32.404        .11381E-05** at limit **
  24  Normalizat    .99818        .21934       -.19834E-05    .11900E-04
  25  Prefactor     .80591        .10302        .16273E-06    .62991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.31473
  Prefactor  = 16.5698
  Prefactor  = 29.4507
  Prefactor  = 39.0816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.52577
  Prefactor  = 3.85966
  Prefactor  = 67.5034
  Prefactor  = 6.28069
  norm       = 1.46479
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.91543
  Prefactor  = 5.63726
  Prefactor  = 71.7099
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.998181
  Prefactor  = 0.805912
 **********
 **   18 **HESSE 
 **********

 FCN=   7345.550     FROM HESSE     STATUS=OK           421 CALLS     3309 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3147        5.5212        .74144E-03   -1.5167    
   2  Prefactor     16.570        16.080        .98402E-04   -1.4894    
   3  Prefactor     29.451        33.330        .73808E-04   -1.4622    
   4  Prefactor     39.082        29.378        .64098E-04   -1.4457    
   5  Prefactor     .10000E-03    11.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6653        .16011E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.5314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    82.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5258        6.7506        .10765E-02   -1.5332    
  12  Prefactor     3.8597        2.5585        .10311E-03   -1.5315    
  13  Prefactor     67.503        36.659        .48849E-04   -1.4063    
  14  Prefactor     6.2807        21.801        .16016E-03   -1.5207    
  15  norm          1.4648        5.3892        .35526E-03   -1.5466    
  16  Prefactor     .10000E-03    32.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    33.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5529        .13348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9154        6.8227        .15258E-03   -1.5182    
  20  Prefactor     5.6373        9.1975        .16920E-03   -1.5233    
  21  Prefactor     71.710        31.227        .47414E-04   -1.4012    
  22  Prefactor     .10000E-03    4.6527        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    33.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .99818        .26099        .32456E-03   -.93091    
  25  Prefactor     .80591        .12382        .17907E-03   -.99511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61706e-10
Minuit parameter uncertainties:
  1  5.52156
  2  16.0837
  3  33.3512
  4  29.3887
  5  0.000126682
  6  2.23702e-05
  7  2.13479e-06
  8  9.89351e-07
  9  1.58065e-05
  10  0.000221367
  11  6.75207
  12  2.55855
  13  36.6716
  14  21.8288
  15  5.391
  16  0.000146523
  17  0.00027578
  18  1.25997e-05
  19  6.82344
  20  9.19978
  21  31.2342
  22  7.44713e-06
  23  0.00034384
  24  0.261325
  25  0.123864
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.214e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.637e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
296        Scale:  7.565e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  8.059e-01  1.239e-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:  9.982e-01  2.613e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/560054/likelihoodResults_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.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) = 7345.54993889
delta logL = -5.78586068514e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7345.54988119
delta logL = -1.60533090821e-07

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 'Index     '    2.5889       1.0000          .0000       10.000    
     3 'Normalizat'    .99818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80591       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=   7345.550     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      285 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    9303.2        .18142E-02** at limit **
   2  Index         2.6905        8.2047        .50000       -.16411E-04
   3  Normalizat    .99818        .69049E-01    .32456E-03   -.80005E-04
   4  Prefactor     .80591        .34815E-01    .17907E-03   -.16051E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100035
  Index      = 2.69052
  Normalizat = 0.998182
  Prefactor  = 0.805912
 **********
 **   18 **HESSE 
 **********

 FCN=   7345.550     FROM HESSE     STATUS=OK            29 CALLS      314 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    185.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6905        6.3016        .50000       -.48013    
   3  Normalizat    .99818        .24017        .12982E-04   -.93091    
   4  Prefactor     .80591        .12125        .35815E-04   -.99511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48377e-10
Minuit parameter uncertainties:
  1  0.00508312
  2  5.66641
  3  0.24043
  4  0.121291
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560054': 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) = 7345.54988085
delta logL = 1.88286321645e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  5.083e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.691e+00  5.666e+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:  8.059e-01  1.213e-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:  9.982e-01  2.404e-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/560054/cmap_HighResolution_662083201_662342401_4FGL_J2129.1-0240_daily_bin1631.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-12-28 00:47:10.962047', job_id='560054', GAL2='0.81', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1640681230.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.88e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1631' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 28 00:47:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 560054: <4FGL_J2129.1-0240_daily_bin1631> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1631> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec 28 00:30:38 2021
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 28 00:30:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 28 00:30:40 2021
Terminated at Tue Dec 28 00:47:11 2021
Results reported at Tue Dec 28 00:47:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1631 322.296 -2.6829 662083201 662342401 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 :                                   762.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

