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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin1645
RA = 322.296, Dec = -2.6829
tmin = 665712001, tmax = 665971201
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='629140', job_status='RUN', time_executed='2022-02-08 00:39:17.132097', time_epoch_executed='1644309557.13' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/629140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/629140/ft1_4FGL_J2129.1-0240_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/629140/ft2_4FGL_J2129.1-0240_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/629140/ft1_4FGL_J2129.1-0240_daily_bin1645.fits outfile=/scratch/kocevski/629140/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin1645.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=665712001.0 tmax=665971201.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.59
user 3.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/629140/ft1_filtered_4FGL_J2129.1-0240_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/629140/ft2_4FGL_J2129.1-0240_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/629140/ltcube_665712001_665971201_4FGL_J2129.1-0240_daily_bin1645.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/629140/ft2_4FGL_J2129.1-0240_daily_bin1645.fits
.....................!
real 12.13
user 11.69
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/629140/ft1_filtered_4FGL_J2129.1-0240_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629140/ft2_4FGL_J2129.1-0240_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/629140/ltcube_665712001_665971201_4FGL_J2129.1-0240_daily_bin1645.fits outfile=/scratch/kocevski/629140/expmap_665712001_665971201_4FGL_J2129.1-0240_daily_bin1645.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/629140/ltcube_665712001_665971201_4FGL_J2129.1-0240_daily_bin1645.fits
.....................!
real 191.68
user 185.93
sys 5.32

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

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/629140/ft1_filtered_4FGL_J2129.1-0240_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/629140/ft2_4FGL_J2129.1-0240_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/629140/Model_4FGL_J2129.1-0240_daily_bin1645.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/629140/ft1_filtered_4FGL_J2129.1-0240_daily_bin1645.fits.....................!
real 77.12
user 75.64
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7450       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    48.226       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.5956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .71665E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22120E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.217       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6125       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95596       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2433       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=   7613.915     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2870 TOTAL
                     EDM=   .59E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4842        .45787E-07** at limit **
   2  Prefactor     .10000E-03    14.486        .69848E-06** at limit **
   3  Prefactor     .10000E-03    25.260        .12949E-05** at limit **
   4  Prefactor     7.7491        17.042       -.82521E-07    .91442E-05
   5  Prefactor     .10000E-03    13.098       -.74954E-06** at limit **
   6  Prefactor     48.208        61.858       -.10440E-05   -.53360E-04
   7  Prefactor     .10000E-03    75.652        .17264E-05** at limit **
   8  Prefactor     23.682        20.728        .25189E-06   -.39075E-04
   9  Prefactor     16.586        25.815        .14570E-06    .41511E-05
  10  Prefactor     .10000E-03    15.744        .59778E-06** at limit **
  11  Prefactor     .10000E-03    4.9141        .38047E-07** at limit **
  12  Prefactor     3.5912        2.6767        .11927E-06   -.74902E-04
  13  Prefactor     .10000E-03    177.46        .16736E-05** at limit **
  14  Prefactor     .10000E-03    10.554        .23499E-06** at limit **
  15  norm          .10000E-03    3.1363       -.13820E-08** at limit **
  16  Prefactor     .10000E-03    179.17       -.20225E-05** at limit **
  17  norm          .10000E-03    19.612       -.14316E-05** at limit **
  18  Prefactor     .10000E-03    7.1257       -.69038E-08** at limit **
  19  Prefactor     24.221        10.526        .37689E-07   -.63219E-05
  20  Prefactor     .10000E-03    4.0371       -.28653E-07** at limit **
  21  Prefactor     .10000E-03    43.623       -.12631E-05** at limit **
  22  Prefactor     6.6162        16.259        .37602E-05   -.81971E-04
  23  Prefactor     .10000E-03    9.5144       -.20677E-06** at limit **
  24  Normalizat    .95547        .26044       -.18331E-06   -.18462E-04
  25  Prefactor     1.2434        .12959       -.10760E-06   -.24241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.74913
  Prefactor  = 0.0001
  Prefactor  = 48.2081
  Prefactor  = 0.0001
  Prefactor  = 23.6816
  Prefactor  = 16.5859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.59121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2215
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.61623
  Prefactor  = 0.0001
  Normalizat = 0.955466
  Prefactor  = 1.24335
 **********
 **   18 **HESSE 
 **********

 FCN=   7613.915     FROM HESSE     STATUS=OK           417 CALLS     3287 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.7491        17.026        .14409E-03   -1.5151    
   5  Prefactor     .10000E-03    13.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     48.208        62.636        .57742E-04   -1.4318    
   7  Prefactor     .10000E-03    77.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.682        20.692        .82327E-04   -1.4734    
   9  Prefactor     16.586        25.819        .98332E-04   -1.4893    
  10  Prefactor     .10000E-03    15.840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.9700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.5912        2.6692        .11753E-03   -1.5329    
  13  Prefactor     .10000E-03    184.03        .41933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.1367        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    181.62        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    20.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.1963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.221        10.548        .81400E-04   -1.4723    
  20  Prefactor     .10000E-03    4.0440        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    44.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6162        16.549        .78027E-03   -1.5193    
  23  Prefactor     .10000E-03    9.5495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95547        .29713        .40361E-03   -.94538    
  25  Prefactor     1.2434        .14890        .18314E-03   -.85007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27568e-10
