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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1607
RA = 337.426, Dec = -8.5447
tmin = 655862401, tmax = 656121601
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='484930', job_status='RUN', time_executed='2021-12-08 08:40:52.619041', time_epoch_executed='1638981652.62' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1607'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484930

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484930/ft1_4FGL_J2229.7-0832_daily_bin1607.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484930/ft2_4FGL_J2229.7-0832_daily_bin1607.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484930/ft1_4FGL_J2229.7-0832_daily_bin1607.fits outfile=/scratch/kocevski/484930/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1607.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=655862401.0 tmax=656121601.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.61
user 4.36
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484930/ft1_filtered_4FGL_J2229.7-0832_daily_bin1607.fits" evtable="EVENTS" scfile=/scratch/kocevski/484930/ft2_4FGL_J2229.7-0832_daily_bin1607.fits sctable="SC_DATA" outfile=/scratch/kocevski/484930/ltcube_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.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/484930/ft2_4FGL_J2229.7-0832_daily_bin1607.fits
.....................!
real 13.43
user 13.04
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484930/ft1_filtered_4FGL_J2229.7-0832_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/484930/ft2_4FGL_J2229.7-0832_daily_bin1607.fits sctable="SC_DATA" expcube=/scratch/kocevski/484930/ltcube_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.fits outfile=/scratch/kocevski/484930/expmap_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.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/484930/ltcube_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.fits
.....................!
real 194.96
user 189.58
sys 4.50

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/484930/ft1_filtered_4FGL_J2229.7-0832_daily_bin1607.fits scfile=/scratch/kocevski/484930/ft2_4FGL_J2229.7-0832_daily_bin1607.fits outfile=/scratch/kocevski/484930/cmap_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484930/ft1_filtered_4FGL_J2229.7-0832_daily_bin1607.fits scfile=/scratch/kocevski/484930/ft2_4FGL_J2229.7-0832_daily_bin1607.fits outfile=/scratch/kocevski/484930/cmap_HighResolution_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484930/ft1_filtered_4FGL_J2229.7-0832_daily_bin1607.fits evtable="EVENTS" scfile=/scratch/kocevski/484930/ft2_4FGL_J2229.7-0832_daily_bin1607.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484930/Model_4FGL_J2229.7-0832_daily_bin1607.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/484930/ft1_filtered_4FGL_J2229.7-0832_daily_bin1607.fits.....................!
real 52.51
user 51.02
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.507       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32473E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0741       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.103       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7404       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .48721       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.445       1.0000         .10000E-03   10000.    
    16 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.248       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.198       1.0000         .10000E-03   10000.    
    20 'norm      '    74.270       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.7184       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65898       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=   5108.299     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2985 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6689       -.84159E-08** at limit **
   2  Prefactor     .10000E-03    3.9052       -.15814E-07** at limit **
   3  Prefactor     33.502        16.919        .11168E-06   -.13137E-03
   4  Prefactor     .10000E-03    15.531        .25212E-08** at limit **
   5  Prefactor     .10000E-03    38.858        .56725E-07** at limit **
   6  Prefactor     .10022E-03    18.529        .27874E-05** at limit **
   7  Prefactor     .10000E-03    62.291       -.65629E-06** at limit **
   8  Prefactor     .10000E-03    4.2489       -.38174E-07** at limit **
   9  Prefactor     12.004        189.90        .46031E-05    .17308E-04
  10  Prefactor     1.0744        3.0706        .80104E-06    .85358E-04
  11  Prefactor     33.131        84.978        .32851E-05    .58653E-04
  12  norm          5.7411        4.6007        .28196E-07   -.73471E-04
  13  Prefactor     .10000E-03    130.69       -.28965E-06** at limit **
  14  norm          .48689        1.3680        .93731E-06    .18532E-03
  15  Prefactor     41.434        27.418       -.14078E-07   -.84682E-04
  16  norm          .10000E-03    .98723        .15855E-06** at limit **
  17  Prefactor     12.228        36.651       -.96012E-06   -.67188E-04
  18  Prefactor     .10000E-03    4.0889       -.31629E-10** at limit **
  19  Prefactor     23.199        16.201       -.52197E-07   -.54766E-04
  20  norm          74.265        23.779        .21437E-06   -.57982E-05
  21  Normalizat    1.7183        .27175       -.21061E-05   -.18905E-03
  22  Prefactor     .65896        .16211        .70332E-06   -.26671E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0042
  Prefactor  = 1.07439
  Prefactor  = 33.1312
  norm       = 5.74109
  Prefactor  = 0.0001
  norm       = 0.486888
  Prefactor  = 41.4341
  norm       = 0.0001
  Prefactor  = 12.228
  Prefactor  = 0.0001
  Prefactor  = 23.199
  norm       = 74.2651
  Normalizat = 1.71834
  Prefactor  = 0.658956
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.299     FROM HESSE     STATUS=OK           338 CALLS     3323 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6696        .13371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9244        .13791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.502        16.855        .69226E-04   -1.4550    
   4  Prefactor     .10000E-03    15.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10022E-03    80.906        .53066E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    64.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.2629        .14385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.004        192.87        .11570E-03   -1.5015    
  10  Prefactor     1.0744        3.0499        .20607E-03   -1.5501    
  11  Prefactor     33.131        86.950        .69646E-04   -1.4556    
  12  norm          5.7411        4.5910        .12860E-03   -1.5229    
  13  Prefactor     .10000E-03    131.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .48689        1.3897        .12997E-03   -1.5568    
  15  Prefactor     41.434        27.244        .62267E-04   -1.4420    
  16  norm          .10000E-03    .99720        .13618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.228        36.670        .11446E-03   -1.5008    
  18  Prefactor     .10000E-03    4.0926        .14115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     23.199        16.211        .83164E-04   -1.4744    
  20  norm          74.265        23.799        .46589E-04   -1.3982    
  21  Normalizat    1.7183        .31260        .26917E-03   -.71815    
  22  Prefactor     .65896        .18846        .25655E-03   -1.0516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88575e-09
