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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin245
RA = 322.296, Dec = -2.6829
tmin = 302832001, tmax = 303091201
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='503725', job_status='RUN', time_executed='2021-09-26 14:28:33.750037', time_epoch_executed='1632691713.75' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='245'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503725/ft1_4FGL_J2129.1-0240_daily_bin245.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503725/ft2_4FGL_J2129.1-0240_daily_bin245.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503725/ft1_4FGL_J2129.1-0240_daily_bin245.fits outfile=/scratch/kocevski/503725/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin245.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=302832001.0 tmax=303091201.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.52
user 3.27
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503725/ft1_filtered_4FGL_J2129.1-0240_daily_bin245.fits" evtable="EVENTS" scfile=/scratch/kocevski/503725/ft2_4FGL_J2129.1-0240_daily_bin245.fits sctable="SC_DATA" outfile=/scratch/kocevski/503725/ltcube_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.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/503725/ft2_4FGL_J2129.1-0240_daily_bin245.fits
.....................!
real 13.16
user 12.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503725/ft1_filtered_4FGL_J2129.1-0240_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/503725/ft2_4FGL_J2129.1-0240_daily_bin245.fits sctable="SC_DATA" expcube=/scratch/kocevski/503725/ltcube_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.fits outfile=/scratch/kocevski/503725/expmap_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.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/503725/ltcube_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.fits
.....................!
real 191.00
user 185.36
sys 5.09

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/503725/ft1_filtered_4FGL_J2129.1-0240_daily_bin245.fits scfile=/scratch/kocevski/503725/ft2_4FGL_J2129.1-0240_daily_bin245.fits outfile=/scratch/kocevski/503725/cmap_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=322.296 yref=-2.6829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503725/ft1_filtered_4FGL_J2129.1-0240_daily_bin245.fits scfile=/scratch/kocevski/503725/ft2_4FGL_J2129.1-0240_daily_bin245.fits outfile=/scratch/kocevski/503725/cmap_HighResolution_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503725/ft1_filtered_4FGL_J2129.1-0240_daily_bin245.fits evtable="EVENTS" scfile=/scratch/kocevski/503725/ft2_4FGL_J2129.1-0240_daily_bin245.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503725/Model_4FGL_J2129.1-0240_daily_bin245.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/503725/ft1_filtered_4FGL_J2129.1-0240_daily_bin245.fits.....................!
real 58.98
user 56.79
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .15462E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.721       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9235       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1341       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .41824       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.601       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26293E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .46990       1.0000         .10000E-03   10000.    
    16 'Prefactor '    48.528       1.0000         .10000E-03   10000.    
    17 'norm      '    24.896       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.9454       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6497       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3302       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.7511       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.771       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .63764       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0802       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5440.181     FROM MIGRAD    STATUS=FAILED       995 CALLS     3350 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0360        .31850E-03** at limit **
   2  Prefactor     .10000E-03    59.748        .36285E-03** at limit **
   3  Prefactor     .10000E-03    16.574        .18142E-02** at limit **
   4  Prefactor     .10000E-03    21.703        .18142E-02** at limit **
   5  Prefactor     .10000E-03    18.831        .18142E-02** at limit **
   6  Prefactor     20.825        52.836        .87695E-04   -.14779E-04
   7  Prefactor     .10000E-03    15.241        .18142E-02** at limit **
   8  Prefactor     10.717        17.733        .12236E-03    .22670E-04
   9  Prefactor     .10000E-03    20.153        .18142E-02** at limit **
  10  Prefactor     2.0771        631.49        .29957E-02    .24649E-04
  11  Prefactor     7.1337        8.9297        .75092E-03    .52717E-04
  12  Prefactor     .41836        10.965        .21593E-02    .78508E-03
  13  Prefactor     16.600        47.937        .98299E-04    .12326E-03
  14  Prefactor     .10000E-03    346.08        .42889E-03** at limit **
  15  norm          .47272        36.412        .41690E-02    .16000E-02
  16  Prefactor     48.484        65.874        .57563E-04   -.87256E-04
  17  norm          24.900        22.027        .80284E-04    .97708E-05
  18  Prefactor     7.9461        9.4669        .71123E-03    .74331E-04
  19  Prefactor     5.6488        7.2300        .16900E-03    .43187E-04
  20  Prefactor     2.3296        14.712        .13433E-02    .17292E-03
  21  Prefactor     8.7507        13.201        .13550E-03    .62927E-05
  22  Prefactor     11.767        21.914        .11676E-03    .61341E-05
  23  Prefactor     .10000E-03    14.356        .18142E-02** at limit **
  24  Normalizat    .63761        .32404        .39409E-03    .19207E-03
  25  Prefactor     1.0803        .14994        .16146E-03    .39322E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5440.181     FROM SIMPLEX   STATUS=UNCHANGED   1348 CALLS     4698 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0360        .29248E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    59.748        .84922E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.574        .40999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.703        .54170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.831        .44658E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.825        52.836        .84861E-06   -1.4795    
   7  Prefactor     .10000E-03    15.241        .68210E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.717        17.733        .84270E-06   -1.5053    
   9  Prefactor     .10000E-03    20.153        .67780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0771        631.49        .76639E-06   -1.5420    
  11  Prefactor     7.1337        8.9297        .84540E-06   -1.5174    
  12  Prefactor     .41836        10.965        .85621E-06   -1.5579    
  13  Prefactor     16.600        47.937        .83753E-06   -1.4893    
  14  Prefactor     .10000E-03    346.08        .19503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .47272        36.412        .83064E-06   -1.5570    
  16  Prefactor     48.484        65.874        .79112E-06   -1.4314    
  17  norm          24.900        22.027        .81867E-06   -1.4710    
  18  Prefactor     7.9461        9.4669        .84477E-06   -1.5144    
  19  Prefactor     5.6488        7.2300        .85214E-06   -1.5233    
  20  Prefactor     2.3296        14.712        .85407E-06   -1.5403    
  21  Prefactor     8.7507        13.201        .84826E-06   -1.5116    
  22  Prefactor     11.767        21.914        .84368E-06   -1.5022    
  23  Prefactor     .10000E-03    14.356        .44441E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63761        .32404        .59753E-06   -1.0641    
  25  Prefactor     1.0803        .14994        .50617E-06   -.90098    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5440.181     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     5115 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0362        .63701E-04** at limit **
   2  Prefactor     .10000E-03    59.752        .72569E-04** at limit **
   3  Prefactor     .10000E-03    16.574        .36285E-03** at limit **
   4  Prefactor     .10000E-03    21.705        .36285E-03** at limit **
   5  Prefactor     .10000E-03    18.832        .36285E-03** at limit **
   6  Prefactor     20.825        52.740        .35078E-05   -.12964E-05
   7  Prefactor     .10000E-03    15.243        .36285E-03** at limit **
   8  Prefactor     10.717        17.727        .48946E-05    .37163E-05
   9  Prefactor     .10000E-03    20.156        .36285E-03** at limit **
  10  Prefactor     2.0784        517.96        .11983E-03    .13377E-04
  11  Prefactor     7.1337        8.9265        .30037E-04    .75699E-05
  12  Prefactor     .41825        8.8699        .86371E-04    .47649E-04
  13  Prefactor     16.600        47.344        .19660E-04    .25444E-04
  14  Prefactor     .10000E-03    346.13        .85778E-04** at limit **
  15  norm          .47272        36.823        .83381E-03    .64091E-04
  16  Prefactor     48.485        65.824        .11513E-04   -.11060E-04
  17  norm          24.900        22.025        .32113E-05    .21241E-05
  18  Prefactor     7.9461        9.4616        .14225E-03    .18382E-05
  19  Prefactor     5.6488        7.2267        .67601E-05    .60542E-05
  20  Prefactor     2.3296        14.675        .26865E-03    .42317E-06
  21  Prefactor     8.7507        13.200        .54199E-05    .83903E-06
  22  Prefactor     11.767        21.894        .46704E-05    .97367E-06
  23  Prefactor     .10000E-03    14.358        .36285E-03** at limit **
  24  Normalizat    .63761        .32198        .15764E-04    .33319E-04
  25  Prefactor     1.0803        .14951        .32293E-04    .66679E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.8252
  Prefactor  = 0.0001
  Prefactor  = 10.7165
  Prefactor  = 0.0001
  Prefactor  = 2.07839
  Prefactor  = 7.13373
  Prefactor  = 0.418248
  Prefactor  = 16.6004
  Prefactor  = 0.0001
  norm       = 0.472724
  Prefactor  = 48.4849
  norm       = 24.8996
  Prefactor  = 7.94612
  Prefactor  = 5.64877
  Prefactor  = 2.32964
  Prefactor  = 8.75065
  Prefactor  = 11.7671
  Prefactor  = 0.0001
  Normalizat = 0.637612
  Prefactor  = 1.08032
 **********
 **   18 **HESSE 
 **********

 FCN=   5440.181     FROM HESSE     STATUS=OK           403 CALLS     5518 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0363        .12740E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    59.748        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.574        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.705        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.832        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.825        52.431        .70156E-06   -1.4795    
   7  Prefactor     .10000E-03    15.243        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.717        17.720        .97891E-06   -1.5053    
   9  Prefactor     .10000E-03    20.156        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0784        514.06        .47931E-05   -1.5420    
  11  Prefactor     7.1337        8.9256        .12015E-05   -1.5174    
  12  Prefactor     .41825        8.7996        .34548E-05   -1.5579    
  13  Prefactor     16.600        47.299        .39320E-05   -1.4893    
  14  Prefactor     .10000E-03    346.16        .17156E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .47272        36.829        .16676E-03   -1.5570    
  16  Prefactor     48.485        65.857        .23025E-05   -1.4314    
  17  norm          24.900        22.069        .64227E-06   -1.4710    
  18  Prefactor     7.9461        9.4599        .56899E-05   -1.5144    
  19  Prefactor     5.6488        7.2239        .13520E-05   -1.5233    
  20  Prefactor     2.3296        14.663        .10746E-04   -1.5403    
  21  Prefactor     8.7507        13.189        .10840E-05   -1.5116    
  22  Prefactor     11.767        21.886        .93409E-06   -1.5022    
  23  Prefactor     .10000E-03    14.358        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .63761        .32173        .31527E-05   -1.0641    
  25  Prefactor     1.0803        .14938        .64585E-05   -.90098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63298e-11
