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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1056
RA = 337.426, Dec = -8.5447
tmin = 513043201, tmax = 513302401
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='312982', job_status='RUN', time_executed='2021-09-28 12:03:56.251344', time_epoch_executed='1632855836.25' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1056'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312982

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312982/ft1_4FGL_J2229.7-0832_daily_bin1056.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312982/ft2_4FGL_J2229.7-0832_daily_bin1056.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312982/ft1_4FGL_J2229.7-0832_daily_bin1056.fits outfile=/scratch/kocevski/312982/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1056.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=513043201.0 tmax=513302401.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 6.32
user 6.07
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312982/ft1_filtered_4FGL_J2229.7-0832_daily_bin1056.fits" evtable="EVENTS" scfile=/scratch/kocevski/312982/ft2_4FGL_J2229.7-0832_daily_bin1056.fits sctable="SC_DATA" outfile=/scratch/kocevski/312982/ltcube_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.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/312982/ft2_4FGL_J2229.7-0832_daily_bin1056.fits
.....................!
real 12.46
user 12.13
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312982/ft1_filtered_4FGL_J2229.7-0832_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/312982/ft2_4FGL_J2229.7-0832_daily_bin1056.fits sctable="SC_DATA" expcube=/scratch/kocevski/312982/ltcube_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.fits outfile=/scratch/kocevski/312982/expmap_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.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/312982/ltcube_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.fits
.....................!
real 191.02
user 185.51
sys 5.21

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/312982/ft1_filtered_4FGL_J2229.7-0832_daily_bin1056.fits scfile=/scratch/kocevski/312982/ft2_4FGL_J2229.7-0832_daily_bin1056.fits outfile=/scratch/kocevski/312982/cmap_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/312982/ft1_filtered_4FGL_J2229.7-0832_daily_bin1056.fits scfile=/scratch/kocevski/312982/ft2_4FGL_J2229.7-0832_daily_bin1056.fits outfile=/scratch/kocevski/312982/cmap_HighResolution_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/312982/ft1_filtered_4FGL_J2229.7-0832_daily_bin1056.fits evtable="EVENTS" scfile=/scratch/kocevski/312982/ft2_4FGL_J2229.7-0832_daily_bin1056.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/312982/Model_4FGL_J2229.7-0832_daily_bin1056.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/312982/ft1_filtered_4FGL_J2229.7-0832_daily_bin1056.fits.....................!
real 45.41
user 44.23
sys 1.10

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    45.891       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.690       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.522       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.419       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9210       1.0000         .10000E-03   10000.    
    13 'Prefactor '    92.508       1.0000         .10000E-03   10000.    
    14 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    12.291       1.0000         .10000E-03   10000.    
    17 'Prefactor '    37.676       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.753       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .77324       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86170       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=   4381.293     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     2326 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.9123       -.53974E-07** at limit **
   2  Prefactor     .10000E-03    8.2663       -.10149E-05** at limit **
   3  Prefactor     .10000E-03    22.406       -.32221E-04** at limit **
   4  Prefactor     45.892        24.779       -.22172E-06    .14626E-04
   5  Prefactor     .10000E-03    32.624        .16182E-04** at limit **
   6  Prefactor     38.709        26.972        .54139E-05    .10743E-04
   7  Prefactor     30.524        17.369        .30584E-05    .43876E-06
   8  Prefactor     .10000E-03    7.3915        .41108E-06** at limit **
   9  Prefactor     62.317        104.30       -.11974E-03   -.39625E-04
  10  Prefactor     .10000E-03    2.7438        .44260E-08** at limit **
  11  Prefactor     .10000E-03    20.210        .20265E-04** at limit **
  12  norm          1.9248        5.4661        .72576E-05    .85229E-04
  13  Prefactor     92.487        94.796       -.19698E-04   -.28619E-04
  14  norm          .10000E-03    .46586        .24950E-06** at limit **
  15  Prefactor     .10000E-03    95.875       -.77711E-05** at limit **
  16  norm          12.286        2.9136        .74280E-06    .34411E-03
  17  Prefactor     37.666        52.661       -.11162E-04    .58695E-04
  18  Prefactor     .10000E-03    4.0892        .79136E-07** at limit **
  19  Prefactor     .10000E-03    4.8847       -.10444E-06** at limit **
  20  norm          13.754        14.113       -.68643E-06   -.10367E-04
  21  Normalizat    .77313        .24494        .66005E-05   -.16804E-04
  22  Prefactor     .86177        .15224        .11524E-05    .96414E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.8923
  Prefactor  = 0.000100004
  Prefactor  = 38.7092
  Prefactor  = 30.5244
  Prefactor  = 0.0001
  Prefactor  = 62.3167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.92482
  Prefactor  = 92.4874
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 12.2858
  Prefactor  = 37.6662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7537
  Normalizat = 0.773133
  Prefactor  = 0.861768
 **********
 **   18 **HESSE 
 **********

 FCN=   4381.293     FROM HESSE     STATUS=OK           336 CALLS     2662 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.9149        .12787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    22.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     45.892        24.777        .59186E-04   -1.4352    
   5  Prefactor     .10000E-03    32.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     38.709        26.940        .64438E-04   -1.4463    
   7  Prefactor     30.524        17.417        .72523E-04   -1.4602    
   8  Prefactor     .10000E-03    7.4248        .17571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.317        104.18        .25395E-03   -1.4128    
  10  Prefactor     .10000E-03    2.7616        .10698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9248        5.3934        .22928E-03   -1.5430    
  13  Prefactor     92.487        94.555        .20891E-03   -1.3782    
  14  norm          .10000E-03    .48846        .88136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    96.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          12.286        2.9312        .43002E-04   -1.5007    
  17  Prefactor     37.666        53.423        .65296E-04   -1.4480    
  18  Prefactor     .10000E-03    4.0913        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8968        .14287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.754        14.122        .10800E-03   -1.4966    
  21  Normalizat    .77313        .28748        .32140E-03   -1.0107    
  22  Prefactor     .86177        .17965        .20050E-03   -.97490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82817e-10
