/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 149 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 = 7470
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2229.7-0832_daily_bin133
RA = 337.426, Dec = -8.5447
tmin = 273801601, tmax = 274060801
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='309471', job_status='RUN', time_executed='2021-09-28 11:53:14.255527', time_epoch_executed='1632855194.26' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/309471

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/309471/ft1_4FGL_J2229.7-0832_daily_bin133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/309471/ft2_4FGL_J2229.7-0832_daily_bin133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/309471/ft1_4FGL_J2229.7-0832_daily_bin133.fits outfile=/scratch/kocevski/309471/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin133.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=273801601.0 tmax=274060801.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.61
user 3.38
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/309471/ft2_4FGL_J2229.7-0832_daily_bin133.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/309471/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin133.fits evtable="EVENTS" outfile="/scratch/kocevski/309471/ft1_filtered_4FGL_J2229.7-0832_daily_bin133.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/309471/ft1_filtered_4FGL_J2229.7-0832_daily_bin133.fits" evtable="EVENTS" scfile=/scratch/kocevski/309471/ft2_4FGL_J2229.7-0832_daily_bin133.fits sctable="SC_DATA" outfile=/scratch/kocevski/309471/ltcube_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.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/309471/ft2_4FGL_J2229.7-0832_daily_bin133.fits
.....................!
real 14.58
user 14.22
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/309471/ft1_filtered_4FGL_J2229.7-0832_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/309471/ft2_4FGL_J2229.7-0832_daily_bin133.fits sctable="SC_DATA" expcube=/scratch/kocevski/309471/ltcube_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.fits outfile=/scratch/kocevski/309471/expmap_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.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/309471/ltcube_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.fits
.....................!
real 192.06
user 186.91
sys 4.75

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/309471/ft1_filtered_4FGL_J2229.7-0832_daily_bin133.fits scfile=/scratch/kocevski/309471/ft2_4FGL_J2229.7-0832_daily_bin133.fits outfile=/scratch/kocevski/309471/cmap_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/309471/ft1_filtered_4FGL_J2229.7-0832_daily_bin133.fits scfile=/scratch/kocevski/309471/ft2_4FGL_J2229.7-0832_daily_bin133.fits outfile=/scratch/kocevski/309471/cmap_HighResolution_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/309471/ft1_filtered_4FGL_J2229.7-0832_daily_bin133.fits evtable="EVENTS" scfile=/scratch/kocevski/309471/ft2_4FGL_J2229.7-0832_daily_bin133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/309471/Model_4FGL_J2229.7-0832_daily_bin133.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/309471/ft1_filtered_4FGL_J2229.7-0832_daily_bin133.fits....................!
real 54.94
user 53.52
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.8723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.870       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.237       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0326       1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.811       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1718       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.7538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.794       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1080       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7147       1.0000         .10000E-03   10000.    
    20 'norm      '    .10256E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .81211       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=   5698.588     FROM MIGRAD    STATUS=CONVERGED    491 CALLS     2349 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.9329       -.70053E-09** at limit **
   2  Prefactor     3.8736        1.1378       -.26657E-06   -.26290E-03
   3  Prefactor     .10000E-03    13.698       -.52658E-09** at limit **
   4  Prefactor     14.872        13.490        .27074E-07   -.29319E-03
   5  Prefactor     .10000E-03    8.9526        .88073E-09** at limit **
   6  Prefactor     26.235        18.731       -.11236E-07   -.27511E-04
   7  Prefactor     .10000E-03    3.9433        .30509E-09** at limit **
   8  Prefactor     .10000E-03    5.4743       -.11930E-08** at limit **
   9  Prefactor     .10000E-03    72.800        .20141E-08** at limit **
  10  Prefactor     3.0323        5.1569       -.22969E-07   -.11450E-03
  11  Prefactor     53.813        55.618        .68385E-07   -.67018E-03
  12  norm          3.1706        4.3199       -.12818E-07   -.18339E-03
  13  Prefactor     .10000E-03    118.19        .11368E-08** at limit **
  14  norm          1.7540        .93819       -.27287E-08   -.24279E-04
  15  Prefactor     .10000E-03    9.7932        .17703E-08** at limit **
  16  norm          .10000E-03    .44285       -.33154E-09** at limit **
  17  Prefactor     29.793        29.688       -.15202E-07   -.20407E-04
  18  Prefactor     3.1077        14.493       -.45420E-07    .70127E-05
  19  Prefactor     3.7154        10.557       -.30400E-07    .60410E-04
  20  norm          .10000E-03    23.745       -.28048E-08** at limit **
  21  Normalizat    1.0540        .20648        .69287E-07   -.18175E-03
  22  Prefactor     .81211        .12967        .26814E-07   -.25732E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 3.87359
  Prefactor  = 0.0001
  Prefactor  = 14.8715
  Prefactor  = 0.0001
  Prefactor  = 26.2345
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.03233
  Prefactor  = 53.8126
  norm       = 3.1706
  Prefactor  = 0.0001
  norm       = 1.75396
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.793
  Prefactor  = 3.10768
  Prefactor  = 3.71544
  norm       = 0.0001
  Normalizat = 1.05397
  Prefactor  = 0.812112
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.588     FROM HESSE     STATUS=OK           338 CALLS     2687 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9356        .12626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.8736        6.8072        .10253E-02   -1.5314    
   3  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.872        13.522        .10386E-03   -1.4937    
   5  Prefactor     .10000E-03    8.9796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.235        18.745        .78209E-04   -1.4683    
   7  Prefactor     .10000E-03    3.9540        .14639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.4933        .17237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    72.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0323        5.1465        .20545E-03   -1.5360    
  11  Prefactor     53.813        55.675        .54678E-04   -1.4240    
  12  norm          3.1706        4.3133        .16824E-03   -1.5352    
  13  Prefactor     .10000E-03    118.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.7540        .93436        .51143E-04   -1.5443    
  15  Prefactor     .10000E-03    9.8100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .44617        .97049E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     29.793        29.546        .73402E-04   -1.4616    
  18  Prefactor     3.1077        14.492        .23001E-03   -1.5355    
  19  Prefactor     3.7154        10.552        .20952E-03   -1.5322    
  20  norm          .10000E-03    24.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0540        .25073        .27215E-03   -.91244    
  22  Prefactor     .81211        .15586        .19921E-03   -.99283    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76658e-09
