/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 = 7171
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1662
RA = 322.296, Dec = -2.6829
tmin = 670118401, tmax = 670377601
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='124835', job_status='RUN', time_executed='2022-03-31 00:37:53.383943', time_epoch_executed='1648712273.38' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124835/ft1_4FGL_J2129.1-0240_daily_bin1662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124835/ft2_4FGL_J2129.1-0240_daily_bin1662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124835/ft1_4FGL_J2129.1-0240_daily_bin1662.fits outfile=/scratch/kocevski/124835/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1662.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=670118401.0 tmax=670377601.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.43
user 3.20
sys 0.20

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

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

Number of photons that the gtmktime cut: 609

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124835/ft1_filtered_4FGL_J2129.1-0240_daily_bin1662.fits" evtable="EVENTS" scfile=/scratch/kocevski/124835/ft2_4FGL_J2129.1-0240_daily_bin1662.fits sctable="SC_DATA" outfile=/scratch/kocevski/124835/ltcube_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.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/124835/ft2_4FGL_J2129.1-0240_daily_bin1662.fits
.....................!
real 11.80
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124835/ft1_filtered_4FGL_J2129.1-0240_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124835/ft2_4FGL_J2129.1-0240_daily_bin1662.fits sctable="SC_DATA" expcube=/scratch/kocevski/124835/ltcube_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.fits outfile=/scratch/kocevski/124835/expmap_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.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/124835/ltcube_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.fits
.....................!
real 191.18
user 185.94
sys 4.89

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/124835/ft1_filtered_4FGL_J2129.1-0240_daily_bin1662.fits scfile=/scratch/kocevski/124835/ft2_4FGL_J2129.1-0240_daily_bin1662.fits outfile=/scratch/kocevski/124835/cmap_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124835/ft1_filtered_4FGL_J2129.1-0240_daily_bin1662.fits scfile=/scratch/kocevski/124835/ft2_4FGL_J2129.1-0240_daily_bin1662.fits outfile=/scratch/kocevski/124835/cmap_HighResolution_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124835/ft1_filtered_4FGL_J2129.1-0240_daily_bin1662.fits evtable="EVENTS" scfile=/scratch/kocevski/124835/ft2_4FGL_J2129.1-0240_daily_bin1662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124835/Model_4FGL_J2129.1-0240_daily_bin1662.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/124835/ft1_filtered_4FGL_J2129.1-0240_daily_bin1662.fits.....................!
real 66.06
user 64.72
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24710       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    68.812       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1524       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8751       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.7445       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0695       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.2293       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4365       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.686       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7465       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.9876       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .33090       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2958       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=   6882.790     FROM MIGRAD    STATUS=CONVERGED    589 CALLS     2935 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2047       -.69700E-08** at limit **
   2  Prefactor     .10000E-03    8.6407       -.19164E-05** at limit **
   3  Prefactor     13.799        26.270        .29858E-05    .28931E-05
   4  Prefactor     .10353E-03    11.818       -.35569E-06** at limit **
   5  Prefactor     .10000E-03    13.854        .53254E-05** at limit **
   6  Prefactor     68.783        57.817       -.14818E-04    .16187E-04
   7  Prefactor     .10000E-03    8.0871        .30318E-05** at limit **
   8  Prefactor     .10000E-03    8.4798       -.94807E-05** at limit **
   9  Prefactor     4.1544        19.771       -.20630E-05   -.43642E-04
  10  Prefactor     .10000E-03    13.315       -.58506E-05** at limit **
  11  Prefactor     .10000E-03    5.6748       -.15862E-06** at limit **
  12  Prefactor     .10000E-03    1.4968       -.23914E-06** at limit **
  13  Prefactor     .10000E-03    27.164        .22326E-06** at limit **
  14  Prefactor     5.8582        27.022        .32098E-04   -.72849E-05
  15  norm          .10000E-03    8.7500        .85185E-05** at limit **
  16  Prefactor     6.7442        26.966       -.25385E-05   -.23528E-04
  17  norm          2.0647        38.246        .69716E-05   -.91488E-04
  18  Prefactor     6.2272        8.5561       -.12712E-05   -.17511E-03
  19  Prefactor     5.4338        5.1925        .58432E-06   -.43532E-04
  20  Prefactor     12.678        16.520        .18105E-04    .14577E-03
  21  Prefactor     2.7451        28.963        .36228E-05   -.61076E-04
  22  Prefactor     8.0042        23.368       -.43847E-04   -.12039E-03
  23  Prefactor     .10006E-03    44.408        .30342E-05** at limit **
  24  Normalizat    .33147        .30412       -.15861E-05   -.30217E-04
  25  Prefactor     1.2956        .15216        .96281E-06    .43985E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.799
  Prefactor  = 0.000103531
  Prefactor  = 0.0001
  Prefactor  = 68.7831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.15437
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.85824
  norm       = 0.0001
  Prefactor  = 6.74416
  norm       = 2.0647
  Prefactor  = 6.22724
  Prefactor  = 5.4338
  Prefactor  = 12.6784
  Prefactor  = 2.7451
  Prefactor  = 8.00417
  Prefactor  = 0.000100061
  Normalizat = 0.331472
  Prefactor  = 1.29563
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.790     FROM HESSE     STATUS=OK           435 CALLS     3370 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2878        .28991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.799        26.289        .10781E-03   -1.4965    
   4  Prefactor     .10353E-03    18.651        .10428       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     68.783        57.118        .48388E-04   -1.4047    
   7  Prefactor     .10000E-03    8.0962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.5204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1544        19.682        .19780E-03   -1.5300    
  10  Prefactor     .10000E-03    13.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.5379        .19788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.8582        26.728        .16568E-03   -1.5224    
  15  norm          .10000E-03    8.8285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.7442        26.802        .15450E-03   -1.5189    
  17  norm          2.0647        37.788        .28717E-03   -1.5421    
  18  Prefactor     6.2272        8.5016        .16084E-03   -1.5209    
  19  Prefactor     5.4338        5.1604        .17234E-03   -1.5242    
  20  Prefactor     12.678        16.344        .11246E-03   -1.4996    
  21  Prefactor     2.7451        28.800        .24565E-03   -1.5377    
  22  Prefactor     8.0042        23.338        .14187E-03   -1.5142    
  23  Prefactor     .10006E-03    45.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .33147        .26719        .55038E-03   -1.2101    
  25  Prefactor     1.2956        .13925        .15597E-03   -.83437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01007e-09
