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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1329
RA = 337.426, Dec = -8.5447
tmin = 583804801, tmax = 584064001
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='314364', job_status='RUN', time_executed='2021-09-28 12:05:56.193584', time_epoch_executed='1632855956.19' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1329'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314364

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314364/ft1_4FGL_J2229.7-0832_daily_bin1329.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314364/ft2_4FGL_J2229.7-0832_daily_bin1329.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314364/ft1_4FGL_J2229.7-0832_daily_bin1329.fits outfile=/scratch/kocevski/314364/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1329.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=583804801.0 tmax=584064001.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.48
user 3.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314364/ft1_filtered_4FGL_J2229.7-0832_daily_bin1329.fits" evtable="EVENTS" scfile=/scratch/kocevski/314364/ft2_4FGL_J2229.7-0832_daily_bin1329.fits sctable="SC_DATA" outfile=/scratch/kocevski/314364/ltcube_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.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/314364/ft2_4FGL_J2229.7-0832_daily_bin1329.fits
.....................!
real 11.93
user 11.55
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314364/ft1_filtered_4FGL_J2229.7-0832_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/314364/ft2_4FGL_J2229.7-0832_daily_bin1329.fits sctable="SC_DATA" expcube=/scratch/kocevski/314364/ltcube_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.fits outfile=/scratch/kocevski/314364/expmap_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.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/314364/ltcube_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.fits
.....................!
real 192.53
user 187.42
sys 4.59

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/314364/ft1_filtered_4FGL_J2229.7-0832_daily_bin1329.fits scfile=/scratch/kocevski/314364/ft2_4FGL_J2229.7-0832_daily_bin1329.fits outfile=/scratch/kocevski/314364/cmap_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314364/ft1_filtered_4FGL_J2229.7-0832_daily_bin1329.fits scfile=/scratch/kocevski/314364/ft2_4FGL_J2229.7-0832_daily_bin1329.fits outfile=/scratch/kocevski/314364/cmap_HighResolution_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=337.426 yref=-8.5447 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314364/ft1_filtered_4FGL_J2229.7-0832_daily_bin1329.fits evtable="EVENTS" scfile=/scratch/kocevski/314364/ft2_4FGL_J2229.7-0832_daily_bin1329.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314364/Model_4FGL_J2229.7-0832_daily_bin1329.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/314364/ft1_filtered_4FGL_J2229.7-0832_daily_bin1329.fits.....................!
real 67.31
user 65.99
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19898E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.5413       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7549       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.439       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.634       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9748       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.4565       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4669       1.0000         .10000E-03   10000.    
    16 'norm      '    6.9323       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.832       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1759       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78492       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=   7516.899     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2364 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.1660       -.17922E-07** at limit **
   2  Prefactor     .10000E-03    4.8829        .29982E-05** at limit **
   3  Prefactor     .10000E-03    5.2041       -.32612E-06** at limit **
   4  Prefactor     .10003E-03    14.395        .77159E-06** at limit **
   5  Prefactor     .10000E-03    4.9294       -.28204E-05** at limit **
   6  Prefactor     8.5412        12.270        .88014E-06   -.45300E-04
   7  Prefactor     14.639        11.066       -.28191E-05    .16015E-03
   8  Prefactor     1.7556        5.5693       -.26254E-05   -.61426E-03
   9  Prefactor     37.434        75.760       -.55839E-05    .42638E-04
  10  Prefactor     .10000E-03    1.8313        .21911E-07** at limit **
  11  Prefactor     29.633        33.029        .14050E-06    .13732E-04
  12  norm          1.9732        3.6827       -.13150E-06   -.86599E-03
  13  Prefactor     .10000E-03    21.799       -.76650E-07** at limit **
  14  norm          3.4565        1.0390        .60198E-07    .17178E-03
  15  Prefactor     5.3999        70.939       -.10464E-04   -.11430E-04
  16  norm          6.9378        3.2888        .65803E-06   -.28591E-03
  17  Prefactor     .10000E-03    32.616        .52841E-06** at limit **
  18  Prefactor     18.298        13.127        .56407E-06   -.36942E-04
  19  Prefactor     .10000E-03    3.8740        .18644E-07** at limit **
  20  norm          16.831        10.722        .54694E-07   -.33763E-04
  21  Normalizat    1.1761        .18680        .17594E-05   -.11918E-03
  22  Prefactor     .78480        .11478       -.38241E-06    .62136E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 0.0001
  Prefactor  = 8.54122
  Prefactor  = 14.6387
  Prefactor  = 1.75556
  Prefactor  = 37.4338
  Prefactor  = 0.0001
  Prefactor  = 29.6325
  norm       = 1.97318
  Prefactor  = 0.0001
  norm       = 3.45647
  Prefactor  = 5.39991
  norm       = 6.93782
  Prefactor  = 0.0001
  Prefactor  = 18.2976
  Prefactor  = 0.0001
  norm       = 16.8311
  Normalizat = 1.1761
  Prefactor  = 0.7848
 **********
 **   18 **HESSE 
 **********

 FCN=   7516.899     FROM HESSE     STATUS=OK           352 CALLS     2716 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1664        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.8908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    18.841        .89992E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.5412        12.254        .13716E-03   -1.5123    
   7  Prefactor     14.639        11.025        .10468E-03   -1.4943    
   8  Prefactor     1.7556        5.9057        .31641E-03   -1.5443    
   9  Prefactor     37.434        74.536        .65502E-04   -1.4484    
  10  Prefactor     .10000E-03    1.8675        .11444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     29.633        33.048        .36799E-03   -1.4619    
  12  norm          1.9732        3.6918        .20768E-03   -1.5427    
  13  Prefactor     .10000E-03    21.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.4565        1.0386        .21753E-04   -1.5336    
  15  Prefactor     5.3999        78.780        .17185E-03   -1.5243    
  16  norm          6.9378        3.4631        .47468E-04   -1.5181    
  17  Prefactor     .10000E-03    32.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.298        13.122        .93628E-04   -1.4852    
  19  Prefactor     .10000E-03    3.8886        .16665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.831        10.726        .97624E-04   -1.4887    
  21  Normalizat    1.1761        .21771        .27532E-03   -.87345    
  22  Prefactor     .78480        .13356        .21549E-03   -1.0029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50273e-09
