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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin11
RA = 322.296, Dec = -2.6829
tmin = 242179201, tmax = 242438401
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='502340', job_status='RUN', time_executed='2021-09-26 14:24:15.411263', time_epoch_executed='1632691455.41' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502340/ft1_4FGL_J2129.1-0240_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502340/ft2_4FGL_J2129.1-0240_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502340/ft1_4FGL_J2129.1-0240_daily_bin11.fits outfile=/scratch/kocevski/502340/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin11.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=242179201.0 tmax=242438401.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.47
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502340/ft1_filtered_4FGL_J2129.1-0240_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/502340/ft2_4FGL_J2129.1-0240_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/502340/ltcube_242179201_242438401_4FGL_J2129.1-0240_daily_bin11.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/502340/ft2_4FGL_J2129.1-0240_daily_bin11.fits
.....................!
real 15.87
user 15.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502340/ft1_filtered_4FGL_J2129.1-0240_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/502340/ft2_4FGL_J2129.1-0240_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/502340/ltcube_242179201_242438401_4FGL_J2129.1-0240_daily_bin11.fits outfile=/scratch/kocevski/502340/expmap_242179201_242438401_4FGL_J2129.1-0240_daily_bin11.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/502340/ltcube_242179201_242438401_4FGL_J2129.1-0240_daily_bin11.fits
.....................!
real 191.32
user 186.01
sys 4.75

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/502340/ft1_filtered_4FGL_J2129.1-0240_daily_bin11.fits scfile=/scratch/kocevski/502340/ft2_4FGL_J2129.1-0240_daily_bin11.fits outfile=/scratch/kocevski/502340/cmap_242179201_242438401_4FGL_J2129.1-0240_daily_bin11.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=322.296 yref=-2.6829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/502340/ft1_filtered_4FGL_J2129.1-0240_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/502340/ft2_4FGL_J2129.1-0240_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/502340/Model_4FGL_J2129.1-0240_daily_bin11.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/502340/ft1_filtered_4FGL_J2129.1-0240_daily_bin11.fits.....................!
real 81.26
user 79.75
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .92020       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5872       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.047       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    62.471       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1896       1.0000         .10000E-03   10000.    
     8 'Prefactor '    39.275       1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.166       1.0000         .10000E-03   10000.    
    10 'Prefactor '    49.272       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.453       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.271       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0413       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.3377       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96164       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87975       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=   8218.297     FROM MIGRAD    STATUS=CONVERGED    550 CALLS     2871 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .92184        2.5532        .11350E-05    .46064E-04
   2  Prefactor     5.5871        11.234        .30620E-06   -.23234E-04
   3  Prefactor     .10000E-03    8.4145       -.13213E-06** at limit **
   4  Prefactor     35.049        28.540        .17909E-06    .37303E-05
   5  Prefactor     .10000E-03    9.0244        .94056E-07** at limit **
   6  Prefactor     62.389        58.798       -.48471E-06   -.15678E-03
   7  Prefactor     2.1896        13.749        .14917E-05   -.89505E-05
   8  Prefactor     39.276        15.378       -.12817E-06   -.19980E-04
   9  Prefactor     26.166        19.698        .10154E-06   -.86974E-05
  10  Prefactor     49.271        37.171       -.44922E-07   -.23779E-04
  11  Prefactor     2.3029        3.6348        .37973E-06   -.52347E-04
  12  Prefactor     1.5741        2.1416       -.32368E-07   -.34291E-04
  13  Prefactor     32.440        30.173       -.50471E-06   -.63843E-04
  14  Prefactor     .10000E-03    8.9519        .46329E-07** at limit **
  15  norm          .10000E-03    3.9739        .10260E-06** at limit **
  16  Prefactor     12.256        32.545       -.12323E-05   -.31932E-04
  17  norm          2.0336        50.885        .12273E-05   -.64554E-05
  18  Prefactor     .10000E-03    2.7694       -.42396E-06** at limit **
  19  Prefactor     6.3377        5.9493        .95299E-07   -.16254E-04
  20  Prefactor     6.2567        10.393        .45929E-05   -.74733E-04
  21  Prefactor     .10000E-03    9.4585       -.31046E-07** at limit **
  22  Prefactor     .10000E-03    15.793        .35072E-06** at limit **
  23  Prefactor     .10000E-03    4.8758        .48105E-07** at limit **
  24  Normalizat    .96177        .21283        .14295E-05   -.16019E-03
  25  Prefactor     .87969        .10153       -.16058E-05    .99128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.921841
  Prefactor  = 5.58709
  Prefactor  = 0.0001
  Prefactor  = 35.049
  Prefactor  = 0.0001
  Prefactor  = 62.3892
  Prefactor  = 2.18963
  Prefactor  = 39.2764
  Prefactor  = 26.1662
  Prefactor  = 49.2714
  Prefactor  = 2.30292
  Prefactor  = 1.57414
  Prefactor  = 32.44
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.2557
  norm       = 2.03359
  Prefactor  = 0.0001
  Prefactor  = 6.33774
  Prefactor  = 6.25673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.961773
  Prefactor  = 0.879687
 **********
 **   18 **HESSE 
 **********

 FCN=   8218.297     FROM HESSE     STATUS=OK           433 CALLS     3304 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .92184        2.5078        .23341E-03   -1.5516    
   2  Prefactor     5.5871        11.234        .16996E-03   -1.5235    
   3  Prefactor     .10000E-03    8.4159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.049        28.537        .67692E-04   -1.4523    
   5  Prefactor     .10000E-03    9.0268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     62.389        58.858        .25384E-03   -1.4127    
   7  Prefactor     2.1896        13.657        .27814E-03   -1.5412    
   8  Prefactor     39.276        15.337        .63957E-04   -1.4454    
   9  Prefactor     26.166        19.699        .78315E-04   -1.4684    
  10  Prefactor     49.271        36.926        .57129E-04   -1.4303    
  11  Prefactor     2.3029        3.6164        .20994E-03   -1.5404    
  12  Prefactor     1.5741        2.0917        .13493E-03   -1.5457    
  13  Prefactor     32.440        30.132        .70338E-04   -1.4568    
  14  Prefactor     .10000E-03    8.9539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.0191        .17650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.256        32.300        .11435E-03   -1.5008    
  17  norm          2.0336        50.476        .28943E-03   -1.5423    
  18  Prefactor     .10000E-03    2.7806        .14719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.3377        5.9657        .15944E-03   -1.5204    
  20  Prefactor     6.2567        10.484        .80221E-03   -1.5208    
  21  Prefactor     .10000E-03    9.4906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.8805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96177        .24799        .33314E-03   -.94322    
  25  Prefactor     .87969        .11729        .17550E-03   -.96855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8382e-10
