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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin190
RA = 322.296, Dec = -2.6829
tmin = 288576001, tmax = 288835201
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='503636', job_status='RUN', time_executed='2021-09-26 14:28:47.712881', time_epoch_executed='1632691727.71' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503636/ft1_4FGL_J2129.1-0240_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503636/ft2_4FGL_J2129.1-0240_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503636/ft1_4FGL_J2129.1-0240_daily_bin190.fits outfile=/scratch/kocevski/503636/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin190.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=288576001.0 tmax=288835201.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.64
user 3.37
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503636/ft1_filtered_4FGL_J2129.1-0240_daily_bin190.fits" evtable="EVENTS" scfile=/scratch/kocevski/503636/ft2_4FGL_J2129.1-0240_daily_bin190.fits sctable="SC_DATA" outfile=/scratch/kocevski/503636/ltcube_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.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/503636/ft2_4FGL_J2129.1-0240_daily_bin190.fits
.....................!
real 14.42
user 14.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503636/ft1_filtered_4FGL_J2129.1-0240_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/503636/ft2_4FGL_J2129.1-0240_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/503636/ltcube_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.fits outfile=/scratch/kocevski/503636/expmap_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.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/503636/ltcube_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.fits
.....................!
real 191.87
user 186.09
sys 5.10

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/503636/ft1_filtered_4FGL_J2129.1-0240_daily_bin190.fits scfile=/scratch/kocevski/503636/ft2_4FGL_J2129.1-0240_daily_bin190.fits outfile=/scratch/kocevski/503636/cmap_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503636/ft1_filtered_4FGL_J2129.1-0240_daily_bin190.fits scfile=/scratch/kocevski/503636/ft2_4FGL_J2129.1-0240_daily_bin190.fits outfile=/scratch/kocevski/503636/cmap_HighResolution_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=322.296 yref=-2.6829 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503636/ft1_filtered_4FGL_J2129.1-0240_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/503636/ft2_4FGL_J2129.1-0240_daily_bin190.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503636/Model_4FGL_J2129.1-0240_daily_bin190.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/503636/ft1_filtered_4FGL_J2129.1-0240_daily_bin190.fits.....................!
real 60.21
user 58.74
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.598       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.991       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10521E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.086       1.0000         .10000E-03   10000.    
    10 'Prefactor '    59.703       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9928       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10840E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.048       1.0000         .10000E-03   10000.    
    15 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .58050E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .10282E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.742       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9246       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2405       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.694       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .47506       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2681       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6037.434     FROM MIGRAD    STATUS=CONVERGED    135 CALLS     2443 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5418        .86147E-06** at limit **
   2  Prefactor     .10000E-03    11.152       -.21087E-05** at limit **
   3  Prefactor     .10002E-03    32.047        .10901E-04** at limit **
   4  Prefactor     .10014E-03    17.715       -.13956E-04** at limit **
   5  Prefactor     29.590        22.516       -.71734E-05   -.15492E-01
   6  Prefactor     72.005        3.4022       -.16237E-06    .21477E-02
   7  Prefactor     .10005E-03    22.000       -.13307E-04** at limit **
   8  Prefactor     .10000E-03    6.2705        .51296E-06** at limit **
   9  Prefactor     11.093        3.0930        .18570E-05    .13006E-02
  10  Prefactor     59.804        26.736       -.29867E-05    .13085E-01
  11  Prefactor     .10000E-03    3.6578       -.45651E-06** at limit **
  12  Prefactor     2.9920        2.4814        .21206E-07   -.20540E-03
  13  Prefactor     .10027E-03    17.118        .15772E-04** at limit **
  14  Prefactor     21.113        24.191       -.87849E-05    .60241E-02
  15  norm          .10000E-03    4.0240        .58722E-06** at limit **
  16  Prefactor     .15600E-02    1824.0       -.17938E-03** at limit **
  17  norm          .10000E-03    12.013       -.15204E-05** at limit **
  18  Prefactor     11.713        4.6420        .50728E-05    .93109E-03
  19  Prefactor     8.9260        7.2251       -.14609E-04   -.49398E-02
  20  Prefactor     2.2414        1.9494       -.20524E-05   -.15607E-03
  21  Prefactor     .10000E-03    7.2708        .10775E-06** at limit **
  22  Prefactor     21.692        4.1736        .86698E-06   -.73300E-02
  23  Prefactor     .10001E-03    63.786        .47595E-05** at limit **
  24  Normalizat    .47462        .29359       -.12667E-04   -.18804E-04
  25  Prefactor     1.2682        .15212        .20436E-05    .33918E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.000100142
  Prefactor  = 29.5904
  Prefactor  = 72.0054
  Prefactor  = 0.000100047
  Prefactor  = 0.0001
  Prefactor  = 11.0934
  Prefactor  = 59.8035
  Prefactor  = 0.0001
  Prefactor  = 2.99198
  Prefactor  = 0.000100266
  Prefactor  = 21.1128
  norm       = 0.0001
  Prefactor  = 0.00156002
  norm       = 0.0001
  Prefactor  = 11.713
  Prefactor  = 8.92604
  Prefactor  = 2.24136
  Prefactor  = 0.0001
  Prefactor  = 21.6918
  Prefactor  = 0.000100012
  Normalizat = 0.474616
  Prefactor  = 1.26817
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.434     FROM HESSE     STATUS=OK           481 CALLS     2924 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.3329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.105        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    32.005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10014E-03    19.142        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     29.590        28.565        .18411E-02   -1.4619    
   6  Prefactor     72.005        76.382        .11829E-02   -1.4009    
   7  Prefactor     .10005E-03    21.920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.2598        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.093        26.942        .30081E-02   -1.5042    
  10  Prefactor     59.804        52.953        .12981E-02   -1.4160    
  11  Prefactor     .10000E-03    3.6429        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.9920        2.5328        .58663E-02   -1.5362    
  13  Prefactor     .10027E-03    19.633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.113        47.069        .21826E-02   -1.4789    
  15  norm          .10000E-03    4.0219        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15600E-02    130.67        .13448       -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.992        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.713        11.794        .29227E-02   -1.5023    
  19  Prefactor     8.9260        7.3623        .33542E-02   -1.5110    
  20  Prefactor     2.2414        10.552        .68645E-02   -1.5409    
  21  Prefactor     .10000E-03    7.2674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.692        18.419        .21499E-02   -1.4776    
  23  Prefactor     .10001E-03    62.150        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .47462        .31003        .11136       -1.1361    
  25  Prefactor     1.2682        .14940        .33190E-01   -.84258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04681e-06
