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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin524
RA = 322.296, Dec = -2.6829
tmin = 375148801, tmax = 375408001
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='506004', job_status='RUN', time_executed='2021-09-26 14:38:01.212772', time_epoch_executed='1632692281.21' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/506004

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/506004/ft1_4FGL_J2129.1-0240_daily_bin524.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/506004/ft2_4FGL_J2129.1-0240_daily_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/506004/ft1_4FGL_J2129.1-0240_daily_bin524.fits outfile=/scratch/kocevski/506004/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin524.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=375148801.0 tmax=375408001.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 4.63
user 4.41
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/506004/ft1_filtered_4FGL_J2129.1-0240_daily_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/506004/ft2_4FGL_J2129.1-0240_daily_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/506004/ltcube_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.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/506004/ft2_4FGL_J2129.1-0240_daily_bin524.fits
.....................!
real 14.92
user 14.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/506004/ft1_filtered_4FGL_J2129.1-0240_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/506004/ft2_4FGL_J2129.1-0240_daily_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/506004/ltcube_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.fits outfile=/scratch/kocevski/506004/expmap_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.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/506004/ltcube_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.fits
.....................!
real 194.26
user 188.52
sys 5.20

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/506004/ft1_filtered_4FGL_J2129.1-0240_daily_bin524.fits scfile=/scratch/kocevski/506004/ft2_4FGL_J2129.1-0240_daily_bin524.fits outfile=/scratch/kocevski/506004/cmap_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/506004/ft1_filtered_4FGL_J2129.1-0240_daily_bin524.fits scfile=/scratch/kocevski/506004/ft2_4FGL_J2129.1-0240_daily_bin524.fits outfile=/scratch/kocevski/506004/cmap_HighResolution_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.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/506004/ft1_filtered_4FGL_J2129.1-0240_daily_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/506004/ft2_4FGL_J2129.1-0240_daily_bin524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/506004/Model_4FGL_J2129.1-0240_daily_bin524.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/506004/ft1_filtered_4FGL_J2129.1-0240_daily_bin524.fits.....................!
real 67.49
user 66.08
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .29296       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8541       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.387       1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.525       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.9935       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21267E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    40.545       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9401       1.0000         .10000E-03   10000.    
    16 'Prefactor '    53.271       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0057       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10480E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96974       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90441       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=   6653.963     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     2940 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5998        .29004E-06** at limit **
   2  Prefactor     .11334        10.940       -.78576E-06    .17277E-03
   3  Prefactor     .10000E-03    47.464       -.43388E-07** at limit **
   4  Prefactor     .10000E-03    24.654       -.81325E-06** at limit **
   5  Prefactor     6.8518        16.623        .38322E-07    .46870E-05
   6  Prefactor     .10000E-03    19.466        .58903E-06** at limit **
   7  Prefactor     .10000E-03    7.6323        .69329E-08** at limit **
   8  Prefactor     2.2795        8.5892        .36528E-06    .64245E-05
   9  Prefactor     14.370        25.164        .75371E-06    .36326E-06
  10  Prefactor     19.574        41.536        .14261E-05    .12025E-03
  11  Prefactor     9.9892        6.8984        .37128E-07    .17814E-04
  12  Prefactor     .10000E-03    1.4790       -.56830E-06** at limit **
  13  Prefactor     .10000E-03    43.870        .19393E-05** at limit **
  14  Prefactor     40.548        39.436        .16353E-05    .50310E-04
  15  norm          3.9391        7.4488        .14162E-05    .30485E-04
  16  Prefactor     53.237        57.636        .33569E-05    .71086E-05
  17  norm          5.9836        19.465       -.20365E-05   -.23052E-05
  18  Prefactor     .10000E-03    4.3202       -.48460E-06** at limit **
  19  Prefactor     4.7547        6.2894        .12447E-05    .52537E-04
  20  Prefactor     .10000E-03    8.3959       -.12400E-06** at limit **
  21  Prefactor     .10000E-03    12.286        .10748E-06** at limit **
  22  Prefactor     .10000E-03    13.871       -.29688E-06** at limit **
  23  Prefactor     .10000E-03    49.031       -.17706E-05** at limit **
  24  Normalizat    .97076        .22876        .15265E-06    .16582E-03
  25  Prefactor     .90413        .10958       -.56359E-06    .24045E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.113335
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.85178
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.27947
  Prefactor  = 14.3703
  Prefactor  = 19.574
  Prefactor  = 9.98925
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.548
  norm       = 3.93913
  Prefactor  = 53.2373
  norm       = 5.98361
  Prefactor  = 0.0001
  Prefactor  = 4.75474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.970756
  Prefactor  = 0.904125
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.963     FROM HESSE     STATUS=OK           433 CALLS     3373 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0082        .29527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11334        19.142        .72135E-01   -1.5641    
   3  Prefactor     .10000E-03    47.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.8518        16.611        .15325E-03   -1.5184    
   6  Prefactor     .10000E-03    19.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.6625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.2795        8.5815        .27179E-03   -1.5406    
   9  Prefactor     14.370        25.159        .10560E-03   -1.4950    
  10  Prefactor     19.574        39.227        .90642E-04   -1.4823    
  11  Prefactor     9.9892        6.8972        .12676E-03   -1.5076    
  12  Prefactor     .10000E-03    5.2211        .17197E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     40.548        39.468        .62951E-04   -1.4434    
  15  norm          3.9391        7.4415        .10161E-02   -1.5311    
  16  Prefactor     53.237        57.758        .54953E-04   -1.4247    
  17  norm          5.9836        19.424        .16385E-03   -1.5219    
  18  Prefactor     .10000E-03    4.3569        .16583E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7547        6.3361        .92213E-03   -1.5272    
  20  Prefactor     .10000E-03    8.4530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    49.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97076        .27793        .32789E-03   -.94017    
  25  Prefactor     .90413        .13273        .17071E-03   -.95997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1936e-09