Minuit parameter uncertainties:
  1  2.50807
  2  11.2382
  3  2.31216e-05
  4  28.548
  5  3.48321e-06
  6  58.9125
  7  10.9405
  8  15.3389
  9  19.7038
  10  36.9434
  11  3.61678
  12  2.09182
  13  30.1462
  14  2.53237e-06
  15  2.3079e-06
  16  32.3458
  17  20.2816
  18  1.3853e-06
  19  5.96624
  20  10.4867
  21  2.23084e-05
  22  4.84266e-05
  23  8.55435e-06
  24  0.248285
  25  0.117319
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.927e+01  3.694e+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:  8.797e-01  1.173e-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.618e-01  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.65
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 6.26e-08 +/- 4.69e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.19e-05

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) = 8218.10366573
delta logL = 0.193679007396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8218.10320828
delta logL = 0.194136462133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.530       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2027       1.0000          .0000       10.000    
     3 'Normalizat'    .98924       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87034       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.

 FCN=   8218.103     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.661        1216.9        .12893E-02   -.13932E-05
   2  Index         2.2054        5.9512        .24740       -.90684E-05
   3  Normalizat    .98901        .12287        .74371E-01   -.47674E-05
   4  Prefactor     .87037        .43095E-01    .44626E-01   -.49450E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.6613
  Index      = 2.20539
  Normalizat = 0.989011
  Prefactor  = 0.870373
 **********
 **   18 **HESSE 
 **********

 FCN=   8218.103     FROM HESSE     STATUS=OK            31 CALLS      297 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.661        45.194        .51571E-04   -1.4149    
   2  Index         2.2054        .64567        .93062E-02   -.59309    
   3  Normalizat    .98901        .23152        .32909E-03   -.93399    
   4  Prefactor     .87037        .11634        .17633E-03   -.97184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34547e-12
Minuit parameter uncertainties:
  1  45.2194
  2  0.648307
  3  0.231751
  4  0.11637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502340': 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) = 8218.10319468
delta logL = 0.194150061558

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  6.066e+01  4.522e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.205e+00  6.483e-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:  8.704e-01  1.164e-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.890e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.03
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 2.21 +/- 0.65
Photon Flux (Free Index): 4.37e-08 +/- 4.45e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.72e-05

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/502340/cmap_HighResolution_242179201_242438401_4FGL_J2129.1-0240_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.26e-08', energy_flux2='1.94e-05', photon_flux_error='4.69e-08', dlogl='1.94e-01', energy_flux='1.59e-05', photon_flux2='4.37e-08', job_status='DONE', time_completed='2021-09-26 14:36:30.433877', photon_index_error2='0.65', photon_index2='2.21', ts='4.65', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.96', time_epoch_completed='1632692190.43', return_code='0', job_id='502340', GAL2='0.87', EG2='0.99', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.45e-08', ts2='5.03', photon_index='2.64' WHERE bin_id='11' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:36:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 502340: <4FGL_J2129.1-0240_daily_bin11> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin11 322.296 -2.6829 242179201 242438401 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 :                                   734.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            968 sec.

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