Minuit parameter uncertainties:
  1  4.6808e-06
  2  6.2551e-05
  3  0.000199254
  4  17.0366
  5  8.02245e-05
  6  62.7219
  7  0.000293451
  8  20.6983
  9  25.8362
  10  7.37045e-05
  11  9.41285e-08
  12  2.66926
  13  0.000563354
  14  2.18052e-05
  15  1.65145e-07
  16  0.000698869
  17  0.00017998
  18  1.15557e-06
  19  10.5485
  20  3.77512e-06
  21  0.00023232
  22  16.5605
  23  2.63226e-05
  24  0.297644
  25  0.148946
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  7.370e-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.243e+00  1.489e-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.555e-01  2.976e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 322.296 -2.683
Photon Flux Upper Limit: 9.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/629140/likelihoodResults_665712001_665971201_4FGL_J2129.1-0240_daily_bin1645.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) = 7613.9157668
delta logL = -0.000300648047414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7613.84576447
delta logL = 0.0697016872255

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79082E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.3749       1.0000          .0000       10.000    
     3 'Normalizat'    .92670       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2530       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=   7613.846     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      297 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .86869E-03    .17438E-01    .14999E-02** at limit **
   2  Index         8.3293        2.6001        .50000        .51440E-04
   3  Normalizat    .92523        .23744E-01    .92464E-01   -.24061E-05
   4  Prefactor     1.2536        .12154E-01    .33483E-01   -.14970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000868689
  Index      = 8.32933
  Normalizat = 0.925227
  Prefactor  = 1.25364
 **********
 **   18 **HESSE 
 **********

 FCN=   7613.846     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .86869E-03    .35015        .59559E-04   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.3293        5.7268        .17393E-01    .72865    
   3  Normalizat    .92523        .15084        .40955E-03   -.95579    
   4  Prefactor     1.2536        .76231E-01    .18249E-03   -.84696    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96539e-07
Minuit parameter uncertainties:
  1  0.032812
  2  19.1938
  3  0.150906
  4  0.0762377
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/629140': 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) = 7613.84574487
delta logL = 0.0697212813957

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  8.687e-04  3.281e-02  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  8.329e+00  1.919e+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:  1.254e+00  7.624e-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:  9.252e-01  1.509e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.23e-03', job_status='DONE', photon_flux_upper_limit='9.22e-08', time_completed='2022-02-08 00:52:16.630740', job_id='629140', GAL2='1.25', fit_tolerance='1e-08', EG2='0.93', EG='0.96', time_epoch_completed='1644310336.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='6.97e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='1645' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:52:16 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 629140: <4FGL_J2129.1-0240_daily_bin1645> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin1645> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Feb  8 00:35:54 2022
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:35:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:35:57 2022
Terminated at Tue Feb  8 00:52:17 2022
Results reported at Tue Feb  8 00:52:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin1645 322.296 -2.6829 665712001 665971201 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 :                                   781.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            983 sec.

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