Minuit parameter uncertainties:
  1  2.04559e-05
  2  0.000118967
  3  0.00148696
  4  0.00330287
  5  28.5784
  6  76.4861
  7  0.0020246
  8  1.20673e-05
  9  26.9716
  10  52.9943
  11  1.03357e-05
  12  2.53286
  13  0.0045752
  14  47.152
  15  1.14492e-05
  16  0.875481
  17  1.97782e-05
  18  11.7966
  19  7.36302
  20  9.72883
  21  4.10861e-06
  22  18.4234
  23  0.00173258
  24  0.311162
  25  0.149452
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  5.980e+01  5.299e+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.268e+00  1.495e-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:  4.746e-01  3.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.06
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 7.60e-08 +/- 6.73e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.71e-05

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

Saving results to:
/scratch/kocevski/503636/likelihoodResults_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.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) = 6037.38433827
delta logL = 0.0492072096486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6037.38075847
delta logL = 0.0527870023152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.198       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9822       1.0000          .0000       10.000    
     3 'Normalizat'    .44746       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2778       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=   6037.381     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      293 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.191        81.689        .59637E-04   -.10649E-03
   2  Index         2.9824        1.4277        .78905E-02   -.42875E-04
   3  Normalizat    .44744        .30861        .50765E-03   -.11070E-03
   4  Prefactor     1.2779        .15723        .16427E-03   -.47112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1908
  Index      = 2.98237
  Normalizat = 0.447436
  Prefactor  = 1.27785
 **********
 **   18 **HESSE 
 **********

 FCN=   6037.381     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.191        64.535        .11927E-04   -1.4362    
   2  Index         2.9824        1.1301        .31562E-03   -.41537    
   3  Normalizat    .44744        .30363        .20306E-04   -1.1492    
   4  Prefactor     1.2779        .15548        .32853E-04   -.83968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80815e-10
Minuit parameter uncertainties:
  1  64.6346
  2  1.14194
  3  0.304761
  4  0.155541
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503636': 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) = 6037.38075827
delta logL = 0.0527872084613

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  4.519e+01  6.463e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.982e+00  1.142e+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.278e+00  1.555e-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:  4.474e-01  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 2.98 +/- 1.14
Photon Flux (Free Index): 9.54e-08 +/- 9.25e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.54e-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/503636/cmap_HighResolution_288576001_288835201_4FGL_J2129.1-0240_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.66e-02', comment='SUCCESS', photon_flux='7.60e-08', energy_flux2='1.92e-05', photon_flux_error='6.73e-08', dlogl='5.28e-02', energy_flux='1.93e-05', photon_flux2='9.54e-08', job_status='DONE', time_completed='2021-09-26 14:39:54.579746', photon_index_error2='1.14', photon_index2='2.98', ts='2.06', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='1.54e-05', EG='0.47', time_epoch_completed='1632692394.58', return_code='0', job_id='503636', GAL2='1.28', EG2='0.45', return_code2='0', energy_flux_error='1.71e-05', photon_flux_error2='9.25e-08', ts2='2.23', photon_index='2.64' WHERE bin_id='190' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:39:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 503636: <4FGL_J2129.1-0240_daily_bin190> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin190> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 14:25:15 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:25:42 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:25:42 2021
Terminated at Sun Sep 26 14:39:55 2021
Results reported at Sun Sep 26 14:39:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin190 322.296 -2.6829 288576001 288835201 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 :                                   664.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             277.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            880 sec.

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