Minuit parameter uncertainties:
  1  3.31468e-06
  2  7.26284e-06
  3  2.79151e-06
  4  4.74361e-06
  5  8.18332e-06
  6  52.5475
  7  4.95795e-06
  8  17.7286
  9  1.88427e-05
  10  65.952
  11  8.92727
  12  3.83706
  13  47.4061
  14  0.000182005
  15  8.34954
  16  65.9559
  17  22.0763
  18  9.4617
  19  7.22501
  20  11.6934
  21  13.1938
  22  21.9013
  23  9.24847e-06
  24  0.32268
  25  0.149442
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  2.078e+00  6.595e+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:  1.080e+00  1.494e-01  0.000e+00  1.000e+01 ( 1.000e+00)
549        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
550        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
547   Normalization:  6.376e-01  3.227e-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: 1.48e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/503725/likelihoodResults_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.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) = 5436.77170526
delta logL = 3.40919319398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5436.4233558
delta logL = 3.75754265379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12129E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    8.0041       1.0000          .0000       10.000    
     3 'Normalizat'    .36193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1769       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=   5436.423     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      298 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12055E-01    .83724E-01    .90836E-03   -.55816E-01
   2  Index         8.0075        2.4469        .95064E-01   -.40141E-03
   3  Normalizat    .36163        .86911E-01    .11642        .11710E-03
   4  Prefactor     1.1771        .45458E-01    .35201E-01    .32807E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0120546
  Index      = 8.00746
  Normalizat = 0.361632
  Prefactor  = 1.17705
 **********
 **   18 **HESSE 
 **********

 FCN=   5436.423     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      329 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12055E-01    .12886        .35975E-05   -1.5686    
   2  Index         8.0075        3.0033        .40965E-02    .64537    
   3  Normalizat    .36163        .26104        .51546E-03   -1.1933    
   4  Prefactor     1.1771        .13467        .15520E-03   -.87040    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.1227e-09
