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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin547
RA = 337.426, Dec = -8.5447
tmin = 381110401, tmax = 381369601
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='311086', job_status='RUN', time_executed='2021-09-28 11:55:36.108721', time_epoch_executed='1632855336.11' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='547'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/311086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/311086/ft1_4FGL_J2229.7-0832_daily_bin547.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/311086/ft2_4FGL_J2229.7-0832_daily_bin547.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/311086/ft1_4FGL_J2229.7-0832_daily_bin547.fits outfile=/scratch/kocevski/311086/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin547.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=381110401.0 tmax=381369601.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.69
user 4.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/311086/ft2_4FGL_J2229.7-0832_daily_bin547.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/311086/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin547.fits evtable="EVENTS" outfile="/scratch/kocevski/311086/ft1_filtered_4FGL_J2229.7-0832_daily_bin547.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/311086/ft1_filtered_4FGL_J2229.7-0832_daily_bin547.fits" evtable="EVENTS" scfile=/scratch/kocevski/311086/ft2_4FGL_J2229.7-0832_daily_bin547.fits sctable="SC_DATA" outfile=/scratch/kocevski/311086/ltcube_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.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/311086/ft2_4FGL_J2229.7-0832_daily_bin547.fits
.....................!
real 11.96
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/311086/ft1_filtered_4FGL_J2229.7-0832_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/311086/ft2_4FGL_J2229.7-0832_daily_bin547.fits sctable="SC_DATA" expcube=/scratch/kocevski/311086/ltcube_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.fits outfile=/scratch/kocevski/311086/expmap_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.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/311086/ltcube_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.fits
.....................!
real 190.61
user 184.85
sys 4.74

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/311086/ft1_filtered_4FGL_J2229.7-0832_daily_bin547.fits scfile=/scratch/kocevski/311086/ft2_4FGL_J2229.7-0832_daily_bin547.fits outfile=/scratch/kocevski/311086/cmap_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.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/311086/ft1_filtered_4FGL_J2229.7-0832_daily_bin547.fits scfile=/scratch/kocevski/311086/ft2_4FGL_J2229.7-0832_daily_bin547.fits outfile=/scratch/kocevski/311086/cmap_HighResolution_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/311086/ft1_filtered_4FGL_J2229.7-0832_daily_bin547.fits evtable="EVENTS" scfile=/scratch/kocevski/311086/ft2_4FGL_J2229.7-0832_daily_bin547.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/311086/Model_4FGL_J2229.7-0832_daily_bin547.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/311086/ft1_filtered_4FGL_J2229.7-0832_daily_bin547.fits.....................!
real 44.76
user 43.47
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14484E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3660       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12440E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10655E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16314E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9073       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.016       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2944       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .76924       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2070       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=   4393.620     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2885 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.8251       -.60665E-07** at limit **
   2  Prefactor     .10000E-03    3.3695       -.81581E-07** at limit **
   3  Prefactor     .10000E-03    9.1906       -.12215E-06** at limit **
   4  Prefactor     .10027E-03    16.537        .21797E-05** at limit **
   5  Prefactor     2.3549        35.922        .25839E-06    .12564E-04
   6  Prefactor     .10000E-03    75.612       -.15746E-05** at limit **
   7  Prefactor     .10000E-03    20.823        .17890E-05** at limit **
   8  Prefactor     .10000E-03    6.0650       -.16556E-06** at limit **
   9  Prefactor     28.641        102.12        .19967E-05    .78928E-04
  10  Prefactor     .10003E-03    3.0520       -.94085E-06** at limit **
  11  Prefactor     .10000E-03    45.611        .47619E-06** at limit **
  12  norm          5.9064        5.5010        .46197E-06   -.18056E-03
  13  Prefactor     .10000E-03    35.261       -.25056E-06** at limit **
  14  norm          .10000E-03    .53483        .34831E-06** at limit **
  15  Prefactor     .10000E-03    31.360        .51804E-05** at limit **
  16  norm          .10000E-03    .59978        .20319E-05** at limit **
  17  Prefactor     17.047        30.002       -.92103E-05   -.49661E-03
  18  Prefactor     .10000E-03    4.8589        .14220E-06** at limit **
  19  Prefactor     3.2989        17.619        .52989E-06   -.12343E-03
  20  norm          .10000E-03    8.0999       -.28921E-06** at limit **
  21  Normalizat    .76899        .25676       -.30245E-05   -.25161E-03
  22  Prefactor     1.2071        .16926        .15292E-05   -.69060E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100269
  Prefactor  = 2.3549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.6414
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 5.90642
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 17.047
  Prefactor  = 0.0001
  Prefactor  = 3.29888
  norm       = 0.0001
  Normalizat = 0.768989
  Prefactor  = 1.20714
 **********
 **   18 **HESSE 
 **********

 FCN=   4393.620     FROM HESSE     STATUS=OK           336 CALLS     3221 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.8322        .15625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.3873        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.2335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10027E-03    73.415        .51538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3549        35.809        .26640E-03   -1.5401    
   6  Prefactor     .10000E-03    78.364        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.1030        .15935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.641        101.13        .75062E-04   -1.4637    
  10  Prefactor     .10003E-03    12.027        .21755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    45.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9064        5.4516        .13564E-03   -1.5222    
  13  Prefactor     .10000E-03    35.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .99488        .93619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    32.144        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .73967        .95778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.047        33.225        .97094E-04   -1.4882    
  18  Prefactor     .10000E-03    4.8652        .14271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2989        17.518        .22307E-03   -1.5345    
  20  norm          .10000E-03    8.1247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .76899        .29507        .32603E-03   -1.0123    
  22  Prefactor     1.2071        .19534        .18222E-03   -.86112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42805e-09