Minuit parameter uncertainties:
  1  2.78553e-06
  2  1.34363e-06
  3  26.3115
  4  0.0162345
  5  4.48084e-07
  6  57.1636
  7  2.5939e-06
  8  7.39605e-06
  9  18.0946
  10  2.67488e-05
  11  1.83498e-05
  12  3.43527e-05
  13  0.000103357
  14  25.0444
  15  3.40494e-05
  16  26.8499
  17  17.6784
  18  8.50329
  19  5.16085
  20  16.3502
  21  17.7936
  22  23.3647
  23  0.00332835
  24  0.268224
  25  0.13929
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.675e-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.296e+00  1.393e-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.315e-01  2.682e-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.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124835/likelihoodResults_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.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) = 6882.79050143
delta logL = -0.000357444330803

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6882.79014397
delta logL = 2.29956640396e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6226       1.0000          .0000       10.000    
     3 'Normalizat'    .33146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2956       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=   6882.790     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10219E-03    243.60        .18142E-02** at limit **
   2  Index         2.5232        8.1646        .50000        .74243E-05
   3  Normalizat    .33147        .22648E-01    .55038E-03   -.64240E-05
   4  Prefactor     1.2956        .12245E-01    .15597E-03   -.23106E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102186
  Index      = 2.52316
  Normalizat = 0.331473
  Prefactor  = 1.29563
 **********
 **   18 **HESSE 
 **********

 FCN=   6882.790     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10219E-03    944.65        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5232        6.6113        .50000       -.51826    
   3  Normalizat    .33147        .48214E-01    .22015E-04   -1.2101    
   4  Prefactor     1.2956        .26071E-01    .62387E-05   -.83437    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.26516e-08
Minuit parameter uncertainties:
  1  0.0923732
  2  1825.56
  3  0.0482198
  4  0.0260709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124835': 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) = 6882.79014384
delta logL = 1.46653292177e-07

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.022e-04  9.237e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.523e+00  1.826e+03  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.296e+00  2.607e-02  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.315e-01  4.822e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/124835/cmap_HighResolution_670118401_670377601_4FGL_J2129.1-0240_daily_bin1662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.21e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2022-03-31 00:49:55.406913', job_id='124835', GAL2='1.30', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1648712995.41', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.30', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1662' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 31 00:49:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 124835: <4FGL_J2129.1-0240_daily_bin1662> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1662> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Mar 31 00:35:18 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 31 00:35:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 31 00:35:20 2022
Terminated at Thu Mar 31 00:49:56 2022
Results reported at Thu Mar 31 00:49:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1662 322.296 -2.6829 670118401 670377601 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 :                                   724.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            878 sec.

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

