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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin191
RA = 322.296, Dec = -2.6829
tmin = 288835201, tmax = 289094401
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='503638', job_status='RUN', time_executed='2021-09-26 14:28:12.769909', time_epoch_executed='1632691692.77' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='191'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503638

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503638/ft1_4FGL_J2129.1-0240_daily_bin191.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503638/ft2_4FGL_J2129.1-0240_daily_bin191.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503638/ft1_4FGL_J2129.1-0240_daily_bin191.fits outfile=/scratch/kocevski/503638/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin191.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=288835201.0 tmax=289094401.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.68
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503638/ft1_filtered_4FGL_J2129.1-0240_daily_bin191.fits" evtable="EVENTS" scfile=/scratch/kocevski/503638/ft2_4FGL_J2129.1-0240_daily_bin191.fits sctable="SC_DATA" outfile=/scratch/kocevski/503638/ltcube_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.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/503638/ft2_4FGL_J2129.1-0240_daily_bin191.fits
.....................!
real 14.09
user 13.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503638/ft1_filtered_4FGL_J2129.1-0240_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/503638/ft2_4FGL_J2129.1-0240_daily_bin191.fits sctable="SC_DATA" expcube=/scratch/kocevski/503638/ltcube_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.fits outfile=/scratch/kocevski/503638/expmap_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.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/503638/ltcube_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.fits
.....................!
real 191.05
user 185.68
sys 4.77

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/503638/ft1_filtered_4FGL_J2129.1-0240_daily_bin191.fits scfile=/scratch/kocevski/503638/ft2_4FGL_J2129.1-0240_daily_bin191.fits outfile=/scratch/kocevski/503638/cmap_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503638/ft1_filtered_4FGL_J2129.1-0240_daily_bin191.fits scfile=/scratch/kocevski/503638/ft2_4FGL_J2129.1-0240_daily_bin191.fits outfile=/scratch/kocevski/503638/cmap_HighResolution_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.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.79
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503638/ft1_filtered_4FGL_J2129.1-0240_daily_bin191.fits evtable="EVENTS" scfile=/scratch/kocevski/503638/ft2_4FGL_J2129.1-0240_daily_bin191.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503638/Model_4FGL_J2129.1-0240_daily_bin191.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/503638/ft1_filtered_4FGL_J2129.1-0240_daily_bin191.fits.....................!
real 63.14
user 61.76
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62200E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    81.626       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23140E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.370       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.921       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1418       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.001       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    29.040       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2977       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    48.728       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .73888       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2205       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=   6288.511     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2892 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0107       -.53975E-05** at limit **
   2  Prefactor     .10000E-03    6.9828       -.20389E-06** at limit **
   3  Prefactor     .10000E-03    43.862       -.17334E-05** at limit **
   4  Prefactor     .10000E-03    19.639       -.71174E-06** at limit **
   5  Prefactor     .10000E-03    12.309        .33129E-06** at limit **
   6  Prefactor     81.651        72.027       -.35478E-05   -.26013E-04
   7  Prefactor     .10000E-03    79.151        .56936E-07** at limit **
   8  Prefactor     29.289        20.166        .17640E-06   -.69324E-04
   9  Prefactor     .10000E-03    25.441        .21170E-05** at limit **
  10  Prefactor     .10000E-03    17.865        .25053E-06** at limit **
  11  Prefactor     14.913        9.1711        .51286E-08   -.34417E-04
  12  Prefactor     2.1419        1.8530        .10304E-06    .10636E-03
  13  Prefactor     .10000E-03    17.755        .30051E-06** at limit **
  14  Prefactor     30.000        32.629        .40762E-06    .19751E-06
  15  norm          .10000E-03    4.5553       -.87436E-08** at limit **
  16  Prefactor     .10000E-03    20.293       -.81570E-06** at limit **
  17  norm          29.040        22.909        .54493E-06    .73946E-05
  18  Prefactor     .10000E-03    3.8121       -.52040E-07** at limit **
  19  Prefactor     3.2975        7.8538        .55615E-05    .26254E-03
  20  Prefactor     .10000E-03    5.4535       -.62302E-07** at limit **
  21  Prefactor     .10000E-03    8.5770       -.38877E-06** at limit **
  22  Prefactor     .10000E-03    17.777       -.50188E-07** at limit **
  23  Prefactor     48.732        26.567        .41366E-06    .45042E-05
  24  Normalizat    .73880        .29022       -.31880E-05   -.80888E-04
  25  Prefactor     1.2206        .14044        .37515E-06   -.11393E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.6506
  Prefactor  = 0.000100001
  Prefactor  = 29.2889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.9127
  Prefactor  = 2.1419
  Prefactor  = 0.0001
  Prefactor  = 30.0004
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 29.0402
  Prefactor  = 0.0001
  Prefactor  = 3.29752
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 48.7318
  Normalizat = 0.738803
  Prefactor  = 1.22056
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.511     FROM HESSE     STATUS=OK           417 CALLS     3309 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.200        .25752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.9962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    43.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     81.651        72.092        .44456E-04   -1.3898    
   7  Prefactor     .10000E-03    80.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.289        20.111        .73928E-04   -1.4625    
   9  Prefactor     .10000E-03    25.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.913        9.1670        .10369E-03   -1.4935    
  12  Prefactor     2.1419        1.8551        .97075E-04   -1.5415    
  13  Prefactor     .10000E-03    17.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.000        32.633        .73149E-04   -1.4612    
  15  norm          .10000E-03    4.5575        .16530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          29.040        22.897        .74346E-04   -1.4630    
  18  Prefactor     .10000E-03    3.8256        .15119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2975        9.0189        .11147E-02   -1.5345    
  20  Prefactor     .10000E-03    5.4695        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.5928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     48.732        26.552        .57445E-04   -1.4311    
  24  Normalizat    .73880        .32272        .42345E-03   -1.0238    
  25  Prefactor     1.2206        .15835        .17484E-03   -.85701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16532e-10