Minuit parameter uncertainties:
  1  1.80062e-06
  2  2.29668e-06
  3  2.96212e-05
  4  0.00890141
  5  18.3788
  6  0.000268335
  7  0.000134665
  8  2.4254e-05
  9  101.74
  10  0.00128788
  11  0.000288273
  12  5.45207
  13  5.79872e-05
  14  4.37714e-05
  15  0.000324249
  16  2.65884e-05
  17  33.261
  18  2.6636e-06
  19  15.2105
  20  1.51558e-05
  21  0.295682
  22  0.195461
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.906e+00  5.452e+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:  1.207e+00  1.955e-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:  7.690e-01  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 7.25e-08 +/- 6.69e-08
Energy Flux (Fixed Index): 1.91e-05 +/- 1.77e-05

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

Saving results to:
/scratch/kocevski/311086/likelihoodResults_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.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) = 4391.93196644
delta logL = 1.68809252069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4391.92816549
delta logL = 1.69189346294

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7913       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2842       1.0000          .0000       5.0000    
     3 'Normalizat'    .62999       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2719       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=   4391.928     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      241 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7931        46.753        .51829E-02    .18091E-03
   2  alpha         4.2837        2.5259        .46528        .13560E-05
   3  Normalizat    .62999        .13702        .80580E-01    .22163E-04
   4  Prefactor     1.2719        .93370E-01    .33119E-01   -.53098E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.79315
  alpha      = 4.28366
  Normalizat = 0.629987
  Prefactor  = 1.2719
 **********
 **   18 **HESSE 
 **********

 FCN=   4391.928     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7931        5.7074        .65764E-04   -1.5318    
   2  alpha         4.2837        1.3812        .23042E-01    .79443    
   3  Normalizat    .62999        .29263        .35683E-03   -1.0673    
   4  Prefactor     1.2719        .19702        .17797E-03   -.84146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.96872e-11
Minuit parameter uncertainties:
  1  5.70825
  2  1.59118
  3  0.293352
  4  0.197135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/311086': 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) = 4391.92816541
delta logL = 1.69189354896

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.793e+00  5.708e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  4.284e+00  1.591e+00  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.272e+00  1.971e-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:  6.300e-01  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.49
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 4.28 +/- 1.59
Photon Flux (Free Index): 1.80e-07 +/- 9.99e-08
Energy Flux (Free Index): 2.61e-05 +/- 1.55e-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/311086/cmap_HighResolution_381110401_381369601_4FGL_J2229.7-0832_daily_bin547.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.46e-05', comment='SUCCESS', photon_flux='7.25e-08', energy_flux2='2.61e-05', photon_flux_error='6.69e-08', dlogl='1.69e+00', energy_flux='1.91e-05', photon_flux2='1.80e-07', job_status='DONE', time_completed='2021-09-28 12:04:40.380050', photon_index_error2='1.59', photon_index2='4.28', ts='1.67', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='2.07e-07', energy_flux_error2='1.55e-05', EG='0.77', time_epoch_completed='1632855880.38', return_code='0', job_id='311086', GAL2='1.27', EG2='0.63', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='9.99e-08', ts2='5.49', photon_index='2.47' WHERE bin_id='547' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:04:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 311086: <4FGL_J2229.7-0832_daily_bin547> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin547> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 11:55:21 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:55:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:55:23 2021
Terminated at Tue Sep 28 12:04:41 2021
Results reported at Tue Sep 28 12:04:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin547 337.426 -8.5447 381110401 381369601 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 :                                   543.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            560 sec.

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