Minuit parameter uncertainties:
  1  1.06676e-07
  2  3.89082e-06
  3  16.8571
  4  1.02821e-05
  5  6.3205e-05
  6  0.00843059
  7  0.000174002
  8  1.63224e-06
  9  96.6039
  10  3.05038
  11  87.2848
  12  4.59124
  13  7.31889e-05
  14  1.38977
  15  27.2518
  16  2.52291e-06
  17  36.7373
  18  1.52408e-06
  19  16.2138
  20  23.802
  21  0.312965
  22  0.188639
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.741e+00  4.591e+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:  6.590e-01  1.886e-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.718e+00  3.130e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.73
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 7.04e-08 +/- 5.63e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/484930/likelihoodResults_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.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) = 5108.28923938
delta logL = 0.0096387721178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5108.28909567
delta logL = 0.00978248189131

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7408       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7234       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65648       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=   5108.289     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      191 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6894        5.0295        .41909E-02    .16880E-03
   2  alpha         2.3687        .70651        .41223       -.18097E-04
   3  Normalizat    1.7237        .25476        .60795E-01   -.29433E-06
   4  Prefactor     .65650        .15986        .41819E-01    .17158E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.68943
  alpha      = 2.36867
  Normalizat = 1.72367
  Prefactor  = 0.6565
 **********
 **   18 **HESSE 
 **********

 FCN=   5108.289     FROM HESSE     STATUS=OK            31 CALLS      222 TOTAL
                     EDM=   .73E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6894        4.5046        .12856E-03   -1.5231    
   2  alpha         2.3687        .72236        .17694E-01   -.52555E-01
   3  Normalizat    1.7237        .30010        .26884E-03   -.71673    
   4  Prefactor     .65650        .18721        .25697E-03   -1.0526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.27925e-13
Minuit parameter uncertainties:
  1  4.50487
  2  0.732841
  3  0.300414
  4  0.187394
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484930': 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) = 5108.28903123
delta logL = 0.00984692152633

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.689e+00  4.505e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  2.369e+00  7.328e-01  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:  6.565e-01  1.874e-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.724e+00  3.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.73
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.37 +/- 0.73
Photon Flux (Free Index): 6.62e-08 +/- 5.98e-08
Energy Flux (Free Index): 1.90e-05 +/- 1.53e-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/484930/cmap_HighResolution_655862401_656121601_4FGL_J2229.7-0832_daily_bin1607.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.11e-05', comment='SUCCESS', photon_flux='7.04e-08', energy_flux2='1.90e-05', photon_flux_error='5.63e-08', dlogl='9.85e-03', energy_flux='1.86e-05', photon_flux2='6.62e-08', job_status='DONE', time_completed='2021-12-08 08:50:54.665764', photon_index_error2='0.73', photon_index2='2.37', ts='2.73', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.93e-07', energy_flux_error2='1.53e-05', EG='1.72', time_epoch_completed='1638982254.67', return_code='0', job_id='484930', GAL2='0.66', EG2='1.72', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='5.98e-08', ts2='2.73', photon_index='2.47' WHERE bin_id='1607' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 08:50:54 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 484930: <4FGL_J2229.7-0832_daily_bin1607> in cluster <slac> Done

Job <4FGL_J2229.7-0832_daily_bin1607> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Dec  8 08:35:22 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 08:37:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 08:37:57 2021
Terminated at Wed Dec  8 08:50:55 2021
Results reported at Wed Dec  8 08:50:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1607 337.426 -8.5447 655862401 656121601 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 :                                   599.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            933 sec.

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

