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


Performing analysis on: 4FGL_J2129.1-0240_daily_bin206
RA = 322.296, Dec = -2.6829
tmin = 292723201, tmax = 292982401
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='503661', job_status='RUN', time_executed='2021-09-26 14:28:47.209975', time_epoch_executed='1632691727.21' WHERE source_name='4FGL J2129.1-0240' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/503661

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/503661/ft1_4FGL_J2129.1-0240_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/503661/ft2_4FGL_J2129.1-0240_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/503661/ft1_4FGL_J2129.1-0240_daily_bin206.fits outfile=/scratch/kocevski/503661/ft1_filteredMKT_4FGL_J2129.1-0240_daily_bin206.fits ra=322.296 dec=-2.6829 rad=12.0 tmin=292723201.0 tmax=292982401.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.44
user 4.12
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/503661/ft1_filtered_4FGL_J2129.1-0240_daily_bin206.fits" evtable="EVENTS" scfile=/scratch/kocevski/503661/ft2_4FGL_J2129.1-0240_daily_bin206.fits sctable="SC_DATA" outfile=/scratch/kocevski/503661/ltcube_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.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/503661/ft2_4FGL_J2129.1-0240_daily_bin206.fits
.....................!
real 12.97
user 12.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/503661/ft1_filtered_4FGL_J2129.1-0240_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/503661/ft2_4FGL_J2129.1-0240_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/503661/ltcube_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.fits outfile=/scratch/kocevski/503661/expmap_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.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/503661/ltcube_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.fits
.....................!
real 190.45
user 184.55
sys 5.31

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/503661/ft1_filtered_4FGL_J2129.1-0240_daily_bin206.fits scfile=/scratch/kocevski/503661/ft2_4FGL_J2129.1-0240_daily_bin206.fits outfile=/scratch/kocevski/503661/cmap_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/503661/ft1_filtered_4FGL_J2129.1-0240_daily_bin206.fits scfile=/scratch/kocevski/503661/ft2_4FGL_J2129.1-0240_daily_bin206.fits outfile=/scratch/kocevski/503661/cmap_HighResolution_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/503661/ft1_filtered_4FGL_J2129.1-0240_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/503661/ft2_4FGL_J2129.1-0240_daily_bin206.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/503661/Model_4FGL_J2129.1-0240_daily_bin206.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/503661/ft1_filtered_4FGL_J2129.1-0240_daily_bin206.fits.....................!
real 61.69
user 59.84
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9519       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    107.21       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.352       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.878       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.832       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    34.591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3773       1.0000         .10000E-03   10000.    
    10 'Prefactor '    62.122       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .90295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.502       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11525E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10150E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.940       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .20383E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.0467       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .76489E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85290       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99973       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=   6020.547     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3350 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9529        7.0880        .32949E-06   -.81314E-04
   2  Prefactor     .10000E-03    8.0065        .24212E-07** at limit **
   3  Prefactor     107.22        84.703       -.41984E-07   -.10165E-04
   4  Prefactor     13.340        39.965        .13766E-06    .76638E-05
   5  Prefactor     29.883        29.220       -.37177E-08   -.25868E-04
   6  Prefactor     38.741        91.863       -.17262E-06   -.28914E-04
   7  Prefactor     .10000E-03    13.706        .41846E-06** at limit **
   8  Prefactor     34.581        19.524       -.48583E-07    .37302E-04
   9  Prefactor     7.3729        23.475        .33378E-06    .69368E-05
  10  Prefactor     62.092        73.229       -.44516E-05   -.11485E-03
  11  Prefactor     .10000E-03    2.3545        .52238E-07** at limit **
  12  Prefactor     .90535        4.1476        .23124E-05    .26876E-05
  13  Prefactor     17.505        32.890       -.12191E-05   -.75938E-04
  14  Prefactor     .10000E-03    19.174       -.14326E-06** at limit **
  15  norm          .10000E-03    3.4811        .22867E-08** at limit **
  16  Prefactor     .10000E-03    65.389       -.12979E-06** at limit **
  17  norm          .10000E-03    12.469       -.27161E-08** at limit **
  18  Prefactor     14.931        10.366        .17607E-08   -.20604E-04
  19  Prefactor     .10001E-03    4.7797        .37763E-06** at limit **
  20  Prefactor     6.0514        15.238        .66994E-06   -.75502E-04
  21  Prefactor     .10000E-03    22.286       -.50229E-07** at limit **
  22  Prefactor     .13651E-02    11.086       -.94944E-06** at limit **
  23  Prefactor     .10000E-03    16.744       -.23046E-06** at limit **
  24  Normalizat    .85291        .27449        .17862E-05   -.15397E-03
  25  Prefactor     .99973        .12897       -.72627E-06   -.35594E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.95291
  Prefactor  = 0.0001
  Prefactor  = 107.219
  Prefactor  = 13.3404
  Prefactor  = 29.883
  Prefactor  = 38.7406
  Prefactor  = 0.0001
  Prefactor  = 34.5812
  Prefactor  = 7.37294
  Prefactor  = 62.0923
  Prefactor  = 0.0001
  Prefactor  = 0.905351
  Prefactor  = 17.505
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9314
  Prefactor  = 0.000100006
  Prefactor  = 6.05138
  Prefactor  = 0.0001
  Prefactor  = 0.00136513
  Prefactor  = 0.0001
  Normalizat = 0.852911
  Prefactor  = 0.999733
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.547     FROM HESSE     STATUS=OK           431 CALLS     3781 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9529        7.0537        .20291E-03   -1.5310    
   2  Prefactor     .10000E-03    8.0346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     107.22        84.739        .38841E-04   -1.3633    
   4  Prefactor     13.340        39.832        .10962E-03   -1.4977    
   5  Prefactor     29.883        29.152        .73299E-04   -1.4614    
   6  Prefactor     38.741        91.755        .64320E-04   -1.4462    
   7  Prefactor     .10000E-03    13.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     34.581        19.540        .68136E-04   -1.4531    
   9  Prefactor     7.3729        23.451        .14767E-03   -1.5165    
  10  Prefactor     62.092        73.837        .50910E-04   -1.4130    
  11  Prefactor     .10000E-03    2.3604        .11625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .90535        4.2534        .23275E-03   -1.5518    
  13  Prefactor     17.505        32.919        .95736E-04   -1.4871    
  14  Prefactor     .10000E-03    19.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4837        .14139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    65.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    12.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.931        10.355        .10362E-03   -1.4935    
  19  Prefactor     .10001E-03    16.889        .32410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.0514        15.186        .16328E-03   -1.5216    
  21  Prefactor     .10000E-03    22.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .13651E-02    21.185        .83219E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .85291        .31130        .37591E-03   -.98135    
  25  Prefactor     .99973        .15036        .17607E-03   -.92738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17839e-09
