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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1089
RA = 337.426, Dec = -8.5447
tmin = 521596801, tmax = 521856001
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='313032', job_status='RUN', time_executed='2021-09-28 12:04:12.514919', time_epoch_executed='1632855852.51' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/313032

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/313032/ft1_4FGL_J2229.7-0832_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/313032/ft2_4FGL_J2229.7-0832_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/313032/ft1_4FGL_J2229.7-0832_daily_bin1089.fits outfile=/scratch/kocevski/313032/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1089.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=521596801.0 tmax=521856001.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.34
user 4.09
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/313032/ft1_filtered_4FGL_J2229.7-0832_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/313032/ft2_4FGL_J2229.7-0832_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/313032/ltcube_521596801_521856001_4FGL_J2229.7-0832_daily_bin1089.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/313032/ft2_4FGL_J2229.7-0832_daily_bin1089.fits
.....................!
real 12.23
user 11.84
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/313032/ft1_filtered_4FGL_J2229.7-0832_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/313032/ft2_4FGL_J2229.7-0832_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/313032/ltcube_521596801_521856001_4FGL_J2229.7-0832_daily_bin1089.fits outfile=/scratch/kocevski/313032/expmap_521596801_521856001_4FGL_J2229.7-0832_daily_bin1089.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/313032/ltcube_521596801_521856001_4FGL_J2229.7-0832_daily_bin1089.fits
.....................!
real 190.53
user 184.80
sys 5.29

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/313032/ft1_filtered_4FGL_J2229.7-0832_daily_bin1089.fits scfile=/scratch/kocevski/313032/ft2_4FGL_J2229.7-0832_daily_bin1089.fits outfile=/scratch/kocevski/313032/cmap_521596801_521856001_4FGL_J2229.7-0832_daily_bin1089.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/313032/ft1_filtered_4FGL_J2229.7-0832_daily_bin1089.fits scfile=/scratch/kocevski/313032/ft2_4FGL_J2229.7-0832_daily_bin1089.fits outfile=/scratch/kocevski/313032/cmap_HighResolution_521596801_521856001_4FGL_J2229.7-0832_daily_bin1089.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4865       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.017       1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.782       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.707       1.0000         .10000E-03   10000.    
     9 'Prefactor '    192.06       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.968       1.0000         .10000E-03   10000.    
    13 'Prefactor '    123.91       1.0000         .10000E-03   10000.    
    14 'norm      '    .31076       1.0000         .10000E-03   10000.    
    15 'Prefactor '    66.741       1.0000         .10000E-03   10000.    
    16 'norm      '    6.5125       1.0000         .10000E-03   10000.    
    17 'Prefactor '    67.041       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    27.911       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .79113       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94567       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7675.772     FROM MIGRAD    STATUS=CONVERGED     79 CALLS     2047 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.4868        1.0153       -.30660E-07    .52315E-04
   2  Prefactor     .10000E-03    1.3938        .18997E-06** at limit **
   3  Prefactor     .10000E-03    2.5979        .28998E-06** at limit **
   4  Prefactor     35.355        5.7116        .13912E-05   -.37538E-02
   5  Prefactor     15.017        3.0035       -.86492E-06   -.86568E-03
   6  Prefactor     11.879        1.8410       -.35194E-06   -.11237E-02
   7  Prefactor     22.780        9.0806        .24776E-05    .18213E-02
   8  Prefactor     26.706        5.6590       -.12323E-05   -.39366E-02
   9  Prefactor     192.06        1.1192        .38255E-07   -.10465E-02
  10  Prefactor     .10000E-03    1.1974        .39378E-06** at limit **
  11  Prefactor     .10000E-03    11.793        .18007E-06** at limit **
  12  norm          10.968        5.1031       -.38490E-05   -.17154E-02
  13  Prefactor     123.91        1.1790       -.81875E-07    .84033E-03
  14  norm          .31035        .71955       -.15568E-06    .68460E-04
  15  Prefactor     66.588        43.013       -.19438E-05    .32003E-02
  16  norm          6.5259        3.9448        .46880E-06   -.19910E-03
  17  Prefactor     66.995        13.142        .43176E-06   -.96904E-02
  18  Prefactor     .10000E-03    8.1386        .33148E-06** at limit **
  19  Prefactor     .10000E-03    9.3317        .62339E-06** at limit **
  20  norm          27.908        3.1718        .90058E-06   -.15223E-02
  21  Normalizat    .79162        .24371        .22208E-05   -.19066E-05
  22  Prefactor     .94542        .15376       -.97874E-06   -.43443E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.48681
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.3548
  Prefactor  = 15.0175
  Prefactor  = 11.879
  Prefactor  = 22.7795
  Prefactor  = 26.7055
  Prefactor  = 192.061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9677
  Prefactor  = 123.91
  norm       = 0.310352
  Prefactor  = 66.588
  norm       = 6.52591
  Prefactor  = 66.9953
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.908
  Normalizat = 0.791623
  Prefactor  = 0.945423
 **********
 **   18 **HESSE 
 **********

 FCN=   7675.772     FROM HESSE     STATUS=OK           394 CALLS     2441 TOTAL
                     EDM=   .73E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.4868        7.2314        .42885E-02   -1.5239    
   2  Prefactor     .10000E-03    1.3892        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.5955        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     35.355        19.600        .16848E-02   -1.4518    
   5  Prefactor     15.017        14.051        .25839E-02   -1.4933    
   6  Prefactor     11.879        14.250        .29056E-02   -1.5019    
   7  Prefactor     22.780        12.985        .20980E-02   -1.4753    
   8  Prefactor     26.706        11.695        .19380E-02   -1.4674    
   9  Prefactor     192.06        107.74        .72861E-03   -1.2927    
  10  Prefactor     .10000E-03    1.1922        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.791        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.968        5.5063        .30243E-02   -1.5045    
  13  Prefactor     123.91        93.238        .90397E-03   -1.3477    
  14  norm          .31035        .73652        .10472E-01   -1.5597    
  15  Prefactor     66.588        50.585        .12282E-02   -1.4074    
  16  norm          6.5259        3.8010        .39315E-02   -1.5197    
  17  Prefactor     66.995        60.385        .12255E-02   -1.4069    
  18  Prefactor     .10000E-03    8.1080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.2373        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          27.908        14.617        .18958E-02   -1.4651    
  21  Normalizat    .79162        .21499        .80106E-01   -1.0038    
  22  Prefactor     .94542        .13301        .45584E-01   -.94571    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.25441e-07
