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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1627
RA = 337.426, Dec = -8.5447
tmin = 661046401, tmax = 661305601
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='250981', job_status='RUN', time_executed='2021-12-16 00:39:13.004553', time_epoch_executed='1639643953.0' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/250981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/250981/ft1_4FGL_J2229.7-0832_daily_bin1627.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/250981/ft2_4FGL_J2229.7-0832_daily_bin1627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/250981/ft1_4FGL_J2229.7-0832_daily_bin1627.fits outfile=/scratch/kocevski/250981/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1627.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=661046401.0 tmax=661305601.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.56
user 3.35
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/250981/ft1_filtered_4FGL_J2229.7-0832_daily_bin1627.fits" evtable="EVENTS" scfile=/scratch/kocevski/250981/ft2_4FGL_J2229.7-0832_daily_bin1627.fits sctable="SC_DATA" outfile=/scratch/kocevski/250981/ltcube_661046401_661305601_4FGL_J2229.7-0832_daily_bin1627.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/250981/ft2_4FGL_J2229.7-0832_daily_bin1627.fits
.....................!
real 13.04
user 12.59
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/250981/ft1_filtered_4FGL_J2229.7-0832_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250981/ft2_4FGL_J2229.7-0832_daily_bin1627.fits sctable="SC_DATA" expcube=/scratch/kocevski/250981/ltcube_661046401_661305601_4FGL_J2229.7-0832_daily_bin1627.fits outfile=/scratch/kocevski/250981/expmap_661046401_661305601_4FGL_J2229.7-0832_daily_bin1627.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/250981/ltcube_661046401_661305601_4FGL_J2229.7-0832_daily_bin1627.fits
.....................!
real 191.30
user 184.61
sys 6.24

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/250981/ft1_filtered_4FGL_J2229.7-0832_daily_bin1627.fits scfile=/scratch/kocevski/250981/ft2_4FGL_J2229.7-0832_daily_bin1627.fits outfile=/scratch/kocevski/250981/cmap_661046401_661305601_4FGL_J2229.7-0832_daily_bin1627.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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/250981/ft1_filtered_4FGL_J2229.7-0832_daily_bin1627.fits scfile=/scratch/kocevski/250981/ft2_4FGL_J2229.7-0832_daily_bin1627.fits outfile=/scratch/kocevski/250981/cmap_HighResolution_661046401_661305601_4FGL_J2229.7-0832_daily_bin1627.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/250981/ft1_filtered_4FGL_J2229.7-0832_daily_bin1627.fits evtable="EVENTS" scfile=/scratch/kocevski/250981/ft2_4FGL_J2229.7-0832_daily_bin1627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/250981/Model_4FGL_J2229.7-0832_daily_bin1627.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/250981/ft1_filtered_4FGL_J2229.7-0832_daily_bin1627.fits.....................!
real 59.28
user 57.83
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16799E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4621       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.460       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.905       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    109.64       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1558       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    8.3311       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .27744E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .27648       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.584       1.0000         .10000E-03   10000.    
    16 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.452       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0538       1.0000         .10000E-03   10000.    
    20 'norm      '    19.024       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .89595       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94593       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=   6130.075     FROM MIGRAD    STATUS=CONVERGED    473 CALLS     2440 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.5199        .44435E-07** at limit **
   2  Prefactor     .10043E-03    6.9221        .24653E-05** at limit **
   3  Prefactor     3.4632        12.075        .12838E-04   -.79572E-04
   4  Prefactor     25.459        24.153        .47937E-06   -.19439E-03
   5  Prefactor     20.902        16.488       -.99166E-06   -.61104E-04
   6  Prefactor     .10000E-03    25.754       -.37462E-06** at limit **
   7  Prefactor     109.63        23.785        .21355E-06   -.44855E-03
   8  Prefactor     14.433        15.136        .21594E-06   -.19546E-04
   9  Prefactor     .10000E-03    45.773        .35505E-06** at limit **
  10  Prefactor     5.1532        4.9151       -.30893E-06    .10460E-03
  11  Prefactor     .10000E-03    15.933        .65553E-07** at limit **
  12  norm          8.3265        4.5491       -.42113E-06   -.80100E-04
  13  Prefactor     .10022E-03    421.67       -.22812E-04** at limit **
  14  norm          .27648        .40803        .38568E-07    .17357E-03
  15  Prefactor     10.554        20.437       -.48065E-06   -.27703E-03
  16  norm          .10000E-03    .71174        .33561E-06** at limit **
  17  Prefactor     33.434        49.470        .93758E-07   -.18912E-03
  18  Prefactor     .10000E-03    6.8535       -.30290E-07** at limit **
  19  Prefactor     4.0535        10.674        .74465E-06   -.44376E-04
  20  norm          19.025        14.137        .31991E-06   -.15475E-04
  21  Normalizat    .89592        .22812       -.71906E-06   -.35859E-03
  22  Prefactor     .94592        .14043       -.18022E-05   -.32825E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100434
  Prefactor  = 3.4632
  Prefactor  = 25.4588
  Prefactor  = 20.9021
  Prefactor  = 0.0001
  Prefactor  = 109.633
  Prefactor  = 14.4331
  Prefactor  = 0.0001
  Prefactor  = 5.15319
  Prefactor  = 0.0001
  norm       = 8.32646
  Prefactor  = 0.000100215
  norm       = 0.276476
  Prefactor  = 10.5537
  norm       = 0.0001
  Prefactor  = 33.4339
  Prefactor  = 0.0001
  Prefactor  = 4.05353
  norm       = 19.025
  Normalizat = 0.895917
  Prefactor  = 0.945916
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.075     FROM HESSE     STATUS=OK           348 CALLS     2788 TOTAL
                     EDM=   .95E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.5433        .17965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10043E-03    47.408        .37962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4632        12.071        .10867E-02   -1.5336    
   4  Prefactor     25.459        23.975        .79390E-04   -1.4698    
   5  Prefactor     20.902        16.479        .87603E-04   -1.4793    
   6  Prefactor     .10000E-03    25.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     109.63        23.802        .38412E-04   -1.3610    
   8  Prefactor     14.433        15.083        .10542E-03   -1.4948    
   9  Prefactor     .10000E-03    45.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.1532        4.8894        .15297E-03   -1.5254    
  11  Prefactor     .10000E-03    15.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          8.3265        4.5394        .11667E-03   -1.5131    
  13  Prefactor     .10022E-03    436.20        .19912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .27648        .36030        .59123E-03   -1.5603    
  15  Prefactor     10.554        19.278        .12316E-03   -1.5058    
  16  norm          .10000E-03    .90120        .11279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.434        49.462        .69283E-04   -1.4551    
  18  Prefactor     .10000E-03    6.8906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.0535        10.648        .20027E-03   -1.5305    
  20  norm          19.025        14.139        .91828E-04   -1.4835    
  21  Normalizat    .89592        .26553        .32909E-03   -.96604    
  22  Prefactor     .94592        .16415        .20930E-03   -.94555    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.45065e-09
