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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin226
RA = 322.296, Dec = -2.6829
tmin = 297907201, tmax = 298166401
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='503695', job_status='RUN', time_executed='2021-09-26 14:28:53.090718', time_epoch_executed='1632691733.09' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503695/ft1_4FGL_J2129.1-0240_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503695/ft2_4FGL_J2129.1-0240_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503695/ft1_4FGL_J2129.1-0240_daily_bin226.fits outfile=/scratch/kocevski/503695/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin226.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=297907201.0 tmax=298166401.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/503695/ft2_4FGL_J2129.1-0240_daily_bin226.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/503695/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin226.fits evtable="EVENTS" outfile="/scratch/kocevski/503695/ft1_filtered_4FGL_J2129.1-0240_daily_bin226.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503695/ft1_filtered_4FGL_J2129.1-0240_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/503695/ft2_4FGL_J2129.1-0240_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/503695/ltcube_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.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/503695/ft2_4FGL_J2129.1-0240_daily_bin226.fits
.....................!
real 13.55
user 13.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503695/ft1_filtered_4FGL_J2129.1-0240_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/503695/ft2_4FGL_J2129.1-0240_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/503695/ltcube_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.fits outfile=/scratch/kocevski/503695/expmap_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.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/503695/ltcube_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.fits
.....................!
real 191.89
user 186.45
sys 4.97

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/503695/ft1_filtered_4FGL_J2129.1-0240_daily_bin226.fits scfile=/scratch/kocevski/503695/ft2_4FGL_J2129.1-0240_daily_bin226.fits outfile=/scratch/kocevski/503695/cmap_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.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.94
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503695/ft1_filtered_4FGL_J2129.1-0240_daily_bin226.fits scfile=/scratch/kocevski/503695/ft2_4FGL_J2129.1-0240_daily_bin226.fits outfile=/scratch/kocevski/503695/cmap_HighResolution_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.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.57
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503695/ft1_filtered_4FGL_J2129.1-0240_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/503695/ft2_4FGL_J2129.1-0240_daily_bin226.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503695/Model_4FGL_J2129.1-0240_daily_bin226.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/503695/ft1_filtered_4FGL_J2129.1-0240_daily_bin226.fits.....................!
real 57.76
user 56.39
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8522       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11728E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1325       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.003       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10620E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.027       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10092E-03   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      '    5.7464       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.2891       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .68071       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .98918       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87438       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=   5622.013     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2821 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8525        6.4945       -.90414E-07   -.35949E-03
   2  Prefactor     .10000E-03    31.929       -.93815E-05** at limit **
   3  Prefactor     .10000E-03    19.160       -.26300E-05** at limit **
   4  Prefactor     .10000E-03    7.1597       -.33805E-05** at limit **
   5  Prefactor     .10000E-03    6.6401        .13076E-05** at limit **
   6  Prefactor     .10000E-03    29.993        .54661E-06** at limit **
   7  Prefactor     .10000E-03    30.732       -.38360E-05** at limit **
   8  Prefactor     8.1277        12.771        .19703E-06   -.15895E-04
   9  Prefactor     33.668        22.888        .36766E-05   -.11704E-05
  10  Prefactor     39.010        39.991        .83815E-05   -.24275E-05
  11  Prefactor     .10000E-03    2.9347        .34753E-05** at limit **
  12  Prefactor     .10000E-03    1.1174       -.28629E-06** at limit **
  13  Prefactor     43.030        30.921        .24703E-05    .93188E-05
  14  Prefactor     .10000E-03    27.339        .81367E-05** at limit **
  15  norm          .10000E-03    3.1841       -.19460E-06** at limit **
  16  Prefactor     .10000E-03    27.124        .84827E-05** at limit **
  17  norm          5.7462        10.944       -.81761E-07   -.63449E-04
  18  Prefactor     .10000E-03    2.9380       -.32677E-05** at limit **
  19  Prefactor     2.2920        7.4973       -.65377E-06   -.43051E-03
  20  Prefactor     .10000E-03    13.253       -.12778E-05** at limit **
  21  Prefactor     .10000E-03    8.4069        .75991E-07** at limit **
  22  Prefactor     .10000E-03    8.6616        .22097E-05** at limit **
  23  Prefactor     .67142        10.151       -.95609E-06    .54729E-04
  24  Normalizat    .98831        .24771       -.30086E-05    .13983E-03
  25  Prefactor     .87476        .11847        .30354E-06    .34860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.85246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.12773
  Prefactor  = 33.6675
  Prefactor  = 39.0097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.0303
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.74624
  Prefactor  = 0.0001
  Prefactor  = 2.29198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.671416
  Normalizat = 0.988308
  Prefactor  = 0.874765
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.013     FROM HESSE     STATUS=OK           423 CALLS     3244 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8525        6.4979        .20561E-03   -1.5315    
   2  Prefactor     .10000E-03    32.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.1637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.6399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    31.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.1277        12.761        .14059E-03   -1.5138    
   9  Prefactor     33.668        22.828        .69068E-04   -1.4547    
  10  Prefactor     39.010        39.900        .64180E-04   -1.4458    
  11  Prefactor     .10000E-03    2.9437        .12536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.1409        .77339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.030        30.948        .61116E-04   -1.4395    
  14  Prefactor     .10000E-03    27.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1841        .13067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    27.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7462        10.939        .16755E-03   -1.5228    
  18  Prefactor     .10000E-03    2.9431        .12541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.2920        7.5727        .27131E-03   -1.5405    
  20  Prefactor     .10000E-03    13.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.6859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .67142        69.480        .45655E-02   -1.5544    
  24  Normalizat    .98831        .30515        .31902E-03   -.93423    
  25  Prefactor     .87476        .14723        .17054E-03   -.97029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20607e-09