Minuit parameter uncertainties:
  1  1.45876e-05
  2  6.80856
  3  4.14726e-05
  4  13.5252
  5  2.61382e-05
  6  18.7495
  7  4.21366e-06
  8  7.14748e-06
  9  0.000132768
  10  5.14725
  11  55.7287
  12  4.31374
  13  9.35355e-05
  14  0.934364
  15  3.41656e-05
  16  2.88576e-07
  17  29.5605
  18  13.427
  19  10.5577
  20  0.000118184
  21  0.25101
  22  0.155943
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.171e+00  4.314e+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.121e-01  1.559e-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.054e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/309471/likelihoodResults_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.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) = 5698.04211641
delta logL = 0.546207997665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5698.03864418
delta logL = 0.549680228281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1551       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6217       1.0000          .0000       5.0000    
     3 'Normalizat'    .99785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83592       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=   5698.039     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      196 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1563        78.991        .57048E-02    .45799E-03
   2  alpha         3.6213        3.0464        .48240        .20201E-04
   3  Normalizat    .99768        .90243E-01    .46140E-01    .14031E-04
   4  Prefactor     .83600        .62093E-01    .44183E-01    .73438E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.15627
  alpha      = 3.62134
  Normalizat = 0.997681
  Prefactor  = 0.835997
 **********
 **   18 **HESSE 
 **********

 FCN=   5698.039     FROM HESSE     STATUS=OK            31 CALLS      227 TOTAL
                     EDM=   .68E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1563        3.6904        .10499E-03   -1.5353    
   2  alpha         3.6213        1.1415        .27828E-02    .46513    
   3  Normalizat    .99768        .24394        .27847E-03   -.93108    
   4  Prefactor     .83600        .15553        .19654E-03   -.98415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.78563e-15
Minuit parameter uncertainties:
  1  3.69066
  2  1.19814
  3  0.244213
  4  0.155611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/309471': 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) = 5698.03864384
delta logL = 0.549680570288

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  3.156e+00  3.691e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  3.621e+00  1.198e+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:  8.360e-01  1.556e-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.977e-01  2.442e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.85
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 3.62 +/- 1.20
Photon Flux (Free Index): 8.54e-08 +/- 7.37e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.19e-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/309471/cmap_HighResolution_273801601_274060801_4FGL_J2229.7-0832_daily_bin133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.91e-05', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='5.50e-01', photon_flux2='8.54e-08', job_status='DONE', time_completed='2021-09-28 12:02:44.400142', photon_index_error2='1.20', photon_index2='3.62', ts='0.67', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.19e-05', EG='1.05', time_epoch_completed='1632855764.4', return_code='0', job_id='309471', GAL2='0.84', EG2='1.00', return_code2='0', photon_flux_error2='7.37e-08', ts2='1.85', photon_index='2.47' WHERE bin_id='133' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:02:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 309471: <4FGL_J2229.7-0832_daily_bin133> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin133> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:50:28 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:50:30 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:50:30 2021
Terminated at Tue Sep 28 12:02:45 2021
Results reported at Tue Sep 28 12:02:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin133 337.426 -8.5447 273801601 274060801 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 :                                   570.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             272.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

