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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1028
RA = 337.426, Dec = -8.5447
tmin = 505785601, tmax = 506044801
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='312938', job_status='RUN', time_executed='2021-09-28 12:04:47.475139', time_epoch_executed='1632855887.48' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1028'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312938

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312938/ft1_4FGL_J2229.7-0832_daily_bin1028.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312938/ft1_4FGL_J2229.7-0832_daily_bin1028.fits outfile=/scratch/kocevski/312938/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1028.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=505785601.0 tmax=506044801.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.58
user 3.36
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.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/312938/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1028.fits evtable="EVENTS" outfile="/scratch/kocevski/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits" evtable="EVENTS" scfile=/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits sctable="SC_DATA" outfile=/scratch/kocevski/312938/ltcube_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.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/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits
.....................!
real 13.27
user 12.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits sctable="SC_DATA" expcube=/scratch/kocevski/312938/ltcube_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.fits outfile=/scratch/kocevski/312938/expmap_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.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/312938/ltcube_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.fits
.....................!
real 191.61
user 186.24
sys 5.03

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/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits scfile=/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits outfile=/scratch/kocevski/312938/cmap_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits scfile=/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits outfile=/scratch/kocevski/312938/cmap_HighResolution_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits evtable="EVENTS" scfile=/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312938/Model_4FGL_J2229.7-0832_daily_bin1028.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/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits.....................!
real 64.24
user 62.93
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits', '/scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits', expMap='/scratch/kocevski/312938/expmap_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.fits', expCube='/scratch/kocevski/312938/ltcube_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/312938/Model_4FGL_J2229.7-0832_daily_bin1028.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/312938/ft1_filtered_4FGL_J2229.7-0832_daily_bin1028.fits
Spacecraft file(s): /scratch/kocevski/312938/ft2_4FGL_J2229.7-0832_daily_bin1028.fits
Exposure map: /scratch/kocevski/312938/expmap_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.fits
Exposure cube: /scratch/kocevski/312938/ltcube_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/312938/Model_4FGL_J2229.7-0832_daily_bin1028.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) = 7167.77811909

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.345       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.004       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.187       1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.968       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.849       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.402       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.40       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.644       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3719       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.399       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6356       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.0196       1.0000         .10000E-03   10000.    
    20 'norm      '    4.5288       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0644       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81270       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=   7167.775     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2319 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.345        8.9997       -.30783E-06    .55230E-04
   2  Prefactor     13.005        7.8807        .26675E-06   -.46259E-06
   3  Prefactor     8.1898        9.4855        .15707E-06   -.82171E-05
   4  Prefactor     25.188        18.280        .20852E-06    .53469E-05
   5  Prefactor     14.969        13.216        .10242E-06   -.42700E-04
   6  Prefactor     .10000E-03    7.1093       -.35627E-07** at limit **
   7  Prefactor     28.851        14.074        .29014E-06   -.11051E-04
   8  Prefactor     14.404        11.822        .35788E-06   -.71074E-04
   9  Prefactor     .10000E-03    18.349        .24159E-07** at limit **
  10  Prefactor     .10000E-03    1.1487       -.22713E-07** at limit **
  11  Prefactor     .10000E-03    54.524        .58167E-06** at limit **
  12  norm          4.1364        3.0908        .13576E-06   -.45498E-04
  13  Prefactor     123.41        84.851        .64376E-06    .51221E-04
  14  norm          1.0937        .84312        .10937E-06   -.42796E-06
  15  Prefactor     16.678        24.592        .65832E-05    .58298E-03
  16  norm          5.3682        2.2838       -.10644E-05    .79883E-03
  17  Prefactor     14.417        31.308        .38501E-05    .29283E-03
  18  Prefactor     7.6359        7.3242        .10955E-06    .12382E-03
  19  Prefactor     8.0199        10.283        .11883E-06   -.65051E-04
  20  norm          4.5297        10.509        .75355E-05   -.28454E-03
  21  Normalizat    1.0642        .20727       -.38874E-05    .97059E-04
  22  Prefactor     .81280        .12781        .12074E-05   -.22457E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 14.3445
  Prefactor  = 13.0046
  Prefactor  = 8.18981
  Prefactor  = 25.1876
  Prefactor  = 14.9693
  Prefactor  = 0.0001
  Prefactor  = 28.8509
  Prefactor  = 14.4039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.13637
  Prefactor  = 123.408
  norm       = 1.09373
  Prefactor  = 16.6781
  norm       = 5.3682
  Prefactor  = 14.4174
  Prefactor  = 7.63591
  Prefactor  = 8.01993
  norm       = 4.52974
  Normalizat = 1.0642
  Prefactor  = 0.812802
 **********
 **   18 **HESSE 
 **********

 FCN=   7167.775     FROM HESSE     STATUS=OK           346 CALLS     2665 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.345        9.0031        .52877E-03   -1.4950    
   2  Prefactor     13.005        7.8792        .11108E-03   -1.4987    
   3  Prefactor     8.1898        9.4828        .14010E-03   -1.5136    
   4  Prefactor     25.188        18.276        .79818E-04   -1.4704    
   5  Prefactor     14.969        13.215        .10353E-03   -1.4934    
   6  Prefactor     .10000E-03    7.1231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.851        14.109        .74591E-04   -1.4633    
   8  Prefactor     14.404        11.824        .10554E-03   -1.4949    
   9  Prefactor     .10000E-03    18.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.1521        .88541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    54.670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1364        3.0853        .12262E-03   -1.5301    
  13  Prefactor     123.41        84.900        .36233E-04   -1.3482    
  14  norm          1.0937        .82908        .65051E-04   -1.5499    
  15  Prefactor     16.678        25.664        .98173E-04   -1.4891    
  16  norm          5.3682        2.3828        .52050E-04   -1.5245    
  17  Prefactor     14.417        31.447        .10555E-03   -1.4948    
  18  Prefactor     7.6359        7.3236        .14513E-03   -1.5155    
  19  Prefactor     8.0199        10.295        .14158E-03   -1.5142    
  20  norm          4.5297        10.939        .94588E-03   -1.5282    
  21  Normalizat    1.0642        .23868        .29909E-03   -.90910    
  22  Prefactor     .81280        .14859        .22006E-03   -.99258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68436e-09
