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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin228
RA = 322.296, Dec = -2.6829
tmin = 298425601, tmax = 298684801
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='503698', job_status='RUN', time_executed='2021-09-26 14:28:47.085353', time_epoch_executed='1632691727.09' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='228'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503698

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503698/ft1_4FGL_J2129.1-0240_daily_bin228.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503698/ft2_4FGL_J2129.1-0240_daily_bin228.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503698/ft1_4FGL_J2129.1-0240_daily_bin228.fits outfile=/scratch/kocevski/503698/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin228.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=298425601.0 tmax=298684801.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.34
user 3.09
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503698/ft1_filtered_4FGL_J2129.1-0240_daily_bin228.fits" evtable="EVENTS" scfile=/scratch/kocevski/503698/ft2_4FGL_J2129.1-0240_daily_bin228.fits sctable="SC_DATA" outfile=/scratch/kocevski/503698/ltcube_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.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/503698/ft2_4FGL_J2129.1-0240_daily_bin228.fits
.....................!
real 14.35
user 13.91
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503698/ft1_filtered_4FGL_J2129.1-0240_daily_bin228.fits evtable="EVENTS" scfile=/scratch/kocevski/503698/ft2_4FGL_J2129.1-0240_daily_bin228.fits sctable="SC_DATA" expcube=/scratch/kocevski/503698/ltcube_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.fits outfile=/scratch/kocevski/503698/expmap_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.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/503698/ltcube_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.fits
.....................!
real 193.61
user 187.71
sys 5.18

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/503698/ft1_filtered_4FGL_J2129.1-0240_daily_bin228.fits scfile=/scratch/kocevski/503698/ft2_4FGL_J2129.1-0240_daily_bin228.fits outfile=/scratch/kocevski/503698/cmap_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.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.54
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503698/ft1_filtered_4FGL_J2129.1-0240_daily_bin228.fits scfile=/scratch/kocevski/503698/ft2_4FGL_J2129.1-0240_daily_bin228.fits outfile=/scratch/kocevski/503698/cmap_HighResolution_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=322.296 yref=-2.6829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11991E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11394E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.699       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.232       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7899       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10299E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    40.477       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.478       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.2960       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7776       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12382       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11825E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .16631E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4670       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5598       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16483E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5520       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .67663       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94131       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=   5053.256     FROM MIGRAD    STATUS=CONVERGED   1088 CALLS     3408 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9465        .30445E-03** at limit **
   2  Prefactor     .10000E-03    23.900        .18142E-02** at limit **
   3  Prefactor     .10002E-03    42.634        .18142E-02** at limit **
   4  Prefactor     .10000E-03    24.756        .18142E-02** at limit **
   5  Prefactor     39.685        29.022        .63616E-04    .37278E-04
   6  Prefactor     32.299        54.767        .70579E-04    .17235E-04
   7  Prefactor     2.7941        27.715        .24360E-03   -.37243E-04
   8  Prefactor     .10000E-03    7.1600        .18142E-02** at limit **
   9  Prefactor     40.455        27.221        .63004E-04    .21112E-04
  10  Prefactor     15.470        25.395        .10180E-03   -.24010E-04
  11  Prefactor     1.2954        3.8257        .23488E-03   -.21496E-03
  12  Prefactor     1.7844        2.7557        .12881E-03    .74846E-03
  13  Prefactor     .10059E-03    42.431        .10799    ** at limit **
  14  Prefactor     .10000E-03    10.404        .18142E-02** at limit **
  15  norm          .10000E-03    3.2320        .12481E-02** at limit **
  16  Prefactor     .10001E-03    164.50        .18142E-02** at limit **
  17  norm          .10000E-03    30.074        .18142E-02** at limit **
  18  Prefactor     7.4906        7.6916        .14677E-03    .13734E-03
  19  Prefactor     4.5602        7.2983        .94258E-03    .13580E-03
  20  Prefactor     .10001E-03    46.292        .40007E-02** at limit **
  21  Prefactor     .10000E-03    8.0307        .18142E-02** at limit **
  22  Prefactor     3.5443        14.733        .21446E-03    .13020E-03
  23  Prefactor     .10000E-03    23.879        .18142E-02** at limit **
  24  Normalizat    .67651        .28577        .35295E-03    .54306E-04
  25  Prefactor     .94142        .14245        .15698E-03    .48647E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 39.6845
  Prefactor  = 32.2987
  Prefactor  = 2.79412
  Prefactor  = 0.0001
  Prefactor  = 40.4551
  Prefactor  = 15.4704
  Prefactor  = 1.29544
  Prefactor  = 1.78438
  Prefactor  = 0.000100587
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.000100003
  Prefactor  = 7.49064
  Prefactor  = 4.56021
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 3.54431
  Prefactor  = 0.000100001
  Normalizat = 0.676509
  Prefactor  = 0.941421
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.256     FROM HESSE     STATUS=OK           413 CALLS     3821 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9467        .60889E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    42.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     39.685        29.022        .12723E-04   -1.4447    
   6  Prefactor     32.299        54.820        .28231E-05   -1.4571    
   7  Prefactor     2.7941        27.705        .97439E-05   -1.5374    
   8  Prefactor     .10000E-03    7.1609        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     40.455        27.226        .25202E-05   -1.4435    
  10  Prefactor     15.470        25.400        .40721E-05   -1.4921    
  11  Prefactor     1.2954        3.8255        .93951E-05   -1.5480    
  12  Prefactor     1.7844        2.7551        .51522E-05   -1.5441    
  13  Prefactor     .10059E-03    39.889        .11231       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.404        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.2320        .24962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    164.60        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    30.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.4906        7.6908        .58707E-05   -1.5161    
  19  Prefactor     4.5602        7.2963        .37703E-04   -1.5281    
  20  Prefactor     .10001E-03    46.816        .80013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0310        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5443        14.727        .85783E-05   -1.5331    
  23  Prefactor     .10000E-03    23.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .67651        .28592        .14118E-04   -1.0483    
  25  Prefactor     .94142        .14253        .31397E-04   -.94708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83725e-09
