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


Performing analysis on: 4FGL_J2229.7-0832_daily_bin1026
RA = 337.426, Dec = -8.5447
tmin = 505267201, tmax = 505526401
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='312935', job_status='RUN', time_executed='2021-09-28 12:01:13.528697', time_epoch_executed='1632855673.53' WHERE source_name='4FGL J2229.7-0832' and cadence='daily' and bin_id='1026'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/312935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/312935/ft1_4FGL_J2229.7-0832_daily_bin1026.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/312935/ft2_4FGL_J2229.7-0832_daily_bin1026.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/312935/ft1_4FGL_J2229.7-0832_daily_bin1026.fits outfile=/scratch/kocevski/312935/ft1_filteredMKT_4FGL_J2229.7-0832_daily_bin1026.fits ra=337.426 dec=-8.5447 rad=12.0 tmin=505267201.0 tmax=505526401.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.64
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/312935/ft1_filtered_4FGL_J2229.7-0832_daily_bin1026.fits" evtable="EVENTS" scfile=/scratch/kocevski/312935/ft2_4FGL_J2229.7-0832_daily_bin1026.fits sctable="SC_DATA" outfile=/scratch/kocevski/312935/ltcube_505267201_505526401_4FGL_J2229.7-0832_daily_bin1026.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/312935/ft2_4FGL_J2229.7-0832_daily_bin1026.fits
.....................!
real 11.77
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/312935/ft1_filtered_4FGL_J2229.7-0832_daily_bin1026.fits evtable="EVENTS" scfile=/scratch/kocevski/312935/ft2_4FGL_J2229.7-0832_daily_bin1026.fits sctable="SC_DATA" expcube=/scratch/kocevski/312935/ltcube_505267201_505526401_4FGL_J2229.7-0832_daily_bin1026.fits outfile=/scratch/kocevski/312935/expmap_505267201_505526401_4FGL_J2229.7-0832_daily_bin1026.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/312935/ltcube_505267201_505526401_4FGL_J2229.7-0832_daily_bin1026.fits
.....................!
real 190.87
user 185.79
sys 4.77

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/312935/ft1_filtered_4FGL_J2229.7-0832_daily_bin1026.fits scfile=/scratch/kocevski/312935/ft2_4FGL_J2229.7-0832_daily_bin1026.fits outfile=/scratch/kocevski/312935/cmap_505267201_505526401_4FGL_J2229.7-0832_daily_bin1026.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.15

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.5527       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.794       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.818       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.288       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    105.39       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    26.234       1.0000         .10000E-03   10000.    
    12 'norm      '    5.7904       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .55228       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.507       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1560       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.787       1.0000         .10000E-03   10000.    
    20 'norm      '    33.624       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0174       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85677       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=   5833.210     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2359 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6278       -.64821E-08** at limit **
   2  Prefactor     1.5522        1.2839        .17986E-06   -.13885E-02
   3  Prefactor     .10000E-03    5.5260        .27571E-07** at limit **
   4  Prefactor     10.796        19.155        .90622E-06   -.44357E-05
   5  Prefactor     .10000E-03    15.476        .14079E-06** at limit **
   6  Prefactor     31.816        22.706       -.23861E-06   -.11549E-04
   7  Prefactor     10.288        12.320       -.56638E-06   -.17210E-04
   8  Prefactor     .10000E-03    2.7153        .17451E-07** at limit **
   9  Prefactor     105.41        79.618        .17022E-04    .15530E-04
  10  Prefactor     1.0906        2.5030        .91850E-07   -.37393E-04
  11  Prefactor     26.238        47.857        .66623E-05    .44759E-05
  12  norm          5.7905        3.7610       -.28556E-06   -.30900E-04
  13  Prefactor     .10000E-03    52.717        .22624E-06** at limit **
  14  norm          .55212        .54507       -.11143E-06   -.50802E-03
  15  Prefactor     35.513        37.531        .67443E-05   -.15414E-03
  16  norm          2.1561        2.9187       -.18362E-05    .41936E-03
  17  Prefactor     .10000E-03    17.882       -.20238E-06** at limit **
  18  Prefactor     .10000E-03    4.9245        .95899E-08** at limit **
  19  Prefactor     15.788        12.821       -.30129E-06    .28247E-04
  20  norm          33.624        15.878        .25219E-06   -.75336E-05
  21  Normalizat    1.0172        .22117       -.26296E-05    .10975E-03
  22  Prefactor     .85691        .14019        .15893E-06   -.48821E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.55224
  Prefactor  = 0.0001
  Prefactor  = 10.7956
  Prefactor  = 0.0001
  Prefactor  = 31.8161
  Prefactor  = 10.2885
  Prefactor  = 0.0001
  Prefactor  = 105.408
  Prefactor  = 1.09057
  Prefactor  = 26.2383
  norm       = 5.79045
  Prefactor  = 0.0001
  norm       = 0.552119
  Prefactor  = 35.5133
  norm       = 2.15608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7882
  norm       = 33.6241
  Normalizat = 1.01717
  Prefactor  = 0.856914
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.210     FROM HESSE     STATUS=OK           350 CALLS     2709 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6280        .12092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5522        5.6534        .16506E-02   -1.5459    
   3  Prefactor     .10000E-03    5.5395        .17534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.796        19.193        .12195E-03   -1.5051    
   5  Prefactor     .10000E-03    15.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.816        22.718        .71034E-04   -1.4579    
   7  Prefactor     10.288        12.344        .12492E-03   -1.5066    
   8  Prefactor     .10000E-03    2.7187        .12290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     105.41        80.434        .19586E-03   -1.3651    
  10  Prefactor     1.0906        2.4494        .17658E-03   -1.5499    
  11  Prefactor     26.238        47.902        .78213E-04   -1.4683    
  12  norm          5.7905        3.7595        .11298E-03   -1.5227    
  13  Prefactor     .10000E-03    52.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .55212        .53684        .54244E-04   -1.5559    
  15  Prefactor     35.513        40.074        .67254E-04   -1.4515    
  16  norm          2.1561        3.1023        .72045E-04   -1.5414    
  17  Prefactor     .10000E-03    17.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9330        .16552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.788        12.832        .10080E-03   -1.4913    
  20  norm          33.624        15.897        .69106E-04   -1.4548    
  21  Normalizat    1.0172        .26485        .29407E-03   -.92457    
  22  Prefactor     .85691        .16847        .20940E-03   -.97663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44414e-09