Minuit parameter uncertainties:
  1  1.28179e-05
  2  2.94545
  3  1.98849e-05
  4  2.02506e-05
  5  16.6217
  6  1.30774e-05
  7  3.52032e-06
  8  8.58613
  9  25.178
  10  39.2788
  11  6.89771
  12  0.00013361
  13  0.000142812
  14  39.4936
  15  7.44321
  16  57.8185
  17  19.4443
  18  3.59321e-05
  19  6.33697
  20  3.16687e-06
  21  1.24498e-05
  22  1.19569e-05
  23  9.65804e-05
  24  0.278341
  25  0.132782
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  1.957e+01  3.928e+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:  9.041e-01  1.328e-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.708e-01  2.783e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/506004/likelihoodResults_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.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) = 6653.96012918
delta logL = 0.00285244969473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6653.95906387
delta logL = 0.00391776689412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.413       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5182       1.0000          .0000       10.000    
     3 'Normalizat'    .97398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90285       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=   6653.959     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      292 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.436        47.333        .86558E-04   -.78805E-06
   2  Index         2.5220        1.3001        .14630E-01    .85377E-05
   3  Normalizat    .97362        .26391        .32744E-03    .10871E-03
   4  Prefactor     .90302        .13238        .17080E-03   -.18339E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.4355
  Index      = 2.52201
  Normalizat = 0.973618
  Prefactor  = 0.903015
 **********
 **   18 **HESSE 
 **********

 FCN=   6653.959     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.436        45.263        .34623E-05   -1.4782    
   2  Index         2.5220        1.2438        .58520E-03   -.51852    
   3  Normalizat    .97362        .26407        .13098E-04   -.93920    
   4  Prefactor     .90302        .13241        .34160E-04   -.96036    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09849e-10
Minuit parameter uncertainties:
  1  45.3353
  2  1.26143
  3  0.264425
  4  0.132456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/506004': 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) = 6653.95905745
delta logL = 0.00392418867705

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  2.144e+01  4.534e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  2.522e+00  1.261e+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:  9.030e-01  1.325e-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.736e-01  2.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.30
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/506004/cmap_HighResolution_375148801_375408001_4FGL_J2129.1-0240_daily_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-26 14:50:25.747688', job_id='506004', GAL2='0.90', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632693025.75', return_code2='0', ts='0.30', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.92e-03', ts2='0.31', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='524' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:50:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 506004: <4FGL_J2129.1-0240_daily_bin524> in cluster <slac> Done

Job <4FGL_J2129.1-0240_daily_bin524> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 14:35:16 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 14:35:35 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:35:35 2021
Terminated at Sun Sep 26 14:50:26 2021
Results reported at Sun Sep 26 14:50:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin524 322.296 -2.6829 375148801 375408001 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 :                                   741.59 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            910 sec.

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

