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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin32
RA = 322.296, Dec = -2.6829
tmin = 247622401, tmax = 247881601
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='502373', job_status='RUN', time_executed='2021-09-26 14:21:39.061363', time_epoch_executed='1632691299.06' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502373/ft1_4FGL_J2129.1-0240_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502373/ft2_4FGL_J2129.1-0240_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502373/ft1_4FGL_J2129.1-0240_daily_bin32.fits outfile=/scratch/kocevski/502373/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin32.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=247622401.0 tmax=247881601.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.45
user 1.22
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502373/ft1_filtered_4FGL_J2129.1-0240_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/502373/ft2_4FGL_J2129.1-0240_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/502373/ltcube_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.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/502373/ft2_4FGL_J2129.1-0240_daily_bin32.fits
.....................!
real 14.39
user 14.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502373/ft1_filtered_4FGL_J2129.1-0240_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/502373/ft2_4FGL_J2129.1-0240_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/502373/ltcube_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.fits outfile=/scratch/kocevski/502373/expmap_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.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/502373/ltcube_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.fits
.....................!
real 193.51
user 187.39
sys 5.63

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/502373/ft1_filtered_4FGL_J2129.1-0240_daily_bin32.fits scfile=/scratch/kocevski/502373/ft2_4FGL_J2129.1-0240_daily_bin32.fits outfile=/scratch/kocevski/502373/cmap_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.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.58
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502373/ft1_filtered_4FGL_J2129.1-0240_daily_bin32.fits scfile=/scratch/kocevski/502373/ft2_4FGL_J2129.1-0240_daily_bin32.fits outfile=/scratch/kocevski/502373/cmap_HighResolution_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.441       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.573       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.8667       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.330       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.916       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.633       1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.9534       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.008       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.058       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .19937E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.590       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0956       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .85942       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=   7259.497     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2832 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1117       -.39905E-07** at limit **
   2  Prefactor     .10000E-03    7.8088        .46924E-05** at limit **
   3  Prefactor     16.442        23.438        .56867E-06   -.91731E-05
   4  Prefactor     11.582        25.271        .89920E-05   -.35106E-04
   5  Prefactor     .10000E-03    14.167        .13506E-05** at limit **
   6  Prefactor     8.8709        35.783        .83873E-05   -.58187E-05
   7  Prefactor     .10000E-03    5.5047       -.22501E-06** at limit **
   8  Prefactor     28.333        17.101        .49228E-06   -.19510E-04
   9  Prefactor     .10000E-03    13.653        .42821E-05** at limit **
  10  Prefactor     .10000E-03    17.169       -.16037E-04** at limit **
  11  Prefactor     4.6469        6.3154       -.10348E-06   -.34107E-03
  12  Prefactor     .10000E-03    .47102       -.16981E-06** at limit **
  13  Prefactor     20.917        21.677        .47498E-06   -.62723E-05
  14  Prefactor     10.635        33.549        .41289E-05    .77812E-05
  15  norm          .10000E-03    4.7384       -.88466E-07** at limit **
  16  Prefactor     .10000E-03    25.170        .11929E-04** at limit **
  17  norm          .10000E-03    10.556        .37744E-05** at limit **
  18  Prefactor     4.9531        4.5495       -.10063E-05    .33332E-05
  19  Prefactor     13.008        8.4501        .15402E-06   -.97535E-04
  20  Prefactor     14.058        10.446        .91947E-07    .10395E-04
  21  Prefactor     .10000E-03    51.333       -.37623E-05** at limit **
  22  Prefactor     15.589        18.685        .59289E-06    .59815E-04
  23  Prefactor     .10000E-03    8.7396       -.76227E-05** at limit **
  24  Normalizat    1.0956        .21780       -.19944E-05    .25828E-04
  25  Prefactor     .85940        .10555        .18331E-06   -.11099E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4423
  Prefactor  = 11.5822
  Prefactor  = 0.0001
  Prefactor  = 8.87091
  Prefactor  = 0.0001
  Prefactor  = 28.3334
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64688
  Prefactor  = 0.0001
  Prefactor  = 20.917
  Prefactor  = 10.6351
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.95306
  Prefactor  = 13.0078
  Prefactor  = 14.0581
  Prefactor  = 0.0001
  Prefactor  = 15.5891
  Prefactor  = 0.0001
  Normalizat = 1.09562
  Prefactor  = 0.859399
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.497     FROM HESSE     STATUS=OK           425 CALLS     3257 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.1154        .87718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.442        23.439        .98776E-04   -1.4897    
   4  Prefactor     11.582        25.180        .11776E-03   -1.5027    
   5  Prefactor     .10000E-03    14.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.8709        35.739        .13461E-03   -1.5112    
   7  Prefactor     .10000E-03    5.5135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.333        17.121        .75269E-04   -1.4643    
   9  Prefactor     .10000E-03    13.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.6469        6.3182        .18672E-03   -1.5277    
  12  Prefactor     .10000E-03    .47322        .57084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.917        21.698        .87579E-04   -1.4793    
  14  Prefactor     10.635        33.577        .12287E-03   -1.5056    
  15  norm          .10000E-03    4.7879        .18113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.9531        4.5530        .16942E-03   -1.5263    
  19  Prefactor     13.008        8.5175        .11106E-03   -1.4986    
  20  Prefactor     14.058        10.442        .10683E-03   -1.4958    
  21  Prefactor     .10000E-03    53.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.589        18.684        .10144E-03   -1.4918    
  23  Prefactor     .10000E-03    8.7627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0956        .26275        .31519E-03   -.89893    
  25  Prefactor     .85940        .12752        .17908E-03   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25304e-10