Minuit parameter uncertainties:
  1  9.00392
  2  7.87981
  3  9.48457
  4  18.2798
  5  13.2176
  6  3.069e-06
  7  14.1104
  8  11.8261
  9  3.36485e-06
  10  8.04611e-07
  11  0.000433346
  12  3.08545
  13  84.9835
  14  0.829091
  15  25.6813
  16  2.38284
  17  31.483
  18  7.32451
  19  10.2973
  20  10.9439
  21  0.23892
  22  0.148658
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  4.136e+00  3.085e+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

GAL_V02
   Spectrum: PowerLaw
508    Prefactor:  8.128e-01  1.487e-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:  1.064e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.95
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.08e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.00e-05

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

Saving results to:
/scratch/kocevski/312938/likelihoodResults_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.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) = 7167.39817859
delta logL = 0.376941938866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7167.38427245
delta logL = 0.390848074695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6767       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9082       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80422       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.

 FCN=   7167.384     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6762        2.6680        .52661E-02    .95040E-04
   2  alpha         1.9081        .43782        .40479       -.37671E-04
   3  Normalizat    1.0822        .19143        .67120E-01    .14625E-04
   4  Prefactor     .80422        .12537        .43772E-01    .11873E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.6762
  alpha      = 1.90809
  Normalizat = 1.0822
  Prefactor  = 0.80422
 **********
 **   18 **HESSE 
 **********

 FCN=   7167.384     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6762        3.0534        .11362E-03   -1.5324    
   2  alpha         1.9081        .60016        .14919E-01   -.23903    
   3  Normalizat    1.0822        .22406        .29694E-03   -.90325    
   4  Prefactor     .80422        .14653        .22104E-03   -.99573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47553e-09
Minuit parameter uncertainties:
  1  3.05356
  2  0.606438
  3  0.224257
  4  0.146598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312938': 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) = 7167.38427243
delta logL = 0.390848096311

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.676e+00  3.054e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  1.908e+00  6.064e-01  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:  8.042e-01  1.466e-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:  1.082e+00  2.243e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.73
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 1.91 +/- 0.61
Photon Flux (Free Index): 3.62e-08 +/- 3.27e-08
Energy Flux (Free Index): 1.77e-05 +/- 1.43e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/312938/cmap_HighResolution_505785601_506044801_4FGL_J2229.7-0832_daily_bin1028.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-05', comment='SUCCESS', photon_flux='5.08e-08', energy_flux2='1.77e-05', photon_flux_error='3.78e-08', dlogl='3.91e-01', energy_flux='1.34e-05', photon_flux2='3.62e-08', job_status='DONE', time_completed='2021-09-28 12:15:21.513759', photon_index_error2='0.61', photon_index2='1.91', ts='2.95', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.33e-07', energy_flux_error2='1.43e-05', EG='1.06', time_epoch_completed='1632856521.51', return_code='0', job_id='312938', GAL2='0.80', EG2='1.08', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='3.27e-08', ts2='3.73', photon_index='2.47' WHERE bin_id='1028' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:15:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 312938: <4FGL_J2229.7-0832_daily_bin1028> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1028> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 12:00:56 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:00:57 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:00:57 2021
Terminated at Tue Sep 28 12:15:22 2021
Results reported at Tue Sep 28 12:15:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1028 337.426 -8.5447 505785601 506044801 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            866 sec.

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