Minuit parameter uncertainties:
  1  8.22649e-08
  2  6.01269e-05
  3  3.29706e-06
  4  0.00148538
  5  4.76252e-05
  6  12.2581
  7  11.0264
  8  5.90767
  9  74.7223
  10  7.67154e-06
  11  33.0681
  12  3.6922
  13  6.33895e-06
  14  1.03862
  15  41.3158
  16  3.46319
  17  0.000104668
  18  13.1236
  19  3.91198e-07
  20  10.7276
  21  0.217879
  22  0.13361
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.973e+00  3.692e+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:  7.848e-01  1.336e-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.176e+00  2.179e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/314364/likelihoodResults_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.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) = 7515.74945285
delta logL = 1.14950998444

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7515.73662015
delta logL = 1.16234268436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0271       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81960       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=   7515.737     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      259 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0268        21.302        .12595E-01    .16260E-03
   2  alpha         5.0000        4.9988        .46267    ** at limit **
   3  Normalizat    1.0940        .10270        .64147E-01   -.59925E-03
   4  Prefactor     .81962        .60931E-01    .43972E-01   -.86537E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02676
  alpha      = 5
  Normalizat = 1.09403
  Prefactor  = 0.819621
 **********
 **   18 **HESSE 
 **********

 FCN=   7515.737     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0268        .99021        .59195E-03   -1.5505    
   2  alpha         5.0000        3.8182        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0940        .20873        .28375E-03   -.89944    
   4  Prefactor     .81962        .13321        .21125E-03   -.99009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95028e-10
Minuit parameter uncertainties:
  1  0.990222
  2  6.58764e-05
  3  0.20889
  4  0.133264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314364': 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) = 7515.73661931
delta logL = 1.16234352913

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.027e+00  9.902e-01  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  5.000e+00  6.588e-05  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.196e-01  1.333e-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.094e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.38e-08 +/- 9.00e-08
Energy Flux (Free Index): 1.26e-05 +/- 1.21e-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/314364/cmap_HighResolution_583804801_584064001_4FGL_J2229.7-0832_daily_bin1329.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.09e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='1.16e+00', photon_flux2='9.38e-08', job_status='DONE', time_completed='2021-09-28 12:17:05.514588', photon_index_error2='0.00', photon_index2='5.00', ts='0.35', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.21e-05', EG='1.18', time_epoch_completed='1632856625.51', return_code='0', job_id='314364', GAL2='0.82', EG2='1.09', return_code2='0', photon_flux_error2='9.00e-08', ts2='2.84', photon_index='2.47' WHERE bin_id='1329' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 314364: <4FGL_J2229.7-0832_daily_bin1329> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1329> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 12:05:41 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 12:05:42 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:05:42 2021
Terminated at Tue Sep 28 12:17:06 2021
Results reported at Tue Sep 28 12:17:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1329 337.426 -8.5447 583804801 584064001 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 :                                   667.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   683 sec.
    Turnaround time :                            685 sec.

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