Minuit parameter uncertainties:
  1  7.33574e-07
  2  3.94485e-06
  3  23.4524
  4  25.2029
  5  0.000163193
  6  35.6481
  7  1.3706e-06
  8  17.1244
  9  3.02003e-05
  10  1.34781e-05
  11  6.31912
  12  1.61231e-07
  13  21.7059
  14  33.6365
  15  1.56876e-06
  16  3.74908e-05
  17  7.24266e-06
  18  4.55328
  19  8.51829
  20  10.4433
  21  0.000249511
  22  18.6913
  23  1.3413e-05
  24  0.263067
  25  0.127563
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  1.348e-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:  8.594e-01  1.276e-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:  1.096e+00  2.631e-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: 7.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/502373/likelihoodResults_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7259.49703601
delta logL = -0.000276700998256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7259.49676221
delta logL = -2.90504885925e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13116E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0024       1.0000          .0000       10.000    
     3 'Normalizat'    1.0956       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85940       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=   7259.497     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      275 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10517E-03    9.5874        .18142E-01** at limit **
   2  Index         2.8905        8.4010        .50000        .23079E-04
   3  Normalizat    1.0956        .45346E-02    .31519E-03    .25249E-05
   4  Prefactor     .85940        .23251E-02    .17908E-03   -.80626E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105171
  Index      = 2.89055
  Normalizat = 1.09561
  Prefactor  = 0.859399
 **********
 **   18 **HESSE 
 **********

 FCN=   7259.497     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10517E-03    67.605        .29877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8905        7.2044        .50000       -.43553    
   3  Normalizat    1.0956        .12012E-01    .12607E-04   -.89893    
   4  Prefactor     .85940        .61592E-02    .71630E-05   -.97575    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.12164e-09
Minuit parameter uncertainties:
  1  0.0374362
  2  280.691
  3  0.0120125
  4  0.00615924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502373': 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): 102
logL (Free Index) = 7259.49676042
delta logL = -1.11170902528e-06

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.052e-04  3.744e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.891e+00  2.807e+02  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.594e-01  6.159e-03  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:  1.096e+00  1.201e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 322.296 -2.683

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/502373/cmap_HighResolution_247622401_247881601_4FGL_J2129.1-0240_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.15e-08', time_completed='2021-09-26 14:34:17.523316', job_id='502373', GAL2='0.86', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1632692057.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='32' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:34:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 502373: <4FGL_J2129.1-0240_daily_bin32> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin32 322.296 -2.6829 247622401 247881601 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 :                                   756.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            832 sec.

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

