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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin775
RA = 322.296, Dec = -2.6829
tmin = 440208001, tmax = 440467201
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='507494', job_status='RUN', time_executed='2021-09-26 14:47:03.669128', time_epoch_executed='1632692823.67' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='775'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/507494

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/507494/ft1_4FGL_J2129.1-0240_daily_bin775.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/507494/ft2_4FGL_J2129.1-0240_daily_bin775.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/507494/ft1_4FGL_J2129.1-0240_daily_bin775.fits outfile=/scratch/kocevski/507494/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin775.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=440208001.0 tmax=440467201.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 2.89
user 2.65
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/507494/ft1_filtered_4FGL_J2129.1-0240_daily_bin775.fits" evtable="EVENTS" scfile=/scratch/kocevski/507494/ft2_4FGL_J2129.1-0240_daily_bin775.fits sctable="SC_DATA" outfile=/scratch/kocevski/507494/ltcube_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.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/507494/ft2_4FGL_J2129.1-0240_daily_bin775.fits
.....................!
real 11.58
user 11.27
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/507494/ft1_filtered_4FGL_J2129.1-0240_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/507494/ft2_4FGL_J2129.1-0240_daily_bin775.fits sctable="SC_DATA" expcube=/scratch/kocevski/507494/ltcube_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.fits outfile=/scratch/kocevski/507494/expmap_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.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/507494/ltcube_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.fits
.....................!
real 155.78
user 151.94
sys 3.42

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/507494/ft1_filtered_4FGL_J2129.1-0240_daily_bin775.fits scfile=/scratch/kocevski/507494/ft2_4FGL_J2129.1-0240_daily_bin775.fits outfile=/scratch/kocevski/507494/cmap_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.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.48
user 0.33
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/507494/ft1_filtered_4FGL_J2129.1-0240_daily_bin775.fits scfile=/scratch/kocevski/507494/ft2_4FGL_J2129.1-0240_daily_bin775.fits outfile=/scratch/kocevski/507494/cmap_HighResolution_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.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.50
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/507494/ft1_filtered_4FGL_J2129.1-0240_daily_bin775.fits evtable="EVENTS" scfile=/scratch/kocevski/507494/ft2_4FGL_J2129.1-0240_daily_bin775.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/507494/Model_4FGL_J2129.1-0240_daily_bin775.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/507494/ft1_filtered_4FGL_J2129.1-0240_daily_bin775.fits.....................!
real 48.16
user 47.08
sys 0.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7613       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.4938       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.798       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.164       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9902       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .49081E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1935       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.677       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.439       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.539       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.7847       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2754       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82060       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=   5826.379     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2950 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7600        6.3013        .52950E-05   -.94943E-04
   2  Prefactor     3.4913        19.065        .37130E-05   -.64510E-05
   3  Prefactor     .10000E-03    14.036       -.32037E-06** at limit **
   4  Prefactor     .10000E-03    10.470       -.13171E-06** at limit **
   5  Prefactor     .10000E-03    7.9407        .52557E-06** at limit **
   6  Prefactor     35.737        74.264        .92712E-05   -.30588E-04
   7  Prefactor     22.135        32.948        .51683E-05    .15395E-03
   8  Prefactor     3.0032        44.400       -.74109E-05   -.50435E-04
   9  Prefactor     .10000E-03    12.580        .83282E-06** at limit **
  10  Prefactor     .10000E-03    89.910       -.16422E-05** at limit **
  11  Prefactor     .10123E-03    4.2062       -.10612E-05** at limit **
  12  Prefactor     1.1923        3.4788       -.10526E-05   -.35210E-03
  13  Prefactor     19.676        41.732        .16905E-05    .53950E-04
  14  Prefactor     34.416        50.734        .42064E-05    .27929E-04
  15  norm          .10000E-03    5.6771        .57670E-07** at limit **
  16  Prefactor     .10000E-03    25.378        .15442E-05** at limit **
  17  norm          14.543        17.826        .45296E-06   -.15202E-04
  18  Prefactor     .10000E-03    2.2951        .10460E-07** at limit **
  19  Prefactor     .10000E-03    5.7356        .11493E-06** at limit **
  20  Prefactor     .10000E-03    29.839       -.10573E-05** at limit **
  21  Prefactor     .10000E-03    8.0608       -.50866E-06** at limit **
  22  Prefactor     2.7734        60.389        .49025E-05    .28235E-04
  23  Prefactor     .10000E-03    14.876       -.86893E-06** at limit **
  24  Normalizat    1.2753        .25763        .11046E-06    .28035E-03
  25  Prefactor     .82070        .11799       -.18555E-05    .35896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.75997
  Prefactor  = 3.49128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.7365
  Prefactor  = 22.1354
  Prefactor  = 3.00321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101233
  Prefactor  = 1.1923
  Prefactor  = 19.6756
  Prefactor  = 34.4156
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.5434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.77339
  Prefactor  = 0.0001
  Normalizat = 1.27531
  Prefactor  = 0.820704
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.379     FROM HESSE     STATUS=OK           427 CALLS     3377 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7600        6.3335        .12247E-02   -1.5376    
   2  Prefactor     3.4913        19.059        .10816E-02   -1.5334    
   3  Prefactor     .10000E-03    14.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.9392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.737        73.510        .66981E-04   -1.4512    
   7  Prefactor     22.135        32.372        .85081E-04   -1.4767    
   8  Prefactor     3.0032        42.637        .23476E-03   -1.5361    
   9  Prefactor     .10000E-03    12.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    90.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10123E-03    8.1641        .50824E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1923        3.3686        .20193E-03   -1.5490    
  13  Prefactor     19.676        41.094        .90291E-04   -1.4821    
  14  Prefactor     34.416        50.437        .68286E-04   -1.4534    
  15  norm          .10000E-03    5.6901        .17763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    25.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.543        17.834        .10504E-03   -1.4945    
  18  Prefactor     .10000E-03    2.2977        .11293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.8009        .17849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.627        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.7734        60.547        .24384E-03   -1.5375    
  23  Prefactor     .10000E-03    14.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2753        .31317        .30449E-03   -.84307    
  25  Prefactor     .82070        .14152        .18291E-03   -.98970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.82764e-10