Minuit parameter uncertainties:
  1  0.000425127
  2  2.32163e-06
  3  0.000222267
  4  1.54545e-05
  5  8.26646e-06
  6  72.1696
  7  0.000514608
  8  20.1155
  9  2.0252e-06
  10  7.11769e-05
  11  9.16789
  12  1.85519
  13  6.56786e-05
  14  32.6524
  15  9.19608e-07
  16  2.08404e-05
  17  22.9037
  18  4.4513e-06
  19  9.02263
  20  6.80418e-06
  21  7.89681e-06
  22  2.75557e-05
  23  26.5587
  24  0.323552
  25  0.15841
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
548    Prefactor:  1.221e+00  1.584e-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:  7.388e-01  3.236e-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: 9.31e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503638/likelihoodResults_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.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) = 6288.51130766
delta logL = -0.000266217514763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6288.51104147
delta logL = -3.41760824085e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6039       1.0000          .0000       10.000    
     3 'Normalizat'    .73887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2205       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=   6288.511     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      200 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.309        .90712E-02** at limit **
   2  Index         2.5988        6.2988        .50000        .25332E-05
   3  Normalizat    .73880        .26624        .95572E-01   -.13421E-03
   4  Prefactor     1.2206        .13888        .34162E-01   -.48043E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.59875
  Normalizat = 0.738805
  Prefactor  = 1.22056
 **********
 **   18 **HESSE 
 **********

 FCN=   6288.511     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5988        6.2951        .50000       -.50094    
   3  Normalizat    .73880        .29806        .42345E-03   -1.0238    
   4  Prefactor     1.2206        .15601        .17484E-03   -.85701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52962e-10
Minuit parameter uncertainties:
  1  0.000426252
  2  4.43499
  3  0.298717
  4  0.156069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503638': 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) = 6288.51104142
delta logL = 2.26509655477e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  4.263e-04  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.599e+00  4.435e+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:  1.221e+00  1.561e-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:  7.388e-01  2.987e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/503638/cmap_HighResolution_288835201_289094401_4FGL_J2129.1-0240_daily_bin191.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.30e-03', job_status='DONE', photon_flux_upper_limit='9.31e-08', time_completed='2021-09-26 14:40:02.795862', job_id='503638', GAL2='1.22', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1632692402.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.27e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='191' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:40:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 503638: <4FGL_J2129.1-0240_daily_bin191> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin191> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:25:15 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:25:43 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:25:43 2021
Terminated at Sun Sep 26 14:40:03 2021
Results reported at Sun Sep 26 14:40:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin191 322.296 -2.6829 288835201 289094401 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 :                                   707.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            888 sec.

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

