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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1465
RA = 337.426, Dec = -8.5447
tmin = 619056001, tmax = 619315201
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='314596', job_status='RUN', time_executed='2021-09-28 12:08:20.176420', time_epoch_executed='1632856100.18' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314596/ft1_4FGL_J2229.7-0832_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314596/ft1_4FGL_J2229.7-0832_daily_bin1465.fits outfile=/scratch/kocevski/314596/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1465.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=619056001.0 tmax=619315201.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.60
user 3.36
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.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/314596/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1465.fits evtable="EVENTS" outfile="/scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits" evtable="EVENTS" scfile=/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits sctable="SC_DATA" outfile=/scratch/kocevski/314596/ltcube_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.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/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits
.....................!
real 11.98
user 11.41
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/314596/ltcube_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.fits outfile=/scratch/kocevski/314596/expmap_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.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/314596/ltcube_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.fits
.....................!
real 193.36
user 187.78
sys 5.15

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 158 point sources and 0 extended sources

Setting source of interest to:
4FGL J2229.7-0832 @ 337.426 -8.5447

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits scfile=/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits outfile=/scratch/kocevski/314596/cmap_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.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=337.426 yref=-8.5447 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits scfile=/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits outfile=/scratch/kocevski/314596/cmap_HighResolution_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.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=337.426 yref=-8.5447 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314596/Model_4FGL_J2229.7-0832_daily_bin1465.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/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits.....................!
real 49.82
user 48.44
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits', '/scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits', expMap='/scratch/kocevski/314596/expmap_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.fits', expCube='/scratch/kocevski/314596/ltcube_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/314596/Model_4FGL_J2229.7-0832_daily_bin1465.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2229.7-0832'

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.119e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/314596/ft1_filtered_4FGL_J2229.7-0832_daily_bin1465.fits
Spacecraft file(s): /scratch/kocevski/314596/ft2_4FGL_J2229.7-0832_daily_bin1465.fits
Exposure map: /scratch/kocevski/314596/expmap_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.fits
Exposure cube: /scratch/kocevski/314596/ltcube_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/314596/Model_4FGL_J2229.7-0832_daily_bin1465.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) = 4856.48885134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.2717       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2023       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24887E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.201       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10159E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7373       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0543       1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.961       1.0000         .10000E-03   10000.    
    16 'norm      '    .10235E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.900       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    25.664       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .80927       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0162       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4856.030     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2429 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.3634        .41560E-08** at limit **
   2  Prefactor     3.2796        7.7725        .28552E-07    .11454E-03
   3  Prefactor     3.2014        8.5420        .18408E-05   -.80704E-04
   4  Prefactor     .10032E-03    19.370       -.14494E-05** at limit **
   5  Prefactor     40.193        25.411       -.48728E-07   -.30108E-04
   6  Prefactor     .10000E-03    12.993       -.12918E-07** at limit **
   7  Prefactor     1.7481        20.797        .41152E-06    .33432E-04
   8  Prefactor     .10000E-03    9.8175       -.17193E-07** at limit **
   9  Prefactor     .10000E-03    51.964       -.93476E-06** at limit **
  10  Prefactor     .10000E-03    2.0256       -.83812E-08** at limit **
  11  Prefactor     .10000E-03    29.318       -.19540E-06** at limit **
  12  norm          .10000E-03    4.4701       -.13166E-07** at limit **
  13  Prefactor     .10000E-03    40.363        .86009E-06** at limit **
  14  norm          2.0540        1.1199        .10820E-07    .11659E-03
  15  Prefactor     75.948        28.512        .46801E-06    .52894E-03
  16  norm          .10000E-03    1.4382       -.55417E-06** at limit **
  17  Prefactor     18.842        48.411        .24913E-05    .93833E-05
  18  Prefactor     .10000E-03    5.6915       -.95567E-07** at limit **
  19  Prefactor     .10000E-03    5.1251       -.32755E-07** at limit **
  20  norm          25.661        15.345        .17757E-07    .61374E-05
  21  Normalizat    .80955        .23692       -.12546E-06    .11039E-03
  22  Prefactor     1.0161        .15319       -.96715E-07    .17129E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.27958
  Prefactor  = 3.20142
  Prefactor  = 0.000100316
  Prefactor  = 40.1933
  Prefactor  = 0.0001
  Prefactor  = 1.74814
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 2.05402
  Prefactor  = 75.9485
  norm       = 0.000100001
  Prefactor  = 18.8416
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.6615
  Normalizat = 0.809551
  Prefactor  = 1.01608
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.030     FROM HESSE     STATUS=OK           342 CALLS     2771 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.3642        .12482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.2796        7.7136        .22388E-03   -1.5346    
   3  Prefactor     3.2014        8.6278        .11321E-02   -1.5350    
   4  Prefactor     .10032E-03    129.28        .55591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.193        25.403        .63220E-04   -1.4439    
   6  Prefactor     .10000E-03    13.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7481        20.531        .31836E-03   -1.5444    
   8  Prefactor     .10000E-03    9.9012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    52.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.0452        .96814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.6568        .28731E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0540        1.1185        .52237E-04   -1.5421    
  15  Prefactor     75.948        29.443        .46071E-04   -1.3963    
  16  norm          .10000E-03    2.8089        .15802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.842        48.686        .92128E-04   -1.4840    
  18  Prefactor     .10000E-03    5.7040        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1327        .15408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.661        15.344        .79075E-04   -1.4694    
  21  Normalizat    .80955        .27795        .32025E-03   -.99715    
  22  Prefactor     1.0161        .18125        .19434E-03   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13654e-09