Minuit parameter uncertainties:
  1  6.49912
  2  0.000184144
  3  6.12481e-06
  4  3.0548e-06
  5  1.85669e-06
  6  3.58689e-05
  7  8.02096e-05
  8  12.7656
  9  22.8336
  10  39.927
  11  1.15744e-06
  12  2.40579e-05
  13  30.9599
  14  6.50785e-05
  15  7.57983e-07
  16  7.66128e-06
  17  10.9428
  18  2.34122e-06
  19  7.57586
  20  3.61623e-05
  21  6.48258e-06
  22  1.63327e-05
  23  13.6755
  24  0.305694
  25  0.147298
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  3.901e+01  3.993e+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:  8.748e-01  1.473e-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:  9.883e-01  3.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 5.07e-08
Energy Flux (Fixed Index): 1.26e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/503695/likelihoodResults_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.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) = 5621.08794106
delta logL = 0.925201011934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5620.94570834
delta logL = 1.06743373181

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.157       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2217       1.0000          .0000       10.000    
     3 'Normalizat'    1.0513       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85501       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=   5620.946     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      226 TOTAL
                     EDM=   .19E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.169        31.157        .12526E-04   -.13628E-04
   2  Index         1.2218        .68864        .53086E-04    .29358E-05
   3  Normalizat    1.0513        .23061       -.46393E-06   -.41257E-04
   4  Prefactor     .85493        .11729        .32266E-07   -.64311E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1694
  Index      = 1.2218
  Normalizat = 1.0513
  Prefactor  = 0.854927
 **********
 **   18 **HESSE 
 **********

 FCN=   5620.946     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.169        29.313        .93993E-04   -1.4855    
   2  Index         1.2218        .64662        .85458E-02   -.85663    
   3  Normalizat    1.0513        .28439        .31031E-03   -.91331    
   4  Prefactor     .85493        .14487        .17225E-03   -.97734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.82244e-09
Minuit parameter uncertainties:
  1  29.3367
  2  0.650898
  3  0.284802
  4  0.144935
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503695': 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) = 5620.94570761
delta logL = 1.06743446878

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.817e+01  2.934e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  1.222e+00  6.509e-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:  8.549e-01  1.449e-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.051e+00  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 1.22 +/- 0.65
Photon Flux (Free Index): 7.61e-09 +/- 1.03e-08
Energy Flux (Free Index): 5.95e-05 +/- 9.25e-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/503695/cmap_HighResolution_297907201_298166401_4FGL_J2129.1-0240_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='5.95e-05', photon_flux_error='5.07e-08', dlogl='1.07e+00', energy_flux='1.26e-05', photon_flux2='7.61e-09', job_status='DONE', time_completed='2021-09-26 14:39:51.421503', photon_index_error2='0.65', photon_index2='1.22', ts='1.45', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.61e-07', energy_flux_error2='9.25e-05', EG='0.99', time_epoch_completed='1632692391.42', return_code='0', job_id='503695', GAL2='0.85', EG2='1.05', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='1.03e-08', ts2='3.56', photon_index='2.64' WHERE bin_id='226' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:39:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 503695: <4FGL_J2129.1-0240_daily_bin226> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin226> 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) <bullet0072>, 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:52 2021
Results reported at Sun Sep 26 14:39:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin226 322.296 -2.6829 297907201 298166401 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 :                                   656.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            871 sec.

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