Minuit parameter uncertainties:
  1  6.33508
  2  16.3223
  3  9.97828e-06
  4  6.79505e-06
  5  8.98307e-06
  6  73.6977
  7  32.3976
  8  22.6507
  9  2.64554e-05
  10  0.000291622
  11  0.00634698
  12  3.36916
  13  41.1535
  14  50.4996
  15  4.46361e-06
  16  5.13077e-05
  17  17.8406
  18  7.77495e-07
  19  1.60409e-05
  20  7.9919e-05
  21  1.50855e-05
  22  25.9462
  23  5.52503e-06
  24  0.313639
  25  0.141582
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.916e-04  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.207e-01  1.416e-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.275e+00  3.136e-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.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/507494/likelihoodResults_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.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) = 5826.37941412
delta logL = -5.27361698914e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5826.37936148
delta logL = -9.91585693555e-08

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 'Index     '    2.5911       1.0000          .0000       10.000    
     3 'Normalizat'    1.2753       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82071       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=   5826.379     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      282 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9060.0        .18142E-02** at limit **
   2  Index         2.6671        7.9902        .50000       -.10727E-04
   3  Normalizat    1.2753        .82625E-01    .30449E-03    .12695E-05
   4  Prefactor     .82070        .41040E-01    .18291E-03   -.29213E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100012
  Index      = 2.66706
  Normalizat = 1.2753
  Prefactor  = 0.820704
 **********
 **   18 **HESSE 
 **********

 FCN=   5826.379     FROM HESSE     STATUS=OK            29 CALLS      311 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    153.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6671        6.3013        .50000       -.48543    
   3  Normalizat    1.2753        .28009        .12179E-04   -.84307    
   4  Prefactor     .82070        .13928        .73163E-05   -.98970    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44281e-10
Minuit parameter uncertainties:
  1  0.00276654
  2  5.51066
  3  0.280426
  4  0.139338
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/507494': 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) = 5826.37936131
delta logL = 6.94217305863e-08

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.000e-04  2.767e-03  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.667e+00  5.511e+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:  8.207e-01  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:  1.275e+00  2.804e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/507494/cmap_HighResolution_440208001_440467201_4FGL_J2129.1-0240_daily_bin775.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.17e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-26 14:56:23.060398', job_id='507494', GAL2='0.82', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1632693383.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='775' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:56:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 507494: <4FGL_J2129.1-0240_daily_bin775> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin775> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:40:34 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:44:13 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:44:13 2021
Terminated at Sun Sep 26 14:56:23 2021
Results reported at Sun Sep 26 14:56:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin775 322.296 -2.6829 440208001 440467201 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 :                                   557.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            949 sec.

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