Minuit parameter uncertainties:
  1  2.87909e-06
  2  6.62273e-05
  3  0.000137862
  4  24.7827
  5  0.00072119
  6  26.9482
  7  17.4194
  8  3.70274e-05
  9  104.487
  10  2.77201e-06
  11  1.72064e-05
  12  5.39478
  13  94.7091
  14  1.57811e-05
  15  0.000862164
  16  2.93119
  17  53.4909
  18  2.85073e-06
  19  2.49743e-06
  20  14.1254
  21  0.288042
  22  0.179778
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.925e+00  5.395e+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.618e-01  1.798e-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.731e-01  2.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/312982/likelihoodResults_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.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) = 4380.0482756
delta logL = 1.24471827927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4380.04419692
delta logL = 1.24879695789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5886       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .63272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92173       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=   4380.044     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      249 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5891        1.4431        .84182E-03    .38942E-02
   2  alpha         5.0000        3.6585        .46367    ** at limit **
   3  Normalizat    .63253        .24408        .79378E-01   -.83560E-05
   4  Prefactor     .92186        .15626        .45281E-01   -.23166E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58907
  alpha      = 5
  Normalizat = 0.632529
  Prefactor  = 0.921855
 **********
 **   18 **HESSE 
 **********

 FCN=   4380.044     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5891        1.3810        .16836E-03   -1.5456    
   2  alpha         5.0000        3.5144        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .63253        .28670        .35151E-03   -1.0662    
   4  Prefactor     .92186        .18377        .19428E-03   -.95382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44181e-10
Minuit parameter uncertainties:
  1  1.38098
  2  0.000134948
  3  0.287375
  4  0.183891
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312982': 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) = 4380.0441965
delta logL = 1.24879737732

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.589e+00  1.381e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  5.000e+00  1.349e-04  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.219e-01  1.839e-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.325e-01  2.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.94
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.45e-07 +/- 1.25e-07
Energy Flux (Free Index): 1.95e-05 +/- 1.69e-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/312982/cmap_HighResolution_513043201_513302401_4FGL_J2229.7-0832_daily_bin1056.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-05', comment='SUCCESS', energy_flux2='1.95e-05', dlogl='1.25e+00', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-28 12:12:44.011181', photon_index_error2='0.00', photon_index2='5.00', ts='0.16', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.69e-05', EG='0.77', time_epoch_completed='1632856364.01', return_code='0', job_id='312982', GAL2='0.92', EG2='0.63', return_code2='0', photon_flux_error2='1.25e-07', ts2='2.94', photon_index='2.47' WHERE bin_id='1056' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:12:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 312982: <4FGL_J2229.7-0832_daily_bin1056> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1056 337.426 -8.5447 513043201 513302401 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 :                                   526.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            704 sec.

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