Minuit parameter uncertainties:
  1  1.49054e-07
  2  5.6553
  3  6.82881e-06
  4  19.2039
  5  3.75114e-05
  6  22.7241
  7  12.347
  8  2.65138e-06
  9  80.5173
  10  2.4496
  11  47.9725
  12  3.7597
  13  1.51457e-05
  14  0.536849
  15  40.104
  16  3.10252
  17  6.11338e-05
  18  1.98177e-06
  19  12.8341
  20  15.8988
  21  0.265198
  22  0.168573
Done.

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

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.790e+00  3.760e+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.569e-01  1.686e-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.017e+00  2.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 337.426 -8.545
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 7.11e-08 +/- 4.61e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.22e-05

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) = 5832.97744811
delta logL = 0.232590991433

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5832.96545557
delta logL = 0.244583526975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.2698       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9970       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84447       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=   5832.965     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      207 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.2690        3.4227        .43773E-02    .17241E-03
   2  alpha         1.9968        .46660        .39858       -.28371E-04
   3  Normalizat    1.0423        .21035        .65776E-01    .14663E-04
   4  Prefactor     .84450        .13913        .44293E-01    .40528E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 5.26897
  alpha      = 1.99677
  Normalizat = 1.04231
  Prefactor  = 0.844497
 **********
 **   18 **HESSE 
 **********

 FCN=   5832.965     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.2690        3.8035        .10937E-03   -1.5249    
   2  alpha         1.9968        .64294        .14187E-01   -.20268    
   3  Normalizat    1.0423        .25231        .29097E-03   -.91626    
   4  Prefactor     .84450        .16637        .21072E-03   -.98108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33139e-12
Minuit parameter uncertainties:
  1  3.80371
  2  0.650571
  3  0.252598
  4  0.166468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/312935': 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) = 5832.96545547
delta logL = 0.24458363435

Extracting fit parameters...

4FGL J2229.7-0832
   Spectrum: LogParabola
255         norm:  5.269e+00  3.804e+00  1.000e-04  1.000e+04 ( 1.000e-11)
256        alpha:  1.997e+00  6.506e-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:  8.445e-01  1.665e-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.042e+00  2.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.28
Ra Dec: 337.426 -8.545
Photon Index (Free Index): 2.00 +/- 0.65
Photon Flux (Free Index): 5.31e-08 +/- 4.35e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.70e-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/312935/cmap_HighResolution_505267201_505526401_4FGL_J2229.7-0832_daily_bin1026.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.11e-08', energy_flux2='2.28e-05', photon_flux_error='4.61e-08', dlogl='2.45e-01', energy_flux='1.88e-05', photon_flux2='5.31e-08', job_status='DONE', time_completed='2021-09-28 12:10:03.867397', photon_index_error2='0.65', photon_index2='2.00', ts='4.79', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='1.70e-05', EG='1.02', time_epoch_completed='1632856203.87', return_code='0', job_id='312935', GAL2='0.84', EG2='1.04', return_code2='0', energy_flux_error='1.22e-05', photon_flux_error2='4.35e-08', ts2='5.28', photon_index='2.47' WHERE bin_id='1026' AND source_name='4FGL J2229.7-0832' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 12:10:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 312935: <4FGL_J2229.7-0832_daily_bin1026> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2229.7-0832_daily_bin1026 337.426 -8.5447 505267201 505526401 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 :                                   529.28 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             295.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   547 sec.
    Turnaround time :                            549 sec.

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

