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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin353
RA = 322.296, Dec = -2.6829
tmin = 330825601, tmax = 331084801
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='504700', job_status='RUN', time_executed='2021-09-26 14:35:00.381921', time_epoch_executed='1632692100.38' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504700

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504700/ft1_4FGL_J2129.1-0240_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504700/ft2_4FGL_J2129.1-0240_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504700/ft1_4FGL_J2129.1-0240_daily_bin353.fits outfile=/scratch/kocevski/504700/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin353.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=330825601.0 tmax=331084801.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.39
user 3.14
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504700/ft1_filtered_4FGL_J2129.1-0240_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/504700/ft2_4FGL_J2129.1-0240_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/504700/ltcube_330825601_331084801_4FGL_J2129.1-0240_daily_bin353.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/504700/ft2_4FGL_J2129.1-0240_daily_bin353.fits
.....................!
real 13.10
user 12.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504700/ft1_filtered_4FGL_J2129.1-0240_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/504700/ft2_4FGL_J2129.1-0240_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/504700/ltcube_330825601_331084801_4FGL_J2129.1-0240_daily_bin353.fits outfile=/scratch/kocevski/504700/expmap_330825601_331084801_4FGL_J2129.1-0240_daily_bin353.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/504700/ltcube_330825601_331084801_4FGL_J2129.1-0240_daily_bin353.fits
.....................!
real 192.56
user 186.37
sys 5.54

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/504700/ft1_filtered_4FGL_J2129.1-0240_daily_bin353.fits scfile=/scratch/kocevski/504700/ft2_4FGL_J2129.1-0240_daily_bin353.fits outfile=/scratch/kocevski/504700/cmap_330825601_331084801_4FGL_J2129.1-0240_daily_bin353.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.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504700/ft1_filtered_4FGL_J2129.1-0240_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/504700/ft2_4FGL_J2129.1-0240_daily_bin353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504700/Model_4FGL_J2129.1-0240_daily_bin353.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/504700/ft1_filtered_4FGL_J2129.1-0240_daily_bin353.fits.....................!
real 53.53
user 52.03
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.4119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.280       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27887E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.696       1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.420       1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.857       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.987       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.7093       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    18.172       1.0000         .10000E-03   10000.    
    16 'Prefactor '    50.145       1.0000         .10000E-03   10000.    
    17 'norm      '    35.632       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1570       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4239       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.8100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12062E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.201       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .32283       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0072       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=   5279.296     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     2914 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.4565        .31328E-07** at limit **
   2  Prefactor     6.4071        15.670       -.19720E-05   -.83813E-04
   3  Prefactor     .10000E-03    31.698       -.24271E-05** at limit **
   4  Prefactor     27.262        22.698       -.26473E-06   -.16201E-03
   5  Prefactor     .10000E-03    41.031        .85114E-05** at limit **
   6  Prefactor     71.688        62.094       -.71846E-05   -.28809E-04
   7  Prefactor     37.397        33.831       -.13943E-04   -.98192E-04
   8  Prefactor     13.863        21.172        .88059E-05   -.34296E-04
   9  Prefactor     .10000E-03    6.6382        .16294E-06** at limit **
  10  Prefactor     37.967        45.366       -.17835E-04   -.44967E-04
  11  Prefactor     4.7096        4.8348        .27854E-05    .23153E-04
  12  Prefactor     2.3496        2.3347        .12492E-05   -.15470E-03
  13  Prefactor     .10000E-03    7.3581       -.75001E-07** at limit **
  14  Prefactor     .10000E-03    48.553        .32734E-05** at limit **
  15  norm          18.173        14.425        .33401E-06   -.58375E-04
  16  Prefactor     50.136        38.800       -.57476E-05   -.25909E-04
  17  norm          35.630        20.263       -.72912E-07   -.37626E-04
  18  Prefactor     6.1576        6.1253        .21957E-06   -.65344E-03
  19  Prefactor     3.4209        9.5903        .75092E-05   -.30907E-03
  20  Prefactor     .10000E-03    5.0582       -.10961E-06** at limit **
  21  Prefactor     5.8094        12.778       -.70497E-06   -.59617E-04
  22  Prefactor     .10000E-03    10.553        .89042E-08** at limit **
  23  Prefactor     15.206        14.791       -.16049E-05   -.34071E-04
  24  Normalizat    .32310        .31341        .79111E-05   -.24425E-04
  25  Prefactor     1.0071        .14386       -.56850E-06   -.27733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.40712
  Prefactor  = 0.0001
  Prefactor  = 27.262
  Prefactor  = 0.0001
  Prefactor  = 71.6882
  Prefactor  = 37.397
  Prefactor  = 13.8629
  Prefactor  = 0.0001
  Prefactor  = 37.9675
  Prefactor  = 4.70956
  Prefactor  = 2.3496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.1727
  Prefactor  = 50.1364
  norm       = 35.6298
  Prefactor  = 6.15763
  Prefactor  = 3.42087
  Prefactor  = 0.0001
  Prefactor  = 5.80939
  Prefactor  = 0.000100001
  Prefactor  = 15.2064
  Normalizat = 0.3231
  Prefactor  = 1.00712
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.296     FROM HESSE     STATUS=OK           425 CALLS     3339 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6135        .29921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.4071        15.453        .15850E-03   -1.5202    
   3  Prefactor     .10000E-03    31.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.262        22.608        .76702E-04   -1.4663    
   5  Prefactor     .10000E-03    41.514        .21420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     71.688        61.654        .47412E-04   -1.4013    
   7  Prefactor     37.397        33.702        .65518E-04   -1.4484    
   8  Prefactor     13.863        21.069        .10760E-03   -1.4963    
   9  Prefactor     .10000E-03    6.6424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.967        45.205        .65029E-04   -1.4475    
  11  Prefactor     4.7096        4.8301        .15619E-03   -1.5274    
  12  Prefactor     2.3496        2.3136        .99734E-04   -1.5401    
  13  Prefactor     .10000E-03    7.3603        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    48.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          18.173        14.419        .93954E-04   -1.4855    
  16  Prefactor     50.136        38.630        .56632E-04   -1.4291    
  17  norm          35.630        20.192        .67137E-04   -1.4513    
  18  Prefactor     6.1576        6.1168        .80896E-03   -1.5212    
  19  Prefactor     3.4209        9.1999        .21861E-03   -1.5338    
  20  Prefactor     .10000E-03    5.0901        .15955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.8094        12.756        .16662E-03   -1.5226    
  22  Prefactor     .10000E-03    108.92        .44221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.206        14.384        .10273E-03   -1.4928    
  24  Normalizat    .32310        .29353        .49692E-03   -1.2149    
  25  Prefactor     1.0071        .14252        .15162E-03   -.92493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.95671e-10
