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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1391
RA = 337.426, Dec = -8.5447
tmin = 599875201, tmax = 600134401
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='314473', job_status='RUN', time_executed='2021-09-28 12:06:12.259933', time_epoch_executed='1632855972.26' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1391'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/314473

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/314473/ft1_4FGL_J2229.7-0832_daily_bin1391.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/314473/ft2_4FGL_J2229.7-0832_daily_bin1391.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/314473/ft1_4FGL_J2229.7-0832_daily_bin1391.fits outfile=/scratch/kocevski/314473/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1391.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=599875201.0 tmax=600134401.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 2.40
user 2.19
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/314473/ft1_filtered_4FGL_J2229.7-0832_daily_bin1391.fits" evtable="EVENTS" scfile=/scratch/kocevski/314473/ft2_4FGL_J2229.7-0832_daily_bin1391.fits sctable="SC_DATA" outfile=/scratch/kocevski/314473/ltcube_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.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/314473/ft2_4FGL_J2229.7-0832_daily_bin1391.fits
.....................!
real 12.19
user 11.81
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/314473/ft1_filtered_4FGL_J2229.7-0832_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/314473/ft2_4FGL_J2229.7-0832_daily_bin1391.fits sctable="SC_DATA" expcube=/scratch/kocevski/314473/ltcube_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.fits outfile=/scratch/kocevski/314473/expmap_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.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/314473/ltcube_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.fits
.....................!
real 190.43
user 185.24
sys 4.89

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/314473/ft1_filtered_4FGL_J2229.7-0832_daily_bin1391.fits scfile=/scratch/kocevski/314473/ft2_4FGL_J2229.7-0832_daily_bin1391.fits outfile=/scratch/kocevski/314473/cmap_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/314473/ft1_filtered_4FGL_J2229.7-0832_daily_bin1391.fits scfile=/scratch/kocevski/314473/ft2_4FGL_J2229.7-0832_daily_bin1391.fits outfile=/scratch/kocevski/314473/cmap_HighResolution_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/314473/ft1_filtered_4FGL_J2229.7-0832_daily_bin1391.fits evtable="EVENTS" scfile=/scratch/kocevski/314473/ft2_4FGL_J2229.7-0832_daily_bin1391.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/314473/Model_4FGL_J2229.7-0832_daily_bin1391.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/314473/ft1_filtered_4FGL_J2229.7-0832_daily_bin1391.fits.....................!
real 75.70
user 74.34
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5382       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.124       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11526E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.013       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.9437       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8471       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1877       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3007       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.4888       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33568E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    7.4529       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.428       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.444       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.7012       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.3050       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .68767       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=   8295.792     FROM MIGRAD    STATUS=CONVERGED    485 CALLS     2364 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5382        4.5640        .25480E-07    .23745E-04
   2  Prefactor     13.124        7.9166        .11816E-06    .51381E-04
   3  Prefactor     .10000E-03    3.9021       -.14645E-07** at limit **
   4  Prefactor     16.815        17.424       -.21756E-07    .16858E-04
   5  Prefactor     .10000E-03    14.470       -.64585E-07** at limit **
   6  Prefactor     10.017        12.689        .13069E-07    .45554E-05
   7  Prefactor     13.010        11.835        .24352E-06   -.70463E-03
   8  Prefactor     7.9452        8.7545       -.15434E-06   -.68325E-04
   9  Prefactor     .10000E-03    16.234       -.80070E-07** at limit **
  10  Prefactor     3.8471        2.7825       -.66616E-08   -.45322E-04
  11  Prefactor     5.1876        65.556       -.15461E-06   -.46759E-05
  12  norm          1.3000        2.7776        .23108E-06   -.70527E-03
  13  Prefactor     .10000E-03    35.492       -.43594E-07** at limit **
  14  norm          2.4885        .99937        .78022E-07    .35072E-03
  15  Prefactor     .10006E-03    19.582       -.94126E-05** at limit **
  16  norm          7.4500        1.9789        .12983E-05    .13393E-03
  17  Prefactor     61.363        41.730       -.37133E-05    .11433E-04
  18  Prefactor     13.445        9.8326        .15403E-06    .36122E-04
  19  Prefactor     .10000E-03    2.2550       -.31516E-07** at limit **
  20  norm          5.7012        5.9077        .62027E-07    .68752E-04
  21  Normalizat    1.3050        .18872        .16884E-05   -.10095E-03
  22  Prefactor     .68768        .11558       -.10413E-05    .33206E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.53818
  Prefactor  = 13.1242
  Prefactor  = 0.0001
  Prefactor  = 16.8147
  Prefactor  = 0.0001
  Prefactor  = 10.0167
  Prefactor  = 13.0104
  Prefactor  = 7.94524
  Prefactor  = 0.0001
  Prefactor  = 3.84706
  Prefactor  = 5.18765
  norm       = 1.29996
  Prefactor  = 0.0001
  norm       = 2.4885
  Prefactor  = 0.000100059
  norm       = 7.44998
  Prefactor  = 61.3633
  Prefactor  = 13.4445
  Prefactor  = 0.0001
  norm       = 5.70118
  Normalizat = 1.30498
  Prefactor  = 0.687682
 **********
 **   18 **HESSE 
 **********

 FCN=   8295.792     FROM HESSE     STATUS=OK           362 CALLS     2726 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5382        4.5592        .21489E-03   -1.5332    
   2  Prefactor     13.124        7.9203        .11057E-03   -1.4983    
   3  Prefactor     .10000E-03    3.9193        .17570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.815        17.417        .97669E-04   -1.4888    
   5  Prefactor     .10000E-03    14.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.017        12.669        .12663E-03   -1.5075    
   7  Prefactor     13.010        11.923        .55524E-03   -1.4986    
   8  Prefactor     7.9452        8.7455        .14226E-03   -1.5144    
   9  Prefactor     .10000E-03    16.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8471        2.7743        .12218E-03   -1.5316    
  11  Prefactor     5.1876        65.509        .17650E-03   -1.5252    
  12  norm          1.3000        2.7613        .20928E-03   -1.5480    
  13  Prefactor     .10000E-03    35.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.4885        1.0009        .55107E-04   -1.5392    
  15  Prefactor     .10006E-03    56.648        .82069E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.4500        2.8072        .50613E-04   -1.5162    
  17  Prefactor     61.363        42.088        .51195E-04   -1.4140    
  18  Prefactor     13.445        9.8300        .10924E-03   -1.4974    
  19  Prefactor     .10000E-03    2.2562        .13357E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.7012        5.9134        .16823E-03   -1.5230    
  21  Normalizat    1.3050        .22402        .26948E-03   -.83418    
  22  Prefactor     .68768        .13612        .23039E-03   -1.0401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34618e-09