Minuit parameter uncertainties:
  1  1.54446e-05
  2  0.000658116
  3  0.00172184
  4  0.000165412
  5  29.0322
  6  54.9053
  7  17.607
  8  9.96347e-05
  9  27.2341
  10  25.4175
  11  3.8262
  12  2.75533
  13  0.00968591
  14  5.46256e-05
  15  9.40833e-06
  16  0.00203032
  17  0.000557965
  18  7.69182
  19  7.29777
  20  0.00120787
  21  4.56611e-05
  22  14.4556
  23  0.000279866
  24  0.286548
  25  0.142588
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.547e+01  2.542e+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:  9.414e-01  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:  6.765e-01  2.865e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.66
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503698/likelihoodResults_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.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) = 5052.9038742
delta logL = 0.35191704973

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5052.85384004
delta logL = 0.401951215767

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.565       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7794       1.0000          .0000       10.000    
     3 'Normalizat'    .68955       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93621       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=   5052.854     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      210 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.565        37.873        .20205E-02    .10375E-02
   2  Index         1.7794        .75555        .27237        .47099E-06
   3  Normalizat    .68958        .22696        .78997E-01   -.15747E-03
   4  Prefactor     .93619        .11816        .45465E-01   -.45118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.565
  Index      = 1.77938
  Normalizat = 0.689576
  Prefactor  = 0.936194
 **********
 **   18 **HESSE 
 **********

 FCN=   5052.854     FROM HESSE     STATUS=OK            29 CALLS      239 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.565        32.004        .40411E-03   -1.4716    
   2  Index         1.7794        .80734        .11267E-01   -.69988    
   3  Normalizat    .68958        .27065        .34976E-03   -1.0431    
   4  Prefactor     .93619        .14140        .15732E-03   -.94888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87031e-09
Minuit parameter uncertainties:
  1  32.0265
  2  0.813458
  3  0.271179
  4  0.141457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503698': 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) = 5052.85384003
delta logL = 0.401951224456

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  2.457e+01  3.203e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.779e+00  8.135e-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:  9.362e-01  1.415e-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:  6.896e-01  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.46
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 1.78 +/- 0.81
Photon Flux (Free Index): 1.15e-08 +/- 1.81e-08
Energy Flux (Free Index): 1.46e-05 +/- 2.91e-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/503698/cmap_HighResolution_298425601_298684801_4FGL_J2129.1-0240_daily_bin228.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.74e-03', comment='SUCCESS', energy_flux2='1.46e-05', dlogl='4.02e-01', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-26 14:39:56.987575', photon_index_error2='0.81', photon_index2='1.78', ts='0.66', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.11e-07', energy_flux_error2='2.91e-05', EG='0.68', time_epoch_completed='1632692396.99', return_code='0', job_id='503698', GAL2='0.94', EG2='0.69', return_code2='0', photon_flux_error2='1.81e-08', ts2='1.46', photon_index='2.64' WHERE bin_id='228' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:39:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 503698: <4FGL_J2129.1-0240_daily_bin228> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin228> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:25:21 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:26:11 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:11 2021
Terminated at Sun Sep 26 14:39:57 2021
Results reported at Sun Sep 26 14:39:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin228 322.296 -2.6829 298425601 298684801 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 :                                   666.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   826 sec.
    Turnaround time :                            876 sec.

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