Minuit parameter uncertainties:
  1  8.02665e-07
  2  0.00907497
  3  12.0795
  4  23.9841
  5  16.483
  6  0.000121762
  7  23.8041
  8  15.0873
  9  0.000262518
  10  4.88975
  11  2.19405e-05
  12  4.53957
  13  0.0195164
  14  0.3603
  15  19.2896
  16  9.42075e-06
  17  49.523
  18  1.35992e-05
  19  10.6527
  20  14.1414
  21  0.265914
  22  0.164235
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  8.326e+00  4.540e+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:  9.459e-01  1.642e-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.959e-01  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.72
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 5.57e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.47e-05

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) = 6129.71479983
delta logL = 0.360283039793

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6129.6655023
delta logL = 0.409580567775

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7701       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9182       1.0000          .0000       5.0000    
     3 'Normalizat'    .93493       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92979       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=   6129.666     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.7659        3.8762        .38552E-02    .10162E-03
   2  alpha         1.9174        .41579        .34212       -.32227E-04
   3  Normalizat    .93499        .21107        .73012E-01    .15835E-04
   4  Prefactor     .92977        .13791        .45384E-01    .24791E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 6.76591
  alpha      = 1.91743
  Normalizat = 0.934994
  Prefactor  = 0.929772
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.666     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.7659        4.7478        .11116E-03   -1.5188    
   2  alpha         1.9174        .59270        .12960E-01   -.23519    
   3  Normalizat    .93499        .24684        .32307E-03   -.95241    
   4  Prefactor     .92977        .16080        .21094E-03   -.95108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97846e-12
Minuit parameter uncertainties:
  1  4.74805
  2  0.598737
  3  0.247144
  4  0.160882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/250981': 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) = 6129.66550143
delta logL = 0.409581441059

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  6.766e+00  4.748e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  1.917e+00  5.987e-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:  9.298e-01  1.609e-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:  9.350e-01  2.471e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.53
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 1.92 +/- 0.60
Photon Flux (Free Index): 6.68e-08 +/- 5.26e-08
Energy Flux (Free Index): 3.21e-05 +/- 2.12e-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/250981/cmap_HighResolution_661046401_661305601_4FGL_J2229.7-0832_daily_bin1627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.21e-05', photon_flux_error='5.57e-08', dlogl='4.10e-01', energy_flux='2.70e-05', photon_flux2='6.68e-08', job_status='DONE', time_completed='2021-12-16 00:48:23.816486', photon_index_error2='0.60', photon_index2='1.92', ts='8.72', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.12e-05', EG='0.90', time_epoch_completed='1639644503.82', return_code='0', job_id='250981', GAL2='0.93', EG2='0.93', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='5.26e-08', ts2='9.53', photon_index='2.47' WHERE bin_id='1627' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 16 00:48:23 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 250981: <4FGL_J2229.7-0832_daily_bin1627> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Dec 16 00:35:44 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 16 00:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 16 00:35:46 2021
Terminated at Thu Dec 16 00:48:24 2021
Results reported at Thu Dec 16 00:48:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1627 337.426 -8.5447 661046401 661305601 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 :                                   553.00 sec.
    Max Memory :                                 1176 MB
    Average Memory :                             279.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            760 sec.

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