Minuit parameter uncertainties:
  1  4.55961
  2  7.92095
  3  3.57216e-06
  4  17.4221
  5  2.97215e-05
  6  12.6728
  7  11.9253
  8  8.74693
  9  5.67982e-06
  10  2.77443
  11  36.919
  12  2.76161
  13  5.04106e-06
  14  1.00088
  15  0.00367196
  16  2.80721
  17  42.1089
  18  9.83119
  19  4.41104e-06
  20  5.91397
  21  0.224187
  22  0.136189
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.300e+00  2.762e+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.877e-01  1.362e-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.305e+00  2.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 337.426 -8.545
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/314473/likelihoodResults_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.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) = 8293.74038724
delta logL = 2.05183771937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8293.73800407
delta logL = 2.05422088863

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2670       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74220       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=   8293.738     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      246 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2670        19.167        .98905E-02    .28243E-02
   2  alpha         5.0000        2.8649        .46267    ** at limit **
   3  Normalizat    1.1753        .17539        .63557E-01   -.12387E-04
   4  Prefactor     .74219        .87177E-01    .42960E-01   -.28376E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26696
  alpha      = 5
  Normalizat = 1.17528
  Prefactor  = 0.742189
 **********
 **   18 **HESSE 
 **********

 FCN=   8293.738     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2670        .71491        .53532E-04   -1.5483    
   2  alpha         5.0000        3.2918        .73115E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1753        .21807        .28114E-03   -.87370    
   4  Prefactor     .74219        .13734        .22240E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.58327e-10
Minuit parameter uncertainties:
  1  0.714913
  2  7.04412e-05
  3  0.218238
  4  0.137402
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/314473': 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) = 8293.73800406
delta logL = 2.05422089983

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  1.267e+00  7.149e-01  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  5.000e+00  7.044e-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:  7.422e-01  1.374e-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.175e+00  2.182e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.16e-07 +/- 6.49e-08
Energy Flux (Free Index): 1.56e-05 +/- 8.75e-06

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/314473/cmap_HighResolution_599875201_600134401_4FGL_J2229.7-0832_daily_bin1391.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-05', comment='SUCCESS', energy_flux2='1.56e-05', dlogl='2.05e+00', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-28 12:17:54.828911', photon_index_error2='0.00', photon_index2='5.00', ts='0.26', fit_tolerance='1e-08', GAL='0.69', photon_index_error='0.00', photon_flux_upper_limit='9.50e-08', energy_flux_error2='8.75e-06', EG='1.30', time_epoch_completed='1632856674.83', return_code='0', job_id='314473', GAL2='0.74', EG2='1.18', return_code2='0', photon_flux_error2='6.49e-08', ts2='4.71', photon_index='2.47' WHERE bin_id='1391' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:17:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 314473: <4FGL_J2229.7-0832_daily_bin1391> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1391 337.426 -8.5447 599875201 600134401 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 :                                   702.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            726 sec.

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