Minuit parameter uncertainties:
  1  6.57387e-06
  2  15.4629
  3  2.58372e-05
  4  22.615
  5  0.000102731
  6  61.7088
  7  33.7192
  8  21.0802
  9  6.75814e-07
  10  45.2457
  11  4.83052
  12  2.31371
  13  1.80455e-05
  14  7.18236e-05
  15  14.4216
  16  38.6489
  17  20.1958
  18  6.11739
  19  9.20369
  20  3.72094e-06
  21  12.7621
  22  0.000515319
  23  14.3877
  24  0.294935
  25  0.142569
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.797e+01  4.525e+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.007e+00  1.426e-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.231e-01  2.949e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 5.74e-08
Energy Flux (Fixed Index): 1.22e-05 +/- 1.46e-05

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

Saving results to:
/scratch/kocevski/504700/likelihoodResults_330825601_331084801_4FGL_J2129.1-0240_daily_bin353.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) = 5279.25835962
delta logL = 0.0378996155241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5279.25568852
delta logL = 0.0405707109157

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    47.875       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3925       1.0000          .0000       10.000    
     3 'Normalizat'    .33200       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0033       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=   5279.256     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      290 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     47.876        60.766        .57953E-04   -.20955E-03
   2  Index         2.3924        .82342        .84283E-02   -.14657E-03
   3  Normalizat    .33192        .26802        .49038E-03    .48314E-04
   4  Prefactor     1.0033        .14067        .15187E-03    .14830E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 47.8762
  Index      = 2.39244
  Normalizat = 0.331918
  Prefactor  = 1.00331
 **********
 **   18 **HESSE 
 **********

 FCN=   5279.256     FROM HESSE     STATUS=OK            23 CALLS      313 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     47.876        59.129        .11591E-04   -1.4323    
   2  Index         2.3924        .80087        .33713E-03   -.54862    
   3  Normalizat    .33192        .26779        .19615E-04   -1.2098    
   4  Prefactor     1.0033        .14054        .30373E-04   -.92619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27765e-10
Minuit parameter uncertainties:
  1  59.2018
  2  0.805652
  3  0.268824
  4  0.140593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504700': 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) = 5279.25568847
delta logL = 0.0405707667887

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.788e+01  5.920e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.392e+00  8.057e-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.003e+00  1.406e-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.319e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 2.39 +/- 0.81
Photon Flux (Free Index): 4.36e-08 +/- 5.26e-08
Energy Flux (Free Index): 1.44e-05 +/- 1.80e-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/504700/cmap_HighResolution_330825601_331084801_4FGL_J2129.1-0240_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.33e-02', comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.44e-05', photon_flux_error='5.74e-08', dlogl='4.06e-02', energy_flux='1.22e-05', photon_flux2='4.36e-08', job_status='DONE', time_completed='2021-09-26 14:45:44.632010', photon_index_error2='0.81', photon_index2='2.39', ts='1.21', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.80e-05', EG='0.32', time_epoch_completed='1632692744.63', return_code='0', job_id='504700', GAL2='1.00', EG2='0.33', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.26e-08', ts2='1.30', photon_index='2.64' WHERE bin_id='353' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:45:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 504700: <4FGL_J2129.1-0240_daily_bin353> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin353> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 14:30:22 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:31:24 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:31:24 2021
Terminated at Sun Sep 26 14:45:45 2021
Results reported at Sun Sep 26 14:45:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin353 322.296 -2.6829 330825601 331084801 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 :                                   643.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             231.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            923 sec.

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