Minuit parameter uncertainties:
  1  0.0784971
  2  3.39882
  3  0.26192
  4  0.134705
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503725': 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) = 5436.4233544
delta logL = 3.75754405505

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.205e-02  7.850e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  8.007e+00  3.399e+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.177e+00  1.347e-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.616e-01  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.51
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 8.01 +/- 3.40
Photon Flux (Free Index): 1.91e-07 +/- 8.84e-08
Energy Flux (Free Index): 2.22e-05 +/- 1.08e-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/503725/cmap_HighResolution_302832001_303091201_4FGL_J2129.1-0240_daily_bin245.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='2.22e-05', dlogl='3.76e+00', photon_flux2='1.91e-07', job_status='DONE', time_completed='2021-09-26 14:41:51.892016', photon_index_error2='3.40', photon_index2='8.01', ts='0.00', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.08e-05', EG='0.64', time_epoch_completed='1632692511.89', return_code='0', job_id='503725', GAL2='1.18', EG2='0.36', return_code2='102', photon_flux_error2='8.84e-08', ts2='8.51', photon_index='2.64' WHERE bin_id='245' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:41:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 503725: <4FGL_J2129.1-0240_daily_bin245> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin245> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:25:23 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:26:30 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:30 2021
Terminated at Sun Sep 26 14:41:52 2021
Results reported at Sun Sep 26 14:41:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin245 322.296 -2.6829 302832001 303091201 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            989 sec.

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