Minuit parameter uncertainties:
  1  3.52495e-09
  2  7.71591
  3  8.63112
  4  0.0128108
  5  25.4098
  6  4.88757e-06
  7  11.9866
  8  1.46981e-06
  9  0.000834213
  10  6.71155e-07
  11  0.0001278
  12  4.77255e-08
  13  0.000682612
  14  1.11853
  15  29.449
  16  0.000103504
  17  48.7893
  18  2.319e-06
  19  1.96868e-06
  20  15.3465
  21  0.278436
  22  0.181358
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  4.773e-08  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.473e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.016e+00  1.814e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  8.096e-01  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 1.12e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314596/likelihoodResults_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.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) = 4856.0309279
delta logL = -0.00102529886863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4856.02990372
delta logL = -1.1221254681e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4896       1.0000          .0000       5.0000    
     3 'Normalizat'    .80925       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+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=   4856.030     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      249 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    832.35        .28996E-02** at limit **
   2  alpha         2.8659        3.9329        .16461       -.36812E-07
   3  Normalizat    .80955        .99199E-01    .32025E-03    .28400E-06
   4  Prefactor     1.0161        .66780E-01    .19434E-03   -.16438E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.86592
  Normalizat = 0.80955
  Prefactor  = 1.01608
 **********
 **   18 **HESSE 
 **********

 FCN=   4856.030     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2613        .57992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8659        3.5429        .65843E-02    .14690    
   3  Normalizat    .80955        .26481        .12810E-04   -.99715    
   4  Prefactor     1.0161        .17959        .77736E-05   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62557e-11
Minuit parameter uncertainties:
  1  3.02191e-06
  2  276.664
  3  0.265231
  4  0.179698
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314596': 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) = 4856.02990137
delta logL = 1.23246991279e-06

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.000e-04  3.022e-06  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.866e+00  2.767e+02  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.910e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  3.313e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  1.016e+00  1.797e-01  0.000e+00  1.000e+01 ( 1.000e+00)
509        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
510        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
507   Normalization:  8.096e-01  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 337.426 -8.545

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/314596/cmap_HighResolution_619056001_619315201_4FGL_J2229.7-0832_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.96e-05', job_status='DONE', photon_flux_upper_limit='1.12e-07', time_completed='2021-09-28 12:17:22.626649', job_id='314596', GAL2='1.02', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632856642.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1465' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:17:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 314596: <4FGL_J2229.7-0832_daily_bin1465> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1465> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 12:06:00 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:06:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 12:06:02 2021
Terminated at Tue Sep 28 12:17:23 2021
Results reported at Tue Sep 28 12:17:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1465 337.426 -8.5447 619056001 619315201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2229.7-0832 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   540.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            683 sec.

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