Minuit parameter uncertainties:
  1  7.05522
  2  4.99219e-06
  3  84.835
  4  39.9111
  5  29.1663
  6  92.0916
  7  4.42426e-05
  8  19.5435
  9  23.4804
  10  73.9463
  11  2.37755e-06
  12  3.92492
  13  32.9526
  14  4.70042e-05
  15  3.25645e-07
  16  1.42676e-05
  17  1.10293e-06
  18  10.3565
  19  0.000662393
  20  15.1962
  21  2.16751e-05
  22  0.327545
  23  4.25956e-05
  24  0.311952
  25  0.150421
Done.

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

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  6.209e+01  7.395e+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.997e-01  1.504e-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:  8.529e-01  3.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.45
Ra Dec: 322.296 -2.683
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 7.89e-08 +/- 9.38e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 2.38e-05

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

Saving results to:
/scratch/kocevski/503661/likelihoodResults_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.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) = 6020.31725322
delta logL = 0.229743037325

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6020.29762233
delta logL = 0.249373926987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.645       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4032       1.0000          .0000       10.000    
     3 'Normalizat'    .80900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0172       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6020.298     FROM MIGRAD    STATUS=FAILED        96 CALLS      312 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.736        776.00        .77608E-04   -.68117E-04
   2  Index         3.4021        6.6639        .63543E-02    .49806E-03
   3  Normalizat    .80729        .31168        .38533E-03   -.21898E-03
   4  Prefactor     1.0181        .16808        .17465E-03    .63171E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6020.298     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      403 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.736        776.00        .46098E-03   -.68117E-04
   2  Index         3.4021        6.6639        .13402E-02    .49806E-03
   3  Normalizat    .80729        .31168        .33564E-03   -.21898E-03
   4  Prefactor     1.0181        .16808        .16835E-03    .63171E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6020.298     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      444 TOTAL
                     EDM=   .48E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.736        73.862        .31043E-05    .10987E-04
   2  Index         3.4021        1.6658        .12709E-02    .54837E-05
   3  Normalizat    .80731        .30411        .15413E-04   -.28029E-05
   4  Prefactor     1.0181        .15118        .34930E-04   -.76160E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.7364
  Index      = 3.40209
  Normalizat = 0.807306
  Prefactor  = 1.01808
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.298     FROM HESSE     STATUS=OK            23 CALLS      467 TOTAL
                     EDM=   .31E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.736        66.482        .62086E-06   -1.4673    
   2  Index         3.4021        1.5012        .50834E-04   -.32529    
   3  Normalizat    .80731        .30412        .30826E-05   -.99798    
   4  Prefactor     1.0181        .15092        .69860E-05   -.92129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05755e-13
Minuit parameter uncertainties:
  1  66.6671
  2  1.52748
  3  0.304764
  4  0.150986
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/503661': 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) = 6020.29760423
delta logL = 0.249392028687

Extracting fit parameters...

4FGL J2129.1-0240
   Spectrum: PowerLaw
294    Prefactor:  2.674e+01  6.667e+01  1.000e-04  1.000e+04 ( 1.000e-13)
295        Index:  3.402e+00  1.527e+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.018e+00  1.510e-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:  8.073e-01  3.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.04
Ra Dec: 322.296 -2.683
Photon Index (Free Index): 3.40 +/- 1.53
Photon Flux (Free Index): 1.09e-07 +/- 8.99e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.66e-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/503661/cmap_HighResolution_292723201_292982401_4FGL_J2129.1-0240_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', comment='SUCCESS', photon_flux='7.89e-08', energy_flux2='1.86e-05', photon_flux_error='9.38e-08', dlogl='2.49e-01', energy_flux='2.00e-05', photon_flux2='1.09e-07', job_status='DONE', time_completed='2021-09-26 14:41:00.964127', photon_index_error2='1.53', photon_index2='3.40', ts='1.45', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.23e-07', energy_flux_error2='1.66e-05', EG='0.85', time_epoch_completed='1632692460.96', return_code='0', job_id='503661', GAL2='1.02', EG2='0.81', return_code2='0', energy_flux_error='2.38e-05', photon_flux_error2='8.99e-08', ts2='2.04', photon_index='2.64' WHERE bin_id='206' AND source_name='4FGL J2129.1-0240' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 14:41:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 503661: <4FGL_J2129.1-0240_daily_bin206> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2129.1-0240_daily_bin206 322.296 -2.6829 292723201 292982401 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 :                                   731.50 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            943 sec.

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