Minuit parameter uncertainties:
  1  7.2325
  2  3.49419e-06
  3  1.48787e-05
  4  19.6034
  5  14.0542
  6  14.2545
  7  12.9867
  8  11.6963
  9  107.855
  10  7.95977e-06
  11  1.2639e-05
  12  5.50651
  13  93.3484
  14  0.736543
  15  50.6176
  16  3.8011
  17  60.4405
  18  9.72896e-06
  19  1.09101e-05
  20  14.6193
  21  0.215222
  22  0.133058
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.097e+01  5.507e+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.454e-01  1.331e-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.916e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.11
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 6.75e-08
Energy Flux (Fixed Index): 3.56e-05 +/- 1.78e-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) = 7672.93355495
delta logL = 2.83887685586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7672.92497341
delta logL = 2.84745839696

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6333       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.2808       1.0000          .0000       5.0000    
     3 'Normalizat'    .62377       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0314       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=   7672.925     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6378        27.379        .42313E-02    .46670E-03
   2  alpha         4.2801        4.4251        .38769        .15454E-04
   3  Normalizat    .62366        .11705        .88884E-01    .78282E-04
   4  Prefactor     1.0315        .77840E-01    .41146E-01   -.69077E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.63781
  alpha      = 4.28008
  Normalizat = 0.623665
  Prefactor  = 1.03154
 **********
 **   18 **HESSE 
 **********

 FCN=   7672.925     FROM HESSE     STATUS=OK            31 CALLS      276 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6378        5.4562        .65720E-04   -1.5233    
   2  alpha         4.2801        .98246        .18692E-01    .79239    
   3  Normalizat    .62366        .23648        .39376E-03   -1.0699    
   4  Prefactor     1.0315        .15476        .20763E-03   -.91685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53553e-11
Minuit parameter uncertainties:
  1  5.4567
  2  1.04271
  3  0.236863
  4  0.154822
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/313032': 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) = 7672.92497269
delta logL = 2.84745911574

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.638e+00  5.457e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  4.280e+00  1.043e+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.032e+00  1.548e-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.237e-01  2.369e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.92
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 4.28 +/- 1.04
Photon Flux (Free Index): 2.67e-07 +/- 9.13e-08
Energy Flux (Free Index): 3.87e-05 +/- 1.42e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/313032/cmap_HighResolution_521596801_521856001_4FGL_J2229.7-0832_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='3.87e-05', photon_flux_error='6.75e-08', dlogl='2.85e+00', energy_flux='3.56e-05', photon_flux2='2.67e-07', job_status='DONE', time_completed='2021-09-28 12:14:11.953431', photon_index_error2='1.04', photon_index2='4.28', ts='7.11', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='0.79', time_epoch_completed='1632856451.95', return_code='0', job_id='313032', GAL2='1.03', EG2='0.62', return_code2='0', energy_flux_error='1.78e-05', photon_flux_error2='9.13e-08', ts2='13.92', photon_index='2.47' WHERE bin_id='1089' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:14:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 313032: <4FGL_J2229.7-0832_daily_bin1089> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1089> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 12:01:04 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:01:06 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:01:06 2021
Terminated at Tue Sep 28 12:14:12 2021
Results reported at Tue Sep 28 12:14:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1089 337.426 -8.5447 521596801 521856001 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 :                                   596.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

